Create a record
POST/customers/:customer_id/objects/:object_id/records
Create a record under a customer.
Field values go in data, keyed by the fields[].key values from
GET /v1/objects/{object_id}. They are validated against the object's schema:
a missing required field, or a select value outside the list, is a 400 naming
the field — with the per-field detail under error.details.errors — rather than
a record with bad data in it.
Creating a record writes a journey event on the customer and fires the Studio customer record changed trigger.
Request
Responses
- 201
- 400
- 401
- 403
- 404
Record created.
Response Headers
Correlation id for this request. Quote it when reporting a problem.
The request was malformed, or a parameter was rejected.
Response Headers
Correlation id for this request. Quote it when reporting a problem.
No token, an expired token, or a credential that has been revoked.
Response Headers
Correlation id for this request. Quote it when reporting a problem.
Refused. Either the credential does not hold the scope this endpoint needs (code: insufficient_scope), or the account's IP allow-list does not include the calling address (code: ip_not_allowed).
Response Headers
Correlation id for this request. Quote it when reporting a problem.
No such resource in this account.
Response Headers
Correlation id for this request. Quote it when reporting a problem.