API

SettingMutationLease

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/settings/mutation_lease/clear create Mutation lease cleared and the previous holder fenced off

Fields

Field Type Required Description

create

POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/settings/mutation_lease/clear

Operation ID: api_v1_settings_mutation_lease_clear.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes

Request body

application/json

Property Type Required Description
reason string No

Responses

200: Mutation lease cleared and the previous holder fenced off

application/json

Property Type Required Description
cleared boolean Yes
fenced_to_version integer Yes
lease object Yes
lease.blockers array of string Yes
lease.expired boolean Yes
lease.expires_at string Yes
lease.fence_version integer Yes
lease.fingerprint string Yes
lease.held boolean Yes
lease.inspected_at string Yes
lease.kind enum: short, remote, null Yes
lease.recoverable boolean Yes
lease.takeover_after string Yes
lease_fingerprint string Yes
was_live boolean Yes
401: Unauthorized
403: Forbidden
404: Not found
422: No mutation lease to clear

application/json

Property Type Required Description
error string Yes
502: Bad gateway