Labels

Create a label

Creates a new label for an entity. Optionally creates a master label.

post/labels

Request

  • Base URL: https://api.streamtime.net/v2
  • URL: https://api.streamtime.net/v2/labels
  • Auth: HTTP bearer

Query parameters

create_master_labelboolean

If true, also creates a master label

Request body

idinteger

Label ID

namestring

Label name

entityIdinteger

ID of the entity this label is attached to

Example request

{
  "id": 555,
  "name": "Urgent",
  "entityId": 1001,
  "labelType": {
    "id": 5
  }
}

Response

Label created successfully.

idinteger

Label ID

namestring

Label name

entityIdinteger

ID of the entity this label is attached to

Example response

{
  "id": 555,
  "name": "Urgent",
  "entityId": 1001,
  "labelType": {
    "id": 5
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.