Remove Target List Member
Remove a member from a target list.
Requires the target_lists:share scope. With an API client's token, only a list created by an API client can have its members changed; a list created in the Handshaik app returns 404, even one shared with the organisation at write. With a user's token, the user needs owner access, as in Handshaik. The person loses access to the list and is notified in Handshaik. There is no response body.
A second DELETE of the same member returns 404, so a retry after a network timeout can report 404 for a removal that in fact succeeded; a 404 whose detail is Member not found means the list exists and that member is not on it.
Errors: 403 missing target_lists:share, or a user below owner ยท 404 Target list not found (the list does not exist, belongs to another organisation, is hidden from the caller or, for an API client, was not created by one) or Member not found ยท 409 the member is the owner, so make another member the owner first; or the member still has companies assigned to them on this list (the detail gives how many), so reassign those in Handshaik first. Nothing is written on any of them.
curl -X DELETE "https://api.handshaik.com/v1/target-lists/3fa85f64-5717-4562-b3fc-2c963f66afa6/members/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
-H "Authorization: Bearer $HANDSHAIK_PUBLIC_API_KEY"Authorization
AuthorizationstringheaderrequiredOAuth2 client_credentials (M2M). Request a token with the
audienceset tohttps://api.handshaik.com.Handshaik's own first-party apps, such as the Chrome extension, instead sign a Handshaik user in with the authorization code flow and PKCE, with the same
audience. Such a token acts as that user, within their organisation. Partner integrations use client_credentials.
Parameters
target_list_idstring<uuid>pathrequiredThe target list's
id, as returned byGET /v1/target-listsmember_idstring<uuid>pathrequiredThe member's
member_id, as returned byGET /v1/target-lists/{target_list_id}/members
Response
Successful Response
{
"type": "about:blank",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}