Create a new data subject.

PUT /v1/subjects/{type}/{subjectId}
Content-Type: application/json

The request body is an open-ended valid JSON object containing data elements you want to store for your data subjects. If a subject with the given type and subjectId already exists, the call fails. type determines the subject type, usually user.

Example

PUT /v1/subjects/user/123e4567-e89b-12d3-a456-426655440000
Content-Type: application/json
  
{
  "id": "123e4567-e89b-12d3-a456-426655440000",
  "name": "John Doe",
  "birthDate": "1985-04-12"
}

Response

200 Ok

Subject successfully created.

400 Bad Request

Malformed request, invalid value, etc. The return value is a JSON error object containing diagnostic information.

403 Forbidden

The authenticated key does not have the privileges for this operation. The return value is a JSON error object containing diagnostic information.

409 Conflict

A subject with same identifier already exists.