Adding and removing people from organizations
Adding people to an organization
Here is a cURL example of adding people to an organization in Ortto:
curl --location\
--request PUT 'https://api.ap3api.com/v1/organizations/contacts/add'\
--header 'X-Api-Key: YOUR-API-KEY-HERE'\
--header 'Content-Type: application/json'\
--data-raw '{
"inclusion_ids": ["006046bbb37f2e24cc56f200", "006046baa37f2e24cc56f122"],
"organization_id": "106051701f79e14b592cee00"
}'
The following fields are required:
Field | Description |
---|---|
inclusion_ids |
A list of person_ids to be added to the organization. |
organization_id |
The organization to add the people to. |
Limited people per organization You can add up to 50 people per organization. |
Removing people from an organization
Here is a cURL example of adding people to an organization in Ortto:
curl --location\
--request PUT 'https://api.ap3api.com/v1/organizations/contacts/remove'\
--header 'X-Api-Key: YOUR-API-KEY-HERE'\
--header 'Content-Type: application/json'\
--data-raw '{
"inclusion_ids": ["006046bbb37f2e24cc56f200"],
"organization_id": "106051701f79e14b592cee00"
}'
The following fields are required:
Field | Description |
---|---|
inclusion_ids |
A list of person_ids to be removed from the organization. |
organization_id |
The organization to remove people from. |