discardRepoWorkingState
Discard ALL uncommitted changes on the branch. Discarding a custom field or model that a policy reads is refused with SchemaChangeBreaksPolicy.
DELETE
/repos/{repo_id}/branches/{branch}/working-statePath parameters
Returns
204
<No Content>
400
InvalidRequest
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
BranchNotFound | RepoNotFound
JSON
One of the following:
- BranchNotFoundEncoded
- RepoNotFoundEncoded
409
SchemaChangeBreaksPolicy | RepoArchived
JSON
One of the following:
- SchemaChangeBreaksPolicyEncoded
- RepoArchivedEncoded
503
RepoBusy | SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- RepoBusyEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded