POST
/
repos
/
{repo_id}
/
revert
curl --request POST \
  --url https://api.diversion.dev/v0/repos/{repo_id}/revert \
  --header 'Authorization: Bearer <token>'
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.

Query Parameters

base_id
string
required

A reference to a base unto which changes will be applied

revert_ref_id
string
required

A reference to a source version to revert, currently only commit ID is supported