Create a new tag that can be attached to a video object.
IMPORTANT CHANGE TO ENDPOINT: Using this endpoint with the “Video” as the taggable_type
will return inconsistent data in any future reads. All new tags should be created using “Player” or “UploaderWidget” as the taggable_type
.
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 |
REQUEST Content-Type: application/json { "name": "awesome", "taggable_type": "Video", "taggable_id": 256 } RESPONSE 201 (Created) { "name": "awesome", "taggable_type": "Video", "taggable_id": 256 "id": 130, }
Param name | Description |
---|---|
auth_token optional |
API token needed to authorize requests Validations:
|
name required |
A unique tag Validations:
|
taggable_type required |
Is this tagging a video, a player, an uploader widget, or a template? Validations:
|
taggable_id required |
The ID of the video, player, uploader widget, or template this tag is for Validations:
|