Brightcove Delivery Rule Actions API
Operations for creating, reading, updating and deleting Delivery Rule Actions
Operations for creating, reading, updating and deleting Delivery Rule Actions
openapi: 3.0.3
info:
title: Brightcove Analytics API Reference Access Tokens Delivery Rule Actions API
description: "Reference for the Brightcove Analytics API, used to retrieve analytics data for your accounts. To test API requests, you can use our <a href=\"/getting-started/concepts-testing-tools-brightcove-apis.html\" target=\"_blank\">API Testing Tools</a>.\n\nFor additional in-depth guides to features of the API, see the **[general documentation](/analytics/index.html)**.\n\n **Base URL**: https://analytics.api.brightcove.com"
x-bc-access: public
version: 1.0.0
servers:
- url: https://analytics.api.brightcove.com
variables: {}
tags:
- name: Delivery Rule Actions
description: Operations for creating, reading, updating and deleting Delivery Rule Actions
paths:
/accounts/{{account_id}}/actions:
get:
tags:
- Delivery Rule Actions
summary: Fetch the Actions for the account
description: List the Actions defined for an account
operationId: getActions
security:
- BC_OAuth2:
- video-cloud/delivery-rules/read
parameters:
- $ref: '#/components/parameters/AccountId'
- name: Authorization
in: header
description: 'Authorization: Bearer access_token (see Getting Access Tokens)'
required: true
style: simple
explode: false
schema:
type: string
responses:
'200':
description: '200'
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Action'
'403':
description: Forbidden
'500':
description: Server error
deprecated: false
x-operation-settings:
CollectParameters: false
AllowDynamicQueryParameters: false
AllowDynamicFormParameters: false
IsMultiContentStreaming: false
post:
tags:
- Delivery Rule Actions
summary: Create an Action
description: Create an Action
operationId: createAction
security:
- BC_OAuth2:
- video-cloud/delivery-rules/all
parameters:
- $ref: '#/components/parameters/AccountId'
- name: Content-Type
in: header
description: 'Content-Type: application/json'
required: true
style: simple
explode: false
schema:
type: string
- name: Authorization
in: header
description: 'Authorization: Bearer access_token (see Getting Access Tokens)'
required: true
style: simple
explode: false
schema:
type: string
requestBody:
description: New Action
content:
application/json:
schema:
$ref: '#/components/schemas/Action'
required: true
responses:
'200':
description: '200'
content:
application/json:
schema:
$ref: '#/components/schemas/Action'
'400':
description: Bad Request
'403':
description: Forbidden
'500':
description: Server error
deprecated: false
x-operation-settings:
CollectParameters: false
AllowDynamicQueryParameters: false
AllowDynamicFormParameters: false
IsMultiContentStreaming: false
/accounts/{{account_id}}/actions/{action_id}:
get:
tags:
- Delivery Rule Actions
summary: Fetch a specific Action
description: Fetch a specific Action based on its ID
operationId: getAction
security:
- BC_OAuth2:
- video-cloud/delivery-rules/read
parameters:
- $ref: '#/components/parameters/AccountId'
- $ref: '#/components/parameters/ActionId'
- name: Authorization
in: header
description: 'Authorization: Bearer access_token (see Getting Access Tokens)'
required: true
style: simple
explode: false
schema:
type: string
responses:
'200':
description: '200'
content:
application/json:
schema:
$ref: '#/components/schemas/Action'
'403':
description: Forbidden
'500':
description: Server error
deprecated: false
x-operation-settings:
CollectParameters: false
AllowDynamicQueryParameters: false
AllowDynamicFormParameters: false
IsMultiContentStreaming: false
put:
tags:
- Delivery Rule Actions
summary: Update an Action
description: Update an Action. The Action ID in the body must match the one in the URL.
operationId: updateAction
security:
- BC_OAuth2:
- video-cloud/delivery-rules/all
parameters:
- $ref: '#/components/parameters/AccountId'
- $ref: '#/components/parameters/ActionId'
- name: Content-Type
in: header
description: 'Content-Type: application/json'
required: true
style: simple
explode: false
schema:
type: string
- name: Authorization
in: header
description: 'Authorization: Bearer access_token (see Getting Access Tokens)'
required: true
style: simple
explode: false
schema:
type: string
requestBody:
description: Updated Action
content:
application/json:
schema:
$ref: '#/components/schemas/ActionWithID'
required: true
responses:
'200':
description: '200'
content:
application/json:
schema:
$ref: '#/components/schemas/Action'
'400':
description: Bad Request
'403':
description: Forbidden
'404':
description: Action not found
'500':
description: Server error
deprecated: false
x-operation-settings:
CollectParameters: false
AllowDynamicQueryParameters: false
AllowDynamicFormParameters: false
IsMultiContentStreaming: false
delete:
tags:
- Delivery Rule Actions
summary: Delete an Action
description: Delete an Action
operationId: deleteAction
security:
- BC_OAuth2:
- video-cloud/delivery-rules/all
parameters:
- $ref: '#/components/parameters/AccountId'
- $ref: '#/components/parameters/ActionId'
- name: Authorization
in: header
description: 'Authorization: Bearer access_token (see Getting Access Tokens)'
required: true
style: simple
explode: false
schema:
type: string
responses:
'204':
description: Action deleted successfully
'403':
description: Forbidden
'404':
description: Action not found
'500':
description: Server error
deprecated: false
x-operation-settings:
CollectParameters: false
AllowDynamicQueryParameters: false
AllowDynamicFormParameters: false
IsMultiContentStreaming: false
components:
schemas:
ActionWithID:
title: Action
type: object
properties:
id:
type: string
description: Unique identifier for the Action
properties:
type: object
description: A list of properties to apply
properties:
min_video_bitrate:
description: Minimum video bitrate
type: number
max_video_bitrate:
description: Maximum video bitrate
type: number
first_video_bitrate:
description: First video bitrate to appear in the manifest
type: number
min_video_resolution:
description: Minimum video resolution
type: string
max_video_resolution:
description: Maximum video resolution
type: string
max_video_renditions:
description: Maximum video renditions
type: number
max_audio_renditions:
description: Maximum audio renditions
type: number
preferred_cdn_provider:
description: Preferred CDN provider
type: string
preferred_cdn_domain:
description: Preferred CDN domain
type: string
video_codecs:
type: array
description: A list of Video Codecs to use
items:
description: Video Codec
type: string
audio_codecs:
type: array
description: A list of Audio Codecs to use
items:
description: Audio Codec
type: string
Action:
title: Action
type: object
properties:
id:
type: string
readOnly: true
description: Unique identifier for the Action
properties:
type: object
description: A list of properties to apply
properties:
min_video_bitrate:
description: Minimum video bitrate
type: number
max_video_bitrate:
description: Maximum video bitrate
type: number
first_video_bitrate:
description: First video bitrate to appear in the manifest
type: number
min_video_resolution:
description: Minimum video resolution
type: string
max_video_resolution:
description: Maximum video resolution
type: string
max_video_renditions:
description: Maximum video renditions
type: number
max_audio_renditions:
description: Maximum audio renditions
type: number
preferred_cdn_provider:
description: Preferred CDN provider
type: string
preferred_cdn_domain:
description: Preferred CDN domain
type: string
video_codecs:
type: array
description: A list of Video Codecs to use
items:
description: Video Codec
type: string
audio_codecs:
type: array
description: A list of Audio Codecs to use
items:
description: Audio Codec
type: string
parameters:
ActionId:
name: action_id
in: path
description: ID of the Action to query on
required: true
schema:
type: string
AccountId:
name: account_id
in: path
description: Video Cloud account id
required: true
style: simple
explode: false
schema:
type: string
securitySchemes:
BC_OAuth2:
type: oauth2
description: Brightcove OAuth API. See the [support documentation](/oauth/index.html) or [Getting Access Tokens](/oauth/code-samples/oauth-api-sample-get-access-token.html) to learn more
flows:
clientCredentials:
tokenUrl: https://oauth.brightcove.com/v4/access_token
scopes:
video-cloud/analytics/read: Read analytics data
video-cloud/video/read: Read video data
x-bc-implicit-head: true
x-bc-implicit-options: true
x-bc-upstream: https://backend_server