Harbors

List Harbor Saved Query Drafts

Changed on

Lists mutable Harbor saved-query drafts.

Drafts are ordered from newest to oldest and include complete SQL, typed parameter declarations, and author-supplied validation values. Harbor profile credentials cannot access this endpoint.

get/api/harbors/{harbor_id}/saved-queries/drafts

Request

  • Base URL
    https://app.polytomic.com
  • Auth
    • HTTP bearer
    • or HTTP basic

Path parameters

harbor_idstring uuid required

Unique identifier of the Harbor

Example:248df4b7-aa70-47b8-a036-33ac447e668d

Query parameters

limitinteger

Maximum number of saved-query drafts to return

page_tokenstring

Opaque pagination cursor returned by the previous request

Headers

X-Polytomic-Versionstring

Response

OK

Example response

{
  "data": [
    {
      "created_by": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "parameters": [
        {
          "name": "start_date"
        }
      ],
      "saved_query_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "updated_by": "248df4b7-aa70-47b8-a036-33ac447e668d"
    }
  ],
  "pagination": {
    "next_page_token": "AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K=="
  }
}

Changes

    • breaking

      the response's property type changed from object to no type for status

    • warning

      removed the optional property / from the response with the status

    • info

      added to the response property allOf list for the response status

    • info

      endpoint added