Attach an Event to a resource
Get all events belonging to your organization, with their timing information.
| 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 |
REQUEST
Accept: application/json
RESPONSE
200 (OK)
[
{
"event_id": 8192,
"second": 4,
"duration": 2
"event": {
"event_type": "custom",
"html": "<div class=\"main\">Checkout my CTA!</div>"
...
}
},
{
"event_id": 9297,
"second": 6,
"duration": 4
"event": {
"event_type": "custom",
"html": "<div class=\"main\">Checkout my CTA!</div>"
...
}
}
]
| Param name | Description |
|---|---|
|
auth_token optional |
API token needed to authorize requests Validations:
|
Add a default event to a organization
| 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 |
REQUEST
Content-Type: application/json
{
"event_id": 8192,
"second": 4,
"duration": 2
}
RESPONSE
200 (OK)
{
"event_id": 8192,
"second": 4,
"duration": 2
"event": {
"event_type": "custom",
"html": "<div class=\"main\">Checkout my CTA!</div>"
...
}
}
| Param name | Description |
|---|---|
|
auth_token optional |
API token needed to authorize requests Validations:
|
|
event_id required |
The ID of the default event to add to this organization. Validations:
|
|
second required |
The second the event will start on. A setting of “-1” will designate the event as a Post-Roll Validations:
|
|
duration required |
The duration of the event. Validations:
|
|
annotation_css optional , nil allowed |
Custom display settings if the event is an annotation Validations:
|
Modify an existing organization’s default event
| 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 |
REQUEST
Content-Type: application/json
{
"second": 4,
"duration": 2
}
RESPONSE
200 (OK)
{
"event_id": 8192,
"second": 4,
"duration": 2
"event": {
"event_type": "custom",
"html": "<div class=\"main\">Checkout my CTA!</div>"
...
}
}
| Param name | Description |
|---|---|
|
auth_token optional |
API token needed to authorize requests Validations:
|
|
second optional |
The second the event will start on. A setting of “-1” will designate the event as a Post-Roll Validations:
|
|
duration optional |
The duration of the event. Validations:
|
|
annotation_css optional |
Custom display settings if the referenced event is an annotation Validations:
|
Delete a default event from an organization.
| 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 |
REQUEST
Accept: application/json
RESPONSE
200 (OK)
{
"event_id": 8192,
"second": 4,
"duration": 2
"event": {
"event_type": "custom",
"html": "<div class=\"main\">Checkout my CTA!</div>"
...
}
}
| Param name | Description |
|---|---|
|
auth_token optional |
API token needed to authorize requests Validations:
|