Re-enable a disabled teammate — owner only
POST
/operator/team/{id}/enable
const url = 'http://localhost:3000/operator/team/example/enable';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/enable \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”The re-enabled 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, or the id belongs to another tenant.
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" }}