Person Name | Baack docs
Person Name
Endpoints
CreatePOST/n/v1/personname/
Endpoint handling names (alias) for people. This endpoint allows association of multiple names with a person as part of their identity.
Baack allocates the URN and returns it in the response.
Request body: Person Name
Responses
- 201 Created
- returns Person Name
CREATE_SUCCESS - 400 Bad request
- returns Error
INVALID_REPRESENTATION
ReadGET/n/v1/personname/{urn}
Endpoint handling names (alias) for people. This endpoint allows association of multiple names with a person as part of their identity.
Notes
- As with other identity concepts creation will deduplicate existing representations and will return an existing object if the exact value match exists.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Person Name
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/personname/{urn}UpdatePUT/n/v1/personname/{urn}
Endpoint handling names (alias) for people. This endpoint allows association of multiple names with a person as part of their identity.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Person Name
Responses
- 202
- returns Person Name
UPDATE_SUCCESS - 400 Bad request
- returns Error
INVALID_REPRESENTATION
DeleteDELETE/n/v1/personname/{urn}
Endpoint handling names (alias) for people. This endpoint allows association of multiple names with a person as part of their 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_NAME
Webhook for events related to associating a person name with an identity.
Listen to person name events for changes like additions of a new alias or creation of an identity with a name in order to trigger custom experiences like welcoming a person as a customer.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| person | Person | Required on create. . |
| givenName | string | Required on create. . |
| familyName | string | |
| honorificPrefix | string | Optional. |
| url | string (uri) |
Used by: Person