Disable a teammate — owner only
POST
/operator/team/{id}/disable
const url = 'http://localhost:3000/operator/team/example/disable';const options = {method: 'POST', 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 POST \ --url http://localhost:3000/operator/team/example/disable \ --header 'Authorization: Bearer <token>'Reversible, and it preserves the audit trail; there is no hard delete here. An operator may not disable themselves even when other owners exist.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”The disabled teammate.
Media typeapplication/json
An operator on the caller’s own tenant. invite_pending is true until they accept their invite and set a password. No password material is ever returned.
object
id
required
string
email
required
string format: email
name
required
string
role
required
string
status
required
string
created_at
required
string format: date-time
invite_pending
required
boolean
Example
{ "role": "owner", "status": "active"}Invalid, expired, revoked, or absent token.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
requestId
required
string
fields
Present only for VALIDATION_FAILED.
Array<object>
object
path
string
message
string
Example
{ "error": { "code": "VALIDATION_FAILED" }}Caller is not an owner, the id belongs to another tenant, or the caller is acting on their own row.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
requestId
required
string
fields
Present only for VALIDATION_FAILED.
Array<object>
object
path
string
message
string
Example
{ "error": { "code": "VALIDATION_FAILED" }}This is the last active owner. Disabling them would strand the tenant with nobody who can administer it.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
requestId
required
string
fields
Present only for VALIDATION_FAILED.
Array<object>
object
path
string
message
string
Example
{ "error": { "code": "VALIDATION_FAILED" }}