Contacts
Update Contact
Update a contact belonging to the account using ID
PUT
/
api
/
v1
/
contacts
/
{id}
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "John Doe Updated",
"email": "[email protected]",
"phone_number": "+5574999999999",
"identifier": "john-doe-123",
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"custom_attributes": {},
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T11:00:00Z"
},
"meta": {
"timestamp": "2024-01-15T11:00:00Z"
},
"message": "Contact updated successfully"
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts/{id}",
"method": "PUT"
}
}{
"success": false,
"error": {
"code": "INVALID_TOKEN",
"message": "Invalid token"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts/{id}",
"method": "PUT"
}
}{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "You do not have permission to access this resource"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts/{id}",
"method": "PUT"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Contact not found"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts/{id}",
"method": "PUT"
}
}{
"success": false,
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts/{id}",
"method": "PUT"
}
}Autorizaciones
Parámetros de ruta
ID of the contact
Cuerpo
application/json
The body is of type any.
⌘I
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "John Doe Updated",
"email": "[email protected]",
"phone_number": "+5574999999999",
"identifier": "john-doe-123",
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"custom_attributes": {},
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T11:00:00Z"
},
"meta": {
"timestamp": "2024-01-15T11:00:00Z"
},
"message": "Contact updated successfully"
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts/{id}",
"method": "PUT"
}
}{
"success": false,
"error": {
"code": "INVALID_TOKEN",
"message": "Invalid token"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts/{id}",
"method": "PUT"
}
}{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "You do not have permission to access this resource"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts/{id}",
"method": "PUT"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Contact not found"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts/{id}",
"method": "PUT"
}
}{
"success": false,
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts/{id}",
"method": "PUT"
}
}