v1
latestOpenAPI 3.0.02026-07-2664192238.8 KBContacts
Update contact by ID
Updates the contact with the specified ID.
Scopes: contacts.write
patch/contacts/{id}
Path parameters
idstring required
Contact ID
Headers
Omnisend-Versionstring required
API version that specifies the response format and behaviour
Request body
Example request
{
"address": "1234 Main St",
"birthdate": "1990-01-01",
"city": "Los Angeles",
"country": "United States",
"countryCode": "US",
"createdAt": "2024-01-01T00:00:00Z",
"firstName": "John",
"gender": "m",
"identifiers": [
{
"consent": {
"createdAt": "2026-01-01T00:00:00Z",
"ip": "192.168.1.1",
"source": "omnisend-form",
"userAgent": "Mozilla/5.0"
},
"id": "example@example.com",
"sendWelcomeMessage": true,
"source": "api",
"type": "email"
}
],
"lastName": "Doe",
"postalCode": "90001",
"state": "New York",
"tags": [
"tag1",
"tag2"
]
}Response
OK
Example response
{
"address": "1234 Main St",
"birthdate": "1990-01-01",
"city": "Los Angeles",
"consents": [
{
"channel": "email",
"createdAt": "2021-05-20T12:00:00Z",
"ip": "161.1.1.1",
"source": "api",
"userAgent": "Mozilla/5.0"
}
],
"country": "United States",
"countryCode": "US",
"createdAt": "2021-05-20T12:00:00Z",
"email": "example@example.com",
"firstName": "John",
"gender": "m",
"id": "60a6170920d91c215e949b5c",
"identifiers": [
{
"id": "example@example.com",
"type": "email"
}
],
"lastName": "Doe",
"optIns": [
{
"channel": "email",
"optInAt": "2021-05-20T12:00:00Z"
}
],
"phone": [
"+1234567890"
],
"postalCode": "90001",
"state": "New York",
"status": "subscribed",
"statuses": [
{
"channel": "email",
"status": "subscribed",
"statusChangedAt": "2021-05-20T12:00:00Z"
}
],
"tags": [
"tag1",
"tag2",
"tag3"
],
"updatedAt": "2021-05-20T12:30:00Z"
}