Update availability
Updates a team member's availability state — Active, Inactive, On Leave, or Working. Affects lead distribution rules that key off availability.
Request
| Field | Value |
|---|---|
| Method | POST |
| URL | https://next.telecrm.in/autoupdate/v2/enterprise/{enterpriseId}/teammember/state_change |
| Auth | Bearer token (Sync-typed). See Authentication. |
| Headers | Content-Type: application/json |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
enterpriseId | string | yes | The enterprise (workspace) ID. |
Body
| Field | Type | Required | Description |
|---|---|---|---|
state | string | yes | New state: one of Active, Inactive, On Leave, Working. |
email | string | yes | Email 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 theteam-members(hyphenated) collection endpoints.