Person | Baack docs
Person
Endpoints
CreatePOST/n/v1/person/
Endpoint handling person details (an individual) associated with an identity. A person also has multiple associated representations like names, addresses, telephone numbers via the identity.
Baack allocates the URN and returns it in the response.
Request body: Person
Responses
ReadGET/n/v1/person/{urn}
Endpoint handling person details (an individual) associated with an identity. A person also has multiple associated representations like names, addresses, telephone numbers via the identity.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/person/{urn}UpdatePUT/n/v1/person/{urn}
Endpoint handling person details (an individual) associated with an identity. A person also has multiple associated representations like names, addresses, telephone numbers via the identity.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Person
Responses
DeleteDELETE/n/v1/person/{urn}
Endpoint handling person details (an individual) associated with an identity. A person also has multiple associated representations like names, addresses, telephone numbers via the identity.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 202
DELETE_SUCCESS
Webhook
POSTyour destination URL
Subject: PERSON
Webhook events for updates to a person associated with an identity.
Listen to person creation events to know when an individual person is created for an identity. The person also holds the gender and date of birth.
Note that a person can have multiple names using the person name representation and if listening to the person creation event the webhook may be triggered before the name is created.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| names | array of Person Name | Ignored on update. |
| identity | Identity | Required on create. . |
| birthDate | string (date-time) | |
| url | string (uri) |
Used by: Identity, Person Name