tag

Retrieve all tags with optional filtering by type.

get/tag/get

Request

  • Base URL
    https://api.skulabs.com
  • URL
    https://api.skulabs.com/tag/get
  • Auth
    HTTP bearer

Query parameters

selectorobject required

Query selector object for filtering results

limitnumber

Max results to return

Example:50
skipnumber

Number of results to skip

sortobject

Sort fields object, e.g. { "name": 1 }

Response

Array of tags matching the query

_idstring required

Unique tag identifier

namestring required

Tag name

type'orders' | 'items' | 'purchase_order' | 'customers' required

Tag type

color'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'purple' | 'indigo' | 'gray' | 'maroon' | 'fuchsia' | 'chartreuse' | 'dodger' | 'salmon' | 'cornflower' | 'khaki' | 'steel' | 'plum' required

Tag color

Example response

[
  {
    "_id": "507f1f77bcf86cd799439011"
  }
]

Changes

    • breaking

      the query request parameter selector became required

    • breaking

      for the query request parameter selector, the type changed from string to object

    • info

      api operation id get_tag_get was added

    • info

      for the query request parameter limit, the format was generalized from integer to no format

    • info

      for the query request parameter skip, the format was generalized from integer to no format

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • breaking

      for the query request parameter sort, the type changed from number to object, and format from integer to no format