Skip to main content
Change who a contact is shared with

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
ids
string[]
required

Identifiers of the contacts whose sharing is being changed.

Required array length: 1 - 10000 elements
Minimum string length: 1
Example:
allowEdit
boolean

Whether the recipients may change the contacts rather than only read them. It applies to every recipient of a contact at once, and only the caller's own editing rights let it be changed at all. Leave it out to keep each contact's current setting.

Example:

true

groupsToAdd
string[]

Groups to add to the recipients, sharing the contacts with everyone in them. Every group has to exist, otherwise nothing is shared.

Minimum string length: 1
groupsToRemove
string[]

Groups to take off the recipients. Their members lose access unless they hold it some other way.

Minimum string length: 1
removeAll
boolean
default:false

Clears the recipients of the listed contacts completely, which takes precedence over the add and remove lists in the same request.

Example:

false

usersToAdd
string[]

Users to add to the recipients. Every one of them has to exist, otherwise nothing is shared.

Minimum string length: 1
Pattern: ^[A-Za-z0-9.@_+-]+$
usersToRemove
string[]

Users to take off the recipients, losing their access to the listed contacts.

Minimum string length: 1
Pattern: ^[A-Za-z0-9.@_+-]+$

Response

Reports the outcome for each contact; individual contacts may still have failed, so read the per-item results.

count
integer
required

Number of items the request processed, successful and failed alike.

Example:

22

errors
boolean
required

Whether any item failed. Check it before treating the call as a clean success - the request itself answers 200 even when individual items did not go through.

Example:

false

items
object[]

Per-item outcomes. Endpoints report the failed items here; some also list the successful ones, so read each item's own status rather than inferring it from being listed.