Skip to content

Update availability

Updates a team member's availability state — Active, Inactive, On Leave, or Working. Affects lead distribution rules that key off availability.

Request

FieldValue
MethodPOST
URLhttps://next.telecrm.in/autoupdate/v2/enterprise/{enterpriseId}/teammember/state_change
AuthBearer token (Sync-typed). See Authentication.
HeadersContent-Type: application/json

Path parameters

NameTypeRequiredDescription
enterpriseIdstringyesThe enterprise (workspace) ID.

Body

FieldTypeRequiredDescription
statestringyesNew state: one of Active, Inactive, On Leave, Working.
emailstringyesEmail of the team member whose state is being changed.

Example request

bash
curl -X POST "https://next.telecrm.in/autoupdate/v2/enterprise/{enterpriseId}/teammember/state_change" \
  -H "Authorization: Bearer YOUR_SYNC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "state": "Working",
    "email": "jane.doe@example.com"
  }'

Responses

200 OK

json
{
  "email": "jane.doe@example.com",
  "status": "Working"
}

400 Bad Request

Invalid state or email.

401 Unauthorized

See the universal 401 in the overview.

Notes

  • Use this for active/inactive toggles and leave tracking. To change permissions or roles, use the dashboard.
  • The endpoint path uses teammember (one word) — different from the team-members (hyphenated) collection endpoints.