Skip to main content

People

Base: https://crm-service.<domain>/api/v2/entity/person.

Create​

POST/api/v2/entity/personcrm-service
curl -s https://crm-service.scenid.cloud/api/v2/entity/person \
-H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d '{
"data": { "title": "Dr.", "firstName": "Anja", "lastName": "Lindholm" },
"employments": [{ "humanId": "SC-COMPANY", "roles": [{ "role": "ceo", "status": "active" }] }],
"groups": [{ "humanId": "SC-GROUP1" }],
"return": true
}'

data is validated against the full Person schema by default (the same fields in Data fields below) — firstName and lastName are the only required ones. Pass "schema": "minimal" to validate against just those two plus title instead, matching the old create-only behavior. Pass "strict": true to reject any field not in the schema being validated against. employments[].humanId is the company. Response 201: { "result": "OK", "humanId": "..." } or the entity.

Update​

PUT/api/v2/entity/person/{humanId}crm-service
curl -s -X PUT https://crm-service.scenid.cloud/api/v2/entity/person/SC-PERSON \
-H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d '{
"data": {
"salutation": "formal-female",
"birthDate": "1979-03-14",
"hasAddress": true, "street": "Ottenser Hauptstraße", "houseNo": "9",
"zipCode": "22765", "city": "Hamburg", "countryCode": "DE",
"contacts": [
{ "contactType": "mobile", "value": { "phone": { "countryCode": "DE", "dialingCode": "+49", "number": "1715550001" } }, "isFavorite": false }
]
}
}'

data is merged into the existing data by default — pass "overwrite": true to replace it entirely instead (fields present on the entity but absent from data are then deleted). Pass "strict": true to reject any field in data not in the Person schema. employments and groups, when present, replace the entity's lists. Response 200 { "result": "OK", "humanId": "..." }.

Delete​

DELETE/api/v2/entity/person/{humanId}crm-service

200 { "result": "deleted", "humanId": "..." }.

Add or change an employment​

POST/api/v2/entity/person/{humanId}/employments/{ouHumanId}crm-service

Body { "data": { "roles": [{ "role": "employee", "status": "active" }] } }.

Remove an employment​

DELETE/api/v2/entity/person/{humanId}/employments/{ouHumanId}crm-service

Set employments in bulk​

POST/api/v2/entity/person/{humanId}/employmentscrm-service

Body: array [{ "humanId": "<company>", "roles": [...] }]. Not wrapped by the SDK.

Merge two people​

POST/api/v2/entity/person/{humanId}/mergecrm-service

Merges the partnerHumanId into the person in the path (the target). Not wrapped by the SDK.

{
"partnerHumanId": "SC-DUPLICATE",
"data": { "firstName": "Anja", "lastName": "Lindholm" },
"employments": [{ "humanId": "SC-COMPANY", "roles": [{ "role": "ceo", "status": "active" }] }],
"groups": []
}

data is the resulting merged data (validated like an update). Response { "result": "OK", "humanId": "…" }. Errors: person/merge-partner-missing, person/merge-target-equals-partner, entity/data-invalid, entity/wrong-entity-type.

Data fields​

FieldValues
salutationformal-neutral, personal-neutral, formal-female, formal-male
birthDateYYYY-MM-DD
contacts[]{ contactType: email|phone|mobile|fax, value, isFavorite }
hasAddressboolean
countryCodeISO code. Required when hasAddress
hasBank, bankHistory[]Bank data with validated IBAN