Create a new tag that can be attached to a video object

Supported Formats

json

Errors

Code Description
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
404 Not Found: The requested resource could not be found
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
422 Unprocessable Entity: body has wrong attributes

Examples

REQUEST
Content-Type: application/json
{
  "name": "awesome",
  "taggable_type": "Video",
  "taggable_id": 256
}

RESPONSE
201 (Created)
{
  "name": "awesome",
  "id": 256,
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

name
required

A unique tag
Minimum length: 2 characters
Maximum length: 100 characters

Validations:

  • Must be a String

taggable_type
required

Is this tagging a video, a player, or an uploader widget?

Validations:

  • Must be one of: Video, Player, UploaderWidget.

taggable_id
required

The ID of the video, player, or uploader widget this tag is for

Validations:

  • Parameter has to be Integer.