POST
/
repos
/
{repo_id}
/
revert
curl --request POST \
  --url https://api.diversion.dev/v0/repos/{repo_id}/revert \
  --header 'Authorization: Bearer <token>'
This response does not have an example.

Authorizations

Authorization
string
header
required

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.

Required string length: 3 - 128
Example:

"example_id"

Query Parameters

base_id
string

A reference to a base unto which changes will be applied

Required string length: 3 - 128
Example:

"example_id"

revert_ref_id
string

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

Required string length: 3 - 128
Example:

"example_id"

Response

200
_mintlify/placeholder

The revert was empty