Repositories

Create or Update Repository

Changed on

This will create a Repository, if it does not exist. A response of 200 means the repository already existed. A response of 201 means repository was successfully created.

put/accounts/{{account_id}}/repos/{repo_name}

Request

  • Base URL
    https://repos.api.brightcove.com/v1
  • URL
    https://repos.api.brightcove.com/v1/accounts/{{account_id}}/repos/{repo_name}
  • Auth
    OAuth 2
    Client credentials
    Token URL: https://oauth.brightcove.com/v4/access_token scopes: video-cloud/player/all

Path parameters

account_idstring required

Video Cloud account ID.

repo_namestring required

The name of the repo.

Headers

Content-Typestring required

Content-Type: application/json

Authorizationstring required

Authorization: Bearer access_token (see Getting Access Tokens)

Response

200 - (repo already exists)

namestring

repo name

public_urlstring

URL for the public player

repo_urlstring

URL for the repository

Changes