Download OpenAPI specification:
This is the API specification of the M2A Live Materials.
Register a single playout material with the Live Materials API
The fields required in the payload when POSTing
required | object (Metadata in request body) |
| status required | string (status_request) Enum: "available" "unavailable" Whether the playout material is available for use. Material is withdrawn after registration, so it cannot be registered as withdrawn |
| role required | string (role) Enum: "slate" "overlay" |
| type | string Enum: "mp4_h264_aac" "png_32bit" The media format of the playout material. Required for overlays, which must be png_32bit. Slates must be mp4_h264_aac, which is assumed when no type is given |
| url required | string (s3_url) ^s3(ssl)?:// The S3 URL of an object, using the |
object (previews_request) S3 objects to use as previews of the playout material. They must be in the same bucket as the playout material |
{- "metadata": {
- "labels": [
- {
- "key": "m2amedia.tv:name",
- "value": "Half-time slate"
}
], - "organisation-id": "a136776e-f1ea-42bf-865f-e7074c517002",
- "target-account-id": "a136776e-f1ea-42bf-865f-e7074c517001"
}, - "status": "available",
- "role": "slate",
- "type": "mp4_h264_aac",
- "url": "s3ssl://my-materials-bucket/slates/half-time.mp4",
- "previews": {
- "image": "s3ssl://my-materials-bucket/slates/half-time.png"
}
}{- "id": "2e31a1e3-abd2-4bc5-9443-bc0c6acf36d7",
- "metadata": {
- "created": "2021-01-29T08:30:00+00:00",
- "updated": "2021-01-29T08:30:00+00:00",
- "labels": [
- {
- "key": "m2amedia.tv:name",
- "value": "15 Minute Meeting (2e31a1e3-abd2-4bc5-9443-bc0c6acf36d7)"
}
], - "organisation-id": "a136776e-f1ea-42bf-865f-e7074c517002",
- "target-account-id": "a136776e-f1ea-42bf-865f-e7074c517001"
}, - "status": "available",
- "role": "slate",
- "type": "mp4_h264_aac",
- "health": {
- "status": "ready",
- "faults": [ ]
},
}Get a page of a target account's playout material. Withdrawn material is left out unless status asks for it. Keep requesting pages with next-page-key until it is null: a page can hold fewer materials than page-size, or none, while more remain.
| organisation-id required | string <uuid> (organisation_id) Example: organisation-id=a136776e-f1ea-42bf-865f-e7074c517002 The ID of the organisation that owns the target account. Required, but not used to narrow the listing |
| target-account-id required | string <uuid> (target_account_id) Example: target-account-id=a136776e-f1ea-42bf-865f-e7074c517001 The ID of the target account whose playout material is listed |
| health | string (health_status) Enum: "ready" "broken" Only list playout material with this health |
| role | string (role) Enum: "slate" "overlay" Only list playout material with this role |
| type | string (media_type) Enum: "mp4_h264_aac" "png_32bit" Only list playout material in this media format |
| status | string (status) Enum: "available" "unavailable" "withdrawn" Whether the playout material is available for use. Withdrawn material is left out unless this parameter asks for it by name |
| page-size | integer [ 2 .. 2000 ] Default: 100 The largest number of playout materials to return on one page |
| next-page-key | string <byte> The |
{- "items": [
- {
- "id": "2e31a1e3-abd2-4bc5-9443-bc0c6acf36d7",
- "metadata": {
- "created": "2021-01-29T08:30:00+00:00",
- "updated": "2021-01-29T08:30:00+00:00",
- "labels": [
- {
- "key": "m2amedia.tv:name",
- "value": "15 Minute Meeting (2e31a1e3-abd2-4bc5-9443-bc0c6acf36d7)"
}
], - "organisation-id": "a136776e-f1ea-42bf-865f-e7074c517002",
- "target-account-id": "a136776e-f1ea-42bf-865f-e7074c517001"
}, - "status": "available",
- "role": "slate",
- "type": "mp4_h264_aac",
- "health": {
- "status": "ready",
- "faults": [ ]
},
}
], - "next-page-key": "string"
}Get a single playout material with the Live Materials API. Withdrawn material is returned like any other.
| material-id required | string <uuid> (Resource identifier) Example: 2e31a1e3-abd2-4bc5-9443-bc0c6acf36d7 The ID of the playout material |
| previews | string Default: "excluded" Enum: "required" "preferred" "excluded" Whether to include presigned URLs for the playout material's previews. |
{- "id": "2e31a1e3-abd2-4bc5-9443-bc0c6acf36d7",
- "metadata": {
- "created": "2021-01-29T08:30:00+00:00",
- "updated": "2021-01-29T08:30:00+00:00",
- "labels": [
- {
- "key": "m2amedia.tv:name",
- "value": "15 Minute Meeting (2e31a1e3-abd2-4bc5-9443-bc0c6acf36d7)"
}
], - "organisation-id": "a136776e-f1ea-42bf-865f-e7074c517002",
- "target-account-id": "a136776e-f1ea-42bf-865f-e7074c517001"
}, - "status": "available",
- "role": "slate",
- "type": "mp4_h264_aac",
- "health": {
- "status": "ready",
- "faults": [ ]
},
}Withdraw a playout material so that it is no longer offered when choosing material. The material stays retrievable by its ID, so that work already using it can still report what it is. Overlays already accepted with this material are unaffected and still air as planned.
| material-id required | string <uuid> (Resource identifier) Example: 2e31a1e3-abd2-4bc5-9443-bc0c6acf36d7 The ID of the playout material |
No auth header