Skip to content

Delete a team member

Request

Deletes a Team Member of the Location. After that getTeamMember answers 404 resource_not_found, listTeamMembers no longer returns the Team Member, and a repeated delete answers 404.

  • The linked user may lose access to the Location.
  • The seat in the license of the Location is freed.
  • The Team Member disappears from online booking.
  • Appointments, including future ones, stay assigned to the deleted Team Member: move them to another Team Member before deleting.
  • A deleted Team Member can be restored only in the Altegio interface.

When the deletion revokes a linked user's access to the Location, the token also needs the team_members:manage_access scope; without it the request fails with 403 missing_scope.

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.

curl -i -X DELETE \
  'https://developer.alteg.io/_mock/en/b2b-v3/openapi/locations/{location_id}/team_members/{team_member_id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

The team member has been deleted.

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.

Response
No content