Retrieve Categories

DESCRIPTION

To retrieve all existing category definitions.

DEFINITION

GET https://api.anodot.com/api/v1/user-events/categories?token=<api token>

HEADERS

Content-type=application/json

EXAMPLE REQUEST

curl \
-X GET \
-H "Content-Type: application/json" \
'https://api.anodot.com/api/v1/user-events/categories?token=<API TOKEN>'

EXAMPLE RESPONSE

 [
   {
      "id":"0",
      "name":"deployments",
      "imageUrl":"https://s3.amazonaws.com/anodot-images-common/logo-anodot.png",
      "owner":"anodot"
   },
   {
      "id":"1",
      "name":"alerts",
      "imageUrl":"https://s3.amazonaws.com/anodot-images-common/logo-anodot.png",
      "owner":"anodot"
   },
   {
      "id":"2",
      "name":"holidays",
      "imageUrl":"https://s3.amazonaws.com/anodot-images-common/logo-anodot.png",
      "owner":"anodot"
   },
   {
      "id":"3",
      "name":"other",
      "imageUrl":"https://s3.amazonaws.com/anodot-images-common/logo-anodot.png",
      "owner":"anodot"
   },
   {
      "id":"28a78e5a-8257-4bfc-8097-c2d347cefb90",
      "name":"anodot test category",
      "imageUrl":"https://upload.wikimedia.org/wikipedia/
commons/c/c4/PM5544_with_non-PAL_signals.png"
,
      "owner":"user"
   }
]

Note: For more details about example responses, see Success and Errors

Was this article helpful?
0 out of 0 found this helpful