Public vs Private feeds

Public feeds

Changes or DateModified feeds may not display monitoring objects in some cases (draft status, cancelled status, …) If we have draft, cancelled and active monitoring objects, only the last one is shown on the public lists:

Changes

GET /api/2.5/monitorings?feed=changes&opt_fields=status HTTP/1.0
Authorization: Basic YnJva2VyOmJyb2tlcg==
Host: audit-api-sandbox.prozorro.gov.ua

Response: 200 OK
Content-Type: application/json
Set-Cookie: SESSION=eyJvcGVyYXRpb25fdGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3MDg1Mjc4ODMsICJpIjogOX19LCAiY2x1c3Rlcl90aW1lIjogeyJjbHVzdGVyVGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3MDg1Mjc4ODMsICJpIjogOX19LCAic2lnbmF0dXJlIjogeyJoYXNoIjogeyIkYmluYXJ5IjogeyJiYXNlNjQiOiAiSVAxalY2ejdGOHRrTUlXT2JEbVBrbmJmU3ljPSIsICJzdWJUeXBlIjogIjAwIn19LCAia2V5SWQiOiA3MzMzMTc5ODM5MjQwNzMyNjc3fX19; Path=/
{
  "data": [
    {
      "status": "active",
      "dateModified": "2018-01-01T02:03:00+02:00",
      "id": "33e469c4a55245ce9224b273c974d502"
    }
  ],
  "next_page": {
    "offset": 1708527883.061,
    "path": "/api/2.5/monitorings?opt_fields=status&offset=1708527883.061",
    "uri": "http://audit-api-sandbox.prozorro.gov.ua/api/2.5/monitorings?opt_fields=status&offset=1708527883.061"
  }
}

Date Modified

GET /api/2.5/monitorings?opt_fields=status HTTP/1.0
Authorization: Basic YnJva2VyOmJyb2tlcg==
Host: audit-api-sandbox.prozorro.gov.ua

Response: 200 OK
Content-Type: application/json
Set-Cookie: SESSION=eyJvcGVyYXRpb25fdGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3MDg1Mjc4ODMsICJpIjogOX19LCAiY2x1c3Rlcl90aW1lIjogeyJjbHVzdGVyVGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3MDg1Mjc4ODMsICJpIjogOX19LCAic2lnbmF0dXJlIjogeyJoYXNoIjogeyIkYmluYXJ5IjogeyJiYXNlNjQiOiAiSVAxalY2ejdGOHRrTUlXT2JEbVBrbmJmU3ljPSIsICJzdWJUeXBlIjogIjAwIn19LCAia2V5SWQiOiA3MzMzMTc5ODM5MjQwNzMyNjc3fX19; Path=/
{
  "data": [
    {
      "status": "active",
      "dateModified": "2018-01-01T02:03:00+02:00",
      "id": "33e469c4a55245ce9224b273c974d502"
    }
  ],
  "next_page": {
    "offset": 1708527883.061,
    "path": "/api/2.5/monitorings?opt_fields=status&offset=1708527883.061",
    "uri": "http://audit-api-sandbox.prozorro.gov.ua/api/2.5/monitorings?opt_fields=status&offset=1708527883.061"
  }
}

Monitoring by tender

GET /api/2.5/tenders/13c14e6a15b24e1a982310f262e18e7a/monitorings HTTP/1.0
Authorization: Basic YnJva2VyOmJyb2tlcg==
Host: audit-api-sandbox.prozorro.gov.ua

Response: 200 OK
Content-Type: application/json
Set-Cookie: SESSION=eyJvcGVyYXRpb25fdGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3MDg1Mjc4ODMsICJpIjogOX19LCAiY2x1c3Rlcl90aW1lIjogeyJjbHVzdGVyVGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3MDg1Mjc4ODMsICJpIjogOX19LCAic2lnbmF0dXJlIjogeyJoYXNoIjogeyIkYmluYXJ5IjogeyJiYXNlNjQiOiAiSVAxalY2ejdGOHRrTUlXT2JEbVBrbmJmU3ljPSIsICJzdWJUeXBlIjogIjAwIn19LCAia2V5SWQiOiA3MzMzMTc5ODM5MjQwNzMyNjc3fX19; Path=/
{
  "data": [
    {
      "status": "active",
      "dateModified": "2018-01-01T02:03:00+02:00",
      "dateCreated": "2018-01-01T02:03:00+02:00",
      "id": "33e469c4a55245ce9224b273c974d502"
    }
  ],
  "count": 1,
  "page": 1,
  "limit": 500,
  "total": 1
}

And this is also true for TEST mode:

Changes [test]

GET /api/2.5/monitorings?mode=test&feed=changes&opt_fields=status%2Cmode HTTP/1.0
Authorization: Basic YnJva2VyOmJyb2tlcg==
Host: audit-api-sandbox.prozorro.gov.ua

Response: 200 OK
Content-Type: application/json
Set-Cookie: SESSION=eyJvcGVyYXRpb25fdGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3MDg1Mjc4ODMsICJpIjogMjd9fSwgImNsdXN0ZXJfdGltZSI6IHsiY2x1c3RlclRpbWUiOiB7IiR0aW1lc3RhbXAiOiB7InQiOiAxNzA4NTI3ODgzLCAiaSI6IDI3fX0sICJzaWduYXR1cmUiOiB7Imhhc2giOiB7IiRiaW5hcnkiOiB7ImJhc2U2NCI6ICJJUDFqVjZ6N0Y4dGtNSVdPYkRtUGtuYmZTeWM9IiwgInN1YlR5cGUiOiAiMDAifX0sICJrZXlJZCI6IDczMzMxNzk4MzkyNDA3MzI2Nzd9fX0=; Path=/
{
  "data": [
    {
      "status": "active",
      "dateModified": "2018-01-01T02:03:00+02:00",
      "id": "05a178d3c4fb49b686cb637ff9893b36"
    }
  ],
  "next_page": {
    "offset": 1708527883.242,
    "path": "/api/2.5/monitorings?mode=test&opt_fields=status&offset=1708527883.242",
    "uri": "http://audit-api-sandbox.prozorro.gov.ua/api/2.5/monitorings?mode=test&opt_fields=status&offset=1708527883.242"
  }
}

Date Modified [test]

GET /api/2.5/monitorings?mode=test&opt_fields=status%2Cmode HTTP/1.0
Authorization: Basic YnJva2VyOmJyb2tlcg==
Host: audit-api-sandbox.prozorro.gov.ua

Response: 200 OK
Content-Type: application/json
Set-Cookie: SESSION=eyJvcGVyYXRpb25fdGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3MDg1Mjc4ODMsICJpIjogMjd9fSwgImNsdXN0ZXJfdGltZSI6IHsiY2x1c3RlclRpbWUiOiB7IiR0aW1lc3RhbXAiOiB7InQiOiAxNzA4NTI3ODgzLCAiaSI6IDI3fX0sICJzaWduYXR1cmUiOiB7Imhhc2giOiB7IiRiaW5hcnkiOiB7ImJhc2U2NCI6ICJJUDFqVjZ6N0Y4dGtNSVdPYkRtUGtuYmZTeWM9IiwgInN1YlR5cGUiOiAiMDAifX0sICJrZXlJZCI6IDczMzMxNzk4MzkyNDA3MzI2Nzd9fX0=; Path=/
{
  "data": [
    {
      "status": "active",
      "dateModified": "2018-01-01T02:03:00+02:00",
      "id": "05a178d3c4fb49b686cb637ff9893b36"
    }
  ],
  "next_page": {
    "offset": 1708527883.242,
    "path": "/api/2.5/monitorings?mode=test&opt_fields=status&offset=1708527883.242",
    "uri": "http://audit-api-sandbox.prozorro.gov.ua/api/2.5/monitorings?mode=test&opt_fields=status&offset=1708527883.242"
  }
}

Monitoring by tender [test]

GET /api/2.5/tenders/13c14e6a15b24e1a982310f262e18e7a/monitorings?mode=test&opt_fields=mode HTTP/1.0
Authorization: Basic YnJva2VyOmJyb2tlcg==
Host: audit-api-sandbox.prozorro.gov.ua

Response: 200 OK
Content-Type: application/json
Set-Cookie: SESSION=eyJvcGVyYXRpb25fdGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3MDg1Mjc4ODMsICJpIjogMjd9fSwgImNsdXN0ZXJfdGltZSI6IHsiY2x1c3RlclRpbWUiOiB7IiR0aW1lc3RhbXAiOiB7InQiOiAxNzA4NTI3ODgzLCAiaSI6IDI3fX0sICJzaWduYXR1cmUiOiB7Imhhc2giOiB7IiRiaW5hcnkiOiB7ImJhc2U2NCI6ICJJUDFqVjZ6N0Y4dGtNSVdPYkRtUGtuYmZTeWM9IiwgInN1YlR5cGUiOiAiMDAifX0sICJrZXlJZCI6IDczMzMxNzk4MzkyNDA3MzI2Nzd9fX0=; Path=/
{
  "data": [
    {
      "status": "active",
      "dateModified": "2018-01-01T02:03:00+02:00",
      "dateCreated": "2018-01-01T02:03:00+02:00",
      "mode": "test",
      "id": "05a178d3c4fb49b686cb637ff9893b36"
    }
  ],
  "count": 1,
  "page": 1,
  "limit": 500,
  "total": 1
}

Private feeds

Private feeds show draft and cancelled objects:

But private feeds can be accessed as long as the right authorisation is provided

GET /api/2.5/monitorings?feed=changes&mode=real_draft&opt_fields=status HTTP/1.0
Authorization: Basic YnJva2VyOmJyb2tlcg==
Host: audit-api-sandbox.prozorro.gov.ua

Response: 403 Forbidden
Content-Type: application/json
Set-Cookie: SESSION=eyJvcGVyYXRpb25fdGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3MDg1Mjc4ODIsICJpIjogNjl9fSwgImNsdXN0ZXJfdGltZSI6IHsiY2x1c3RlclRpbWUiOiB7IiR0aW1lc3RhbXAiOiB7InQiOiAxNzA4NTI3ODgyLCAiaSI6IDY5fX0sICJzaWduYXR1cmUiOiB7Imhhc2giOiB7IiRiaW5hcnkiOiB7ImJhc2U2NCI6ICJZK20wMm1PWjQ4S00vcXNsUlFXdzlza1Z4dzQ9IiwgInN1YlR5cGUiOiAiMDAifX0sICJrZXlJZCI6IDczMzMxNzk4MzkyNDA3MzI2Nzd9fX0=; Path=/
{
  "status": "error",
  "errors": [
    {
      "location": "url",
      "name": "permission",
      "description": "Forbidden"
    }
  ]
}

Changes

GET /api/2.5/monitorings?feed=changes&mode=real_draft&opt_fields=status HTTP/1.0
Authorization: Basic dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4=
Host: audit-api-sandbox.prozorro.gov.ua

Response: 200 OK
Content-Type: application/json
Set-Cookie: SESSION=eyJvcGVyYXRpb25fdGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3MDg1Mjc4ODIsICJpIjogNjl9fSwgImNsdXN0ZXJfdGltZSI6IHsiY2x1c3RlclRpbWUiOiB7IiR0aW1lc3RhbXAiOiB7InQiOiAxNzA4NTI3ODgyLCAiaSI6IDY5fX0sICJzaWduYXR1cmUiOiB7Imhhc2giOiB7IiRiaW5hcnkiOiB7ImJhc2U2NCI6ICJZK20wMm1PWjQ4S00vcXNsUlFXdzlza1Z4dzQ9IiwgInN1YlR5cGUiOiAiMDAifX0sICJrZXlJZCI6IDczMzMxNzk4MzkyNDA3MzI2Nzd9fX0=; Path=/
{
  "data": [
    {
      "status": "draft",
      "dateModified": "2018-01-01T02:01:00+02:00",
      "id": "ae0bdfa718ad4d9f9fcf69e07d6525f3"
    },
    {
      "status": "cancelled",
      "dateModified": "2018-01-01T02:02:00+02:00",
      "id": "9845ebd5a32946838e0b0bde0d2def0c"
    },
    {
      "status": "active",
      "dateModified": "2018-01-01T02:03:00+02:00",
      "id": "af3e263e8ab949e0a6efaa3b781c3813"
    }
  ],
  "next_page": {
    "offset": 1708527882.734,
    "path": "/api/2.5/monitorings?mode=real_draft&opt_fields=status&offset=1708527882.734",
    "uri": "http://audit-api-sandbox.prozorro.gov.ua/api/2.5/monitorings?mode=real_draft&opt_fields=status&offset=1708527882.734"
  }
}

Date Modified

GET /api/2.5/monitorings?mode=real_draft&opt_fields=status HTTP/1.0
Authorization: Basic dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4=
Host: audit-api-sandbox.prozorro.gov.ua

Response: 200 OK
Content-Type: application/json
Set-Cookie: SESSION=eyJvcGVyYXRpb25fdGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3MDg1Mjc4ODIsICJpIjogNjl9fSwgImNsdXN0ZXJfdGltZSI6IHsiY2x1c3RlclRpbWUiOiB7IiR0aW1lc3RhbXAiOiB7InQiOiAxNzA4NTI3ODgyLCAiaSI6IDY5fX0sICJzaWduYXR1cmUiOiB7Imhhc2giOiB7IiRiaW5hcnkiOiB7ImJhc2U2NCI6ICJZK20wMm1PWjQ4S00vcXNsUlFXdzlza1Z4dzQ9IiwgInN1YlR5cGUiOiAiMDAifX0sICJrZXlJZCI6IDczMzMxNzk4MzkyNDA3MzI2Nzd9fX0=; Path=/
{
  "data": [
    {
      "status": "draft",
      "dateModified": "2018-01-01T02:01:00+02:00",
      "id": "ae0bdfa718ad4d9f9fcf69e07d6525f3"
    },
    {
      "status": "cancelled",
      "dateModified": "2018-01-01T02:02:00+02:00",
      "id": "9845ebd5a32946838e0b0bde0d2def0c"
    },
    {
      "status": "active",
      "dateModified": "2018-01-01T02:03:00+02:00",
      "id": "af3e263e8ab949e0a6efaa3b781c3813"
    }
  ],
  "next_page": {
    "offset": 1708527882.734,
    "path": "/api/2.5/monitorings?mode=real_draft&opt_fields=status&offset=1708527882.734",
    "uri": "http://audit-api-sandbox.prozorro.gov.ua/api/2.5/monitorings?mode=real_draft&opt_fields=status&offset=1708527882.734"
  }
}

Monitoring by tender

GET /api/2.5/tenders/13c14e6a15b24e1a982310f262e18e7a/monitorings?mode=draft HTTP/1.0
Authorization: Basic dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4=
Host: audit-api-sandbox.prozorro.gov.ua

Response: 200 OK
Content-Type: application/json
Set-Cookie: SESSION=eyJvcGVyYXRpb25fdGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3MDg1Mjc4ODIsICJpIjogNjl9fSwgImNsdXN0ZXJfdGltZSI6IHsiY2x1c3RlclRpbWUiOiB7IiR0aW1lc3RhbXAiOiB7InQiOiAxNzA4NTI3ODgyLCAiaSI6IDY5fX0sICJzaWduYXR1cmUiOiB7Imhhc2giOiB7IiRiaW5hcnkiOiB7ImJhc2U2NCI6ICJZK20wMm1PWjQ4S00vcXNsUlFXdzlza1Z4dzQ9IiwgInN1YlR5cGUiOiAiMDAifX0sICJrZXlJZCI6IDczMzMxNzk4MzkyNDA3MzI2Nzd9fX0=; Path=/
{
  "data": [
    {
      "status": "draft",
      "dateModified": "2018-01-01T02:01:00+02:00",
      "dateCreated": "2018-01-01T02:01:00+02:00",
      "id": "ae0bdfa718ad4d9f9fcf69e07d6525f3"
    },
    {
      "status": "cancelled",
      "dateModified": "2018-01-01T02:02:00+02:00",
      "dateCreated": "2018-01-01T02:02:00+02:00",
      "id": "9845ebd5a32946838e0b0bde0d2def0c"
    },
    {
      "status": "active",
      "dateModified": "2018-01-01T02:03:00+02:00",
      "dateCreated": "2018-01-01T02:03:00+02:00",
      "id": "af3e263e8ab949e0a6efaa3b781c3813"
    }
  ],
  "count": 3,
  "page": 1,
  "limit": 500,
  "total": 3
}

Private feeds for TEST mode:

Changes [test]

GET /api/2.5/monitorings?feed=changes&mode=all_draft&opt_fields=status%2Cmode HTTP/1.0
Authorization: Basic dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4=
Host: audit-api-sandbox.prozorro.gov.ua

Response: 200 OK
Content-Type: application/json
Set-Cookie: SESSION=eyJvcGVyYXRpb25fdGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3MDg1Mjc4ODIsICJpIjogODd9fSwgImNsdXN0ZXJfdGltZSI6IHsiY2x1c3RlclRpbWUiOiB7IiR0aW1lc3RhbXAiOiB7InQiOiAxNzA4NTI3ODgyLCAiaSI6IDg3fX0sICJzaWduYXR1cmUiOiB7Imhhc2giOiB7IiRiaW5hcnkiOiB7ImJhc2U2NCI6ICJZK20wMm1PWjQ4S00vcXNsUlFXdzlza1Z4dzQ9IiwgInN1YlR5cGUiOiAiMDAifX0sICJrZXlJZCI6IDczMzMxNzk4MzkyNDA3MzI2Nzd9fX0=; Path=/
{
  "data": [
    {
      "status": "draft",
      "dateModified": "2018-01-01T02:01:00+02:00",
      "id": "01c3bd61dd854b8e8fd089c6eb5e7f28"
    },
    {
      "status": "cancelled",
      "dateModified": "2018-01-01T02:02:00+02:00",
      "id": "26b2d911773e4d689c7d93432bb7dbe8"
    },
    {
      "status": "active",
      "dateModified": "2018-01-01T02:03:00+02:00",
      "id": "87822f89b9784867a0fa1a3ca822191e"
    }
  ],
  "next_page": {
    "offset": 1708527882.903,
    "path": "/api/2.5/monitorings?mode=all_draft&opt_fields=status&offset=1708527882.903",
    "uri": "http://audit-api-sandbox.prozorro.gov.ua/api/2.5/monitorings?mode=all_draft&opt_fields=status&offset=1708527882.903"
  }
}

Date Modified [test]

GET /api/2.5/monitorings?mode=all_draft&opt_fields=status%2Cmode HTTP/1.0
Authorization: Basic dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4=
Host: audit-api-sandbox.prozorro.gov.ua

Response: 200 OK
Content-Type: application/json
Set-Cookie: SESSION=eyJvcGVyYXRpb25fdGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3MDg1Mjc4ODIsICJpIjogODd9fSwgImNsdXN0ZXJfdGltZSI6IHsiY2x1c3RlclRpbWUiOiB7IiR0aW1lc3RhbXAiOiB7InQiOiAxNzA4NTI3ODgyLCAiaSI6IDg3fX0sICJzaWduYXR1cmUiOiB7Imhhc2giOiB7IiRiaW5hcnkiOiB7ImJhc2U2NCI6ICJZK20wMm1PWjQ4S00vcXNsUlFXdzlza1Z4dzQ9IiwgInN1YlR5cGUiOiAiMDAifX0sICJrZXlJZCI6IDczMzMxNzk4MzkyNDA3MzI2Nzd9fX0=; Path=/
{
  "data": [
    {
      "status": "draft",
      "dateModified": "2018-01-01T02:01:00+02:00",
      "id": "01c3bd61dd854b8e8fd089c6eb5e7f28"
    },
    {
      "status": "cancelled",
      "dateModified": "2018-01-01T02:02:00+02:00",
      "id": "26b2d911773e4d689c7d93432bb7dbe8"
    },
    {
      "status": "active",
      "dateModified": "2018-01-01T02:03:00+02:00",
      "id": "87822f89b9784867a0fa1a3ca822191e"
    }
  ],
  "next_page": {
    "offset": 1708527882.903,
    "path": "/api/2.5/monitorings?mode=all_draft&opt_fields=status&offset=1708527882.903",
    "uri": "http://audit-api-sandbox.prozorro.gov.ua/api/2.5/monitorings?mode=all_draft&opt_fields=status&offset=1708527882.903"
  }
}

Monitoring by tender [test] feed is not implemented.