Skip to content

Meta

Images

GET /images/tags

Get tags for image

Params:

Any of the following:

  • imageId - Integer
  • imageTitle - String
  • datasetId - Integer required if imageTitle specified

Example:

?imageId=1

Response:

[
  {
    "id": 1,
    "title": "good"
  },
  {
    "id": 2,
    "title": "bad"
  }
]

POST /images/tags

Create tag for image

Query:

Any of the following:

  • imageId - Integer
  • imageTitle - String
  • datasetId - Integer required if imageTitle specified

Body:

Any of the following:

  • id - Integer - tag id
  • title - String - tag title
  • create - Boolean optional - create tag for project if it doesn't exist

Example:

?imageTitle=my_image_title&datasetId=1
{
  "title": "good"
}

Response:

{
  "success": true
}

DELETE /images/tags

Remove tags from image

Query:

Any of the following:

  • imageId - Integer
  • imageTitle - String
  • datasetId - Integer required if imageTitle specified

Body:

Array of tags

Any of the following:

  • id - Integer - tag id
  • title - String - tag title

Example:

?imageTitle=my_image_title&datasetId=1
[
  {
    "title": "good"
  },
  {
    "id": 2
  }
]

Response:

{
  "success": true
}

PUT /images/description

Update description for image

Query:

Any of the following:

  • imageId - Integer
  • imageTitle - String
  • datasetId - Integer required if imageTitle specified

Body:

  • value - String - description

Example:

?imageTitle=my_image_title&datasetId=1
{
  "value": "my cool description"
}

Response:

{
  "success": true
}