PATCH
/
repos
/
{repo_id}
/
branches
/
{branch_id}
curl --request PATCH \
  --url https://api.diversion.dev/v0/repos/{repo_id}/branches/{branch_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "commit_id": "<string>",
  "branch_name": "<string>",
  "branch_description": "<string>"
}'
This response has no body data.

Authorizations

Authorization
string
headerrequired

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

branch_id
string
required

Branch ID. Branch name can be used instead of the ID, but storing and using branch ID in API requests is preferred.

Body

application/json
commit_id
string
branch_name
string
branch_description
string