Removes a person from a prospect.
The person's place on the prospect ends; the contact stays in your network and the
prospect's history about them stays. Removing the main contact of a prospect you added makes
the earliest-added remaining person the main contact. Refusals carry a code in error:
last_contact (409) — a prospect keeps at least one person; make someone else the
main contact first, or remove the prospect — and person_has_room_access (409)
when the person's account has access to the prospect's Case Room: repeat with
keep_room_access=true to remove them anyway (they keep that access);
main_contact_switch_first (400) for the main contact of a prospect your teaser
brought in: make someone else the main contact first; contact_of_other_company
(409) when the person who would become the main contact has another own company than
the prospect's (see adding a person). Every people write is also refused
with prospect_not_established or prospect_not_broker_added (400) or
prospect_inactive (409, removed or closed) or main_contact_of_other_organisation
(409, its main contact is a record of another organisation's network). A contact who is not one of the
prospect's people answers 404. This emits prospect.updated with changed_fields: ["contacts"]
(and contact_id when the main contact changed) and a prospect.contact_removed
timeline event.
Path Parameters
- Type: stringproject
Id requiredProject ID
- Type: stringidrequired
Prospect ID
- Type: stringcontact
Id requiredContact ID of the person to remove
Query Parameters
- Type: booleankeep
_room _access Remove a person whose account has access to the prospect's Case Room; they keep that access. Default false.
Responses
- 204
No Content
- application/problem+json
- application/problem+json
- application/problem+json
- application/problem+json
curl 'https://app.propstreet.com/api/v1/projects/{projectId}/prospects/{id}/contacts/{contactId}?keep_room_access=false' \
--request DELETE \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'