removeContact
Requires a customer (portal or buyer app) session.
Remove a person from the buyer's account.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation RemoveContact($id: ID!) {
removeContact(id: $id)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation RemoveContact($id: ID!) {\n removeContact(id: $id)\n}",
"variables": {
"id": "id"
}
}
EOF
Variables:
{
"id": "id"
}
Response:
{
"data": {
"removeContact": true
}
}
removeContact(
id: ID!
): Boolean!
Arguments
removeContact.id ● ID! non-null scalar
The ID of the contact.
Type
Boolean scalar
The Boolean scalar type represents true or false.