Create a new contact
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
See Contact for a list of attributes which are supported for contacts. Only attributes marked as Read-Write can be set using this endpoint.
Ownership
The creator of the contact will automatically be set to the user performing the request. However, a contact also has an owner, which is the user responsible for the contact. It defaults to the user making the request. See the ownership page for more details.
Categories and KeywordsCategories and keywords are serialized using the category/keyword name instead of URL references. If you name a category or keyword that does not already exist, it will be created automatically.
Response
A successful request returns 201 Created with the new contact's reference:
{ "location": "/v1/contacts/1000" }Validation
Various validations are run on the supplied contact object. If any validations fail, then an HTTP 400 Bad Request response will be returned. The body lists the failed validations for each attribute:
{ "first_name": [{ "error": "too_long", "count": 256 }] }