Skip to content

Dismiss a team member

Request

Dismisses a Team Member as a command: the response is the Team Member with dismissal_date set and online_booking_enabled: false. Dismissal is not a field of the Team Member card — updateTeamMember cannot set it. The acting user needs the dismissal permission of the Location; dismissing a member who has a system login also needs the permission to delete users, otherwise 403 permission_denied. Dismissing an already dismissed member returns the current state unchanged.

Security
OAuth2(Required scopes: team_members:write) or ApiKey
Path
location_idintegerrequired

Identifier of the Location. Verified against the credential on every call — a Location the credential cannot access responds with 404.

team_member_idintegerrequired

Identifier of the Team Member.

Bodyapplication/json
dismissal_datestring, (date)

Last working day, YYYY-MM-DD in the Location timezone. Defaults to today.

reasonstring

Free-form dismissal reason stored on the Team Member.

curl -i -X POST \
  'https://developer.alteg.io/_mock/en/b2b-v3/openapi/locations/{location_id}/team_members/{team_member_id}/dismiss' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "dismissal_date": "2026-10-31",
    "reason": "moved to another city"
  }'

Responses

The dismissed team member.

Headers
RateLimit-Remaininginteger, (int32), >= 0

Requests left in the most constrained policy window that applies to this request.

RateLimit-Resetinteger, (int32), >= 0

On 429, seconds until the most constrained policy frees up; it equals Retry-After there. On a successful response it reports the length of that policy's window rather than the time left in the current one, so treat it as the window size, not as a countdown — the counter to pace against is RateLimit-Remaining.

RateLimit-Policystring

Most constrained policy applied to the request, as <limit>;w=<window in seconds>.

Example:"10;w=60"
X-Request-Idstring

Request identifier for support and log correlation.

Bodyapplication/json
idintegerread-onlyrequired
objectstringread-onlyrequired
Value:"team_member"
namestringrequired

Display name, HTML entities decoded.

specializationstringrequired

Public profession label shown to clients (for example in online booking), HTML entities decoded.

avatar_urlstring or null, (uri)read-onlyrequired

Photo of the team member, up to 220×220 px (smaller when the uploaded photo is smaller); null when no photo is set.

position_idinteger or nullrequired

Position from listPositions; null when the member has no position or the position is not listed by listPositions.

online_booking_enabledbooleanrequired

The business's online booking setting for this team member in the Location. It does not mean that free time is available; free slots come from the availability operations.

is_schedulablebooleanrequired

Whether the Team Member is in the Work Schedule of the Location, so a schedule, services, a position and online booking can be set for them. It does not mean that shifts are already set. A Team Member in the Work Schedule takes a seat in the license of the Location unless they are dismissed. Always true in a Location where every Team Member is in the Work Schedule.

dismissal_datestring or null, (date)read-onlyrequired

Last working day set by dismissTeamMember, YYYY-MM-DD in the Location timezone; null while employed.

created_atstring or null, (date-time)read-onlyrequired

UTC; null for legacy records without a creation date.

Response
{ "id": 321, "object": "team_member", "name": "Beatriz Costa", "specialization": "Hair stylist", "avatar_url": null, "position_id": 7, "online_booking_enabled": false, "is_schedulable": true, "dismissal_date": "2026-10-31", "created_at": "2025-03-02T10:00:00Z" }