POST
/
repos
/
{repo_id}
/
shelves
/
{shelf_id}
/
apply
curl --request POST \
  --url https://api.diversion.dev/v0/repos/{repo_id}/shelves/{shelf_id}/apply \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspace_id": "<string>",
  "delete_shelf": true
}'
{
  "merge_id": "example_id"
}

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.

shelf_id
string
required

Shelf identifier

Body

application/json
workspace_id
string
required

Workspace ID on which to apply the shelved changes

delete_shelf
boolean
default: false

Should shelf be deleted after applying it

Response

202 - application/json
merge_id
string
required