v11

latestOpenAPI 3.0.3raw.githubusercontent.com2023-03-267613.7 KB
Files

Add or Update File in Repository

This will add or update a file. The wanted file name is at the end of the endpoint. The form contents can be a file name, including relative path, or any string. If the file has a .json extension, it will be checked for valid JSON format.

A multi-part form with a contents key must be used to PUT a repo file. Note that you should add files using this endpoint and CURL rather than using git commands. Here is a CURL example:

<pre><code translate="No">curl \ --user $EMAIL \ --form contents=@first-plugin.js \ --request PUT \ https://repos.api.brightcove.com/v1/accounts/{{account_id}}/repos/firstRepo/files/first-plugin.js</code></pre>
put/accounts/{{account_id}}/repos/{repo_name}/files/{filename}

Path parameters

account_idstring required

Video Cloud account ID.

repo_namestring required

The name of the repo.

filenamestring required

The name of the file in the repo to add or update.

Headers

Authorizationstring required

Authorization: Bearer access_token (see Getting Access Tokens)

Response

200

namestring required

Destination filename

public_urlstring required

URL to use for referencing the file (contrasted to the repo URL)

All 7 operations