Create an entity in a program
/api/v1/programs/{program_uuid}/entities
operationId: entity.create
Base: https://portal.watcheye.com.au/api/v1/programs/{program_uuid}/entities
Create a new entity in the specified program.
The supplied fields must be appropriate for the chosen entity_type:
individual- requires at least one offirst_name/last_name. May supplybirth_date. Business, vessel and property fields are ignored.business- requiresbusiness_name. Optionallybusiness_number+business_number_type. Individual, vessel and property fields are ignored.vessel- requiresvessel_name. Individual, business and property fields are ignored.property- requiresproperty_name. Address fields are optional. Individual, business and vessel fields are ignored. Phone and email fields do not apply to properties and are ignored.
The created entity record is returned in the response.
Idempotency
This endpoint accepts the Idempotency-Key header so that retries on network failure are safe. See the Idempotency section of the API guide for the full contract.
Path parameters
| Field | Description |
|---|---|
program_uuidrequired |
string (uuid) The program UUID |
Header parameters
| Field | Description |
|---|---|
Idempotency-Key |
string [max 255 characters] Optional client-generated key (typically a UUID) that lets you safely retry a write
request without risk of duplicate work or duplicate billing. A retry with the same key
and body returns the original response verbatim, with the Honoured on |
Request body
Content type application/json.
The entity details
| Field | Description |
|---|---|
reference_number |
string or null An optional customer-supplied reference number, must be unique within the program |
entity_typerequired |
string |
first_name |
string or null |
middle_name |
string or null |
last_name |
string or null |
birth_date |
string (date) or null Date of birth in |
business_name |
string or null |
business_number |
string or null |
business_number_type |
string or null |
vessel_name |
string or null |
property_name |
string or null |
address_line1 |
string or null |
address_line2 |
string or null |
address_suburb |
string or null |
address_state |
string or null |
address_postcode |
string or null |
address_country |
string or null |
phone1 |
string or null |
phone2 |
string or null |
phone3 |
string or null |
phone4 |
string or null |
email1 |
string (email) or null |
email2 |
string (email) or null |
email3 |
string (email) or null |
email4 |
string (email) or null |
flags |
array of strings or null |
risk_level |
string or null An explicit |
Responses
Entity created
application/json
| Field | Description |
|---|---|
data |
object |
data. |
string (uuid) The entity's UUID |
data. |
string A short obfuscated public identifier for the entity (e.g. "E-A1-B2C-3D4") |
data. |
string or null An optional customer-supplied reference number, unique within the program |
data. |
string The type of entity:
|
data. |
string or null The display name of the entity, computed from the relevant type-specific fields |
data. |
string or null First name (individuals only) |
data. |
string or null Middle name (individuals only) |
data. |
string or null Last name (individuals only) |
data. |
string (date) or null Date of birth in |
data. |
string or null Business name (businesses only) |
data. |
string or null Business identifier (businesses only); format depends on |
data. |
string or null The type of
|
data. |
string or null Vessel name (vessels only) |
data. |
string or null Property name (properties only) |
data. |
string or null First line of address |
data. |
string or null Second line of address |
data. |
string or null Suburb / locality |
data. |
string or null State / region (Australian state code if |
data. |
string or null Postal / zip code |
data. |
string or null Two-letter ISO 3166-1 alpha-2 country code (e.g. |
data. |
string or null Primary phone number |
data. |
string or null Secondary phone number |
data. |
string or null Additional phone number |
data. |
string or null Additional phone number |
data. |
string (email) or null Primary email address |
data. |
string (email) or null Secondary email address |
data. |
string (email) or null Additional email address |
data. |
string (email) or null Additional email address |
data. |
array of strings Manual flags applied to the entity. Permitted values:
|
data. |
string or null Risk level assigned to the entity:
|
data. |
string (date-time) or null ISO 8601 timestamp at which the entity was archived (null if not archived) |
data. |
string (date-time) or null ISO 8601 timestamp at which the entity was soft-deleted (null if not deleted). Only populated on the response from a DELETE call. |
data. |
string (uuid) UUID of the program this entity belongs to |
data. |
string (date-time) ISO 8601 timestamp at which the entity was created |
data. |
string (date-time) ISO 8601 timestamp at which the entity was last updated |
api_reference |
string (uuid) |
Conflict - a request with this Idempotency-Key is currently being processed
application/json
| Field | Description |
|---|---|
message |
string |
Idempotency-Key was reused with a different request body
application/json
| Field | Description |
|---|---|
message |
string |