curl --request PUT \
--url https://app.nex.ai/api/developers/v1/objects/{slug} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"matching_attribute": "email_addresses",
"attributes": {
"name": {
"first_name": "Jane",
"last_name": "Smith"
},
"email_addresses": [
"jane@example.com"
],
"job_title": "CTO",
"phone_number": {
"country_code": 1,
"number": "5559876543"
}
}
}
'{
"id": "32414268188027657",
"object_id": "32414268188027650",
"type": "person",
"workspace_id": "32414268188027645",
"created_at": "2024-01-21T12:00:00Z",
"updated_at": "2024-01-21T12:00:00Z",
"attributes": {
"name": {
"first_name": "Jane",
"last_name": "Smith"
},
"email_addresses": [
"jane@example.com"
],
"job_title": "CTO",
"phone_number": {
"country_code": 1,
"number": "5559876543"
},
"location": {
"city": "San Francisco",
"region": "CA",
"country": "US"
}
}
}Creates a new record or updates an existing one based on a matching attribute
curl --request PUT \
--url https://app.nex.ai/api/developers/v1/objects/{slug} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"matching_attribute": "email_addresses",
"attributes": {
"name": {
"first_name": "Jane",
"last_name": "Smith"
},
"email_addresses": [
"jane@example.com"
],
"job_title": "CTO",
"phone_number": {
"country_code": 1,
"number": "5559876543"
}
}
}
'{
"id": "32414268188027657",
"object_id": "32414268188027650",
"type": "person",
"workspace_id": "32414268188027645",
"created_at": "2024-01-21T12:00:00Z",
"updated_at": "2024-01-21T12:00:00Z",
"attributes": {
"name": {
"first_name": "Jane",
"last_name": "Smith"
},
"email_addresses": [
"jane@example.com"
],
"job_title": "CTO",
"phone_number": {
"country_code": 1,
"number": "5559876543"
},
"location": {
"city": "San Francisco",
"region": "CA",
"country": "US"
}
}
}API key for authentication (format: "Bearer YOUR_API_KEY")
Object slug (e.g., 'person', 'company')
Upsert record request with matching attribute and data
Hide child attributes
ID or slug of the attribute to match on