Subjects
Upsert subject
Upserts a subject. Creates or updates subject.
If the subject doesn't exist, it will be created. If the subject exists, it will be partially updated with the provided fields.
⚠️ Deprecated: Subjects as managable entities are being depracated, use customers with subject key usage attribution instead.
post/api/v1/subjects
Request body
Example request
[
{
"key": "customer-id",
"displayName": "Customer Name",
"metadata": {
"hubspotId": "123456"
},
"stripeCustomerId": "cus_JMOlctsKV8"
}
]Response
The request has succeeded.
Example response
[
{
"createdAt": "2025-01-01T01:01:01.001Z",
"updatedAt": "2025-02-01T01:01:01.001Z",
"deletedAt": "2025-03-01T01:01:01.001Z",
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"key": "customer-id",
"displayName": "Customer Name",
"metadata": {
"hubspotId": "123456"
},
"stripeCustomerId": "cus_JMOlctsKV8"
}
]