Soft-delete a branch
DELETE
/v1/tenants/{tenantId}/branches/{branchId}
const url = 'https://api.emite.cr/v1/tenants/example/branches/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.emite.cr/v1/tenants/example/branches/example \ --header 'Authorization: Bearer <token>'Removes a branch that was never used: it leaves the lists and pickers, and no document can be issued from it. The default branch, and a branch any document references (in either environment, drafts included), cannot be deleted: 422.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”tenantId
required
string
branchId
required
string
Responses
Section titled “Responses”Branch soft-deleted.
Missing or invalid JWT / API key
Tenant boundary violation or insufficient scope.
Branch not found.
It is the default branch, or documents reference it.