Create and Update Entity APIs
Create entity
Something or someone who owns an account, or who interacts directly or indirectly with the system.
Describes the relationship the entity has with XYB.
Possibly a company number, a service identifier or an employee code
The type of the entity; determines how any entity reference is interpreted.
Response to /api/v1/{role}
The logical date-time at which the entity was created; this may significantly predate its initial persistence in the system in the case that the entity originates outside of the system.
A globally unique identifier for the managed entity, assigned by the software subsystem that manages it.
The date-time at which a change to the entity was last persisted. This is tracked for convenience only and should not generally form the basis for any system processing.
A reference supplied by the subsystem that requested its creation. The reference must at a minimum be unique over the declared role, but it is recommended that globally unique references are used where practical.
A strictly monotonically increasing number that is guaranteed to increase on any change to the entity.
The role of the entity in the system.
The state of the managed entity, see Managed Entity States
default response to /api/v1/{role}
POST /api/v1/{role} HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 161
{
"affiliation": "CUSTOMER",
"aspects": [
{
"aspect": {},
"identifier": "123e4567-e89b-12d3-a456-426614174000",
"relation": "text"
}
],
"reference": "text",
"type": "INDIVIDUAL"
}{
"created": "2026-01-01T00:00:00.000Z",
"entity": {
"affiliation": "CUSTOMER",
"aspects": [
{
"aspect": {},
"identifier": "123e4567-e89b-12d3-a456-426614174000",
"relation": "text"
}
],
"reference": "text",
"type": "INDIVIDUAL"
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"last_modified": "2026-01-01T00:00:00.000Z",
"reference": "text",
"revision": 1,
"role": "CUSTOMER",
"state": "VALID"
}Update entity
Something or someone who owns an account, or who interacts directly or indirectly with the system.
Describes the relationship the entity has with XYB.
Possibly a company number, a service identifier or an employee code
The type of the entity; determines how any entity reference is interpreted.
Response to /api/v1/{role}
The logical date-time at which the entity was created; this may significantly predate its initial persistence in the system in the case that the entity originates outside of the system.
A globally unique identifier for the managed entity, assigned by the software subsystem that manages it.
The date-time at which a change to the entity was last persisted. This is tracked for convenience only and should not generally form the basis for any system processing.
A reference supplied by the subsystem that requested its creation. The reference must at a minimum be unique over the declared role, but it is recommended that globally unique references are used where practical.
A strictly monotonically increasing number that is guaranteed to increase on any change to the entity.
The role of the entity in the system.
The state of the managed entity, see Managed Entity States
default response to /api/v1/{role}
PUT /api/v1/{role} HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 161
{
"affiliation": "CUSTOMER",
"aspects": [
{
"aspect": {},
"identifier": "123e4567-e89b-12d3-a456-426614174000",
"relation": "text"
}
],
"reference": "text",
"type": "INDIVIDUAL"
}{
"created": "2026-01-01T00:00:00.000Z",
"entity": {
"affiliation": "CUSTOMER",
"aspects": [
{
"aspect": {},
"identifier": "123e4567-e89b-12d3-a456-426614174000",
"relation": "text"
}
],
"reference": "text",
"type": "INDIVIDUAL"
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"last_modified": "2026-01-01T00:00:00.000Z",
"reference": "text",
"revision": 1,
"role": "CUSTOMER",
"state": "VALID"
}Patch entity
Something or someone who owns an account, or who interacts directly or indirectly with the system.
Describes the relationship the entity has with XYB.
Possibly a company number, a service identifier or an employee code
The type of the entity; determines how any entity reference is interpreted.
Response to /api/v1/{role}
The logical date-time at which the entity was created; this may significantly predate its initial persistence in the system in the case that the entity originates outside of the system.
A globally unique identifier for the managed entity, assigned by the software subsystem that manages it.
The date-time at which a change to the entity was last persisted. This is tracked for convenience only and should not generally form the basis for any system processing.
A reference supplied by the subsystem that requested its creation. The reference must at a minimum be unique over the declared role, but it is recommended that globally unique references are used where practical.
A strictly monotonically increasing number that is guaranteed to increase on any change to the entity.
The role of the entity in the system.
The state of the managed entity, see Managed Entity States
default response to /api/v1/{role}
PATCH /api/v1/{role} HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: */*
Content-Length: 161
{
"affiliation": "CUSTOMER",
"aspects": [
{
"aspect": {},
"identifier": "123e4567-e89b-12d3-a456-426614174000",
"relation": "text"
}
],
"reference": "text",
"type": "INDIVIDUAL"
}{
"created": "2026-01-01T00:00:00.000Z",
"entity": {
"affiliation": "CUSTOMER",
"aspects": [
{
"aspect": {},
"identifier": "123e4567-e89b-12d3-a456-426614174000",
"relation": "text"
}
],
"reference": "text",
"type": "INDIVIDUAL"
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"last_modified": "2026-01-01T00:00:00.000Z",
"reference": "text",
"revision": 1,
"role": "CUSTOMER",
"state": "VALID"
}Delete entity by reference
Response to /api/v1/{role}/{idRef}
No content
default response to /api/v1/{role}/{idRef}
DELETE /api/v1/{role}/{idRef} HTTP/1.1
Host: api.example.com
Accept: */*
No content
Last updated

