Edit contact
Edit data of exisiting contact.
PUT/enterprise/edit
Parameters
identifier - integer or string required
The attribute for finding the contact that will be edited. This can be the original contact cif
, email
or id
data - object required
The contact's object with the new data.
More parameters
Same strucutre as creating contact.
You only need to pass the parameters that want to edit, not all of them.
Example using original enterprise cif for identifier
{
"identifier": "contact@salesly.app",
"data" : {
"name": "New name",
"email": "new@salesly.app",
"cif": "BBBBBB",
"phone": "8888888",
}
}
Response
status 200
The edited contact object.
Response
{
"id": 23438,
"name": "New name",
"email": "new@salesly.app",
"comments": "Example comment",
"cif": "G1234D789",
"phone": "8888888",
"iban": null,
"web": null,
"type": 1,
"created_at": "2025-03-11 17:47:35",
"updated_at": "2025-03-11 17:48:58",
"deleted_at": null,
"extra_fields": "{\"newsletter\":[\"&_No_&\"]}",
"fiscal_equal_commercial": true,
"fiscal_name": null,
"fiscal_address": null,
"is_person": true,
"location": {
"id": 17686,
"enterprise_id": 23438,
"primary": 1,
"direction": "Carrer Gavarresa",
"city": "Cabrianes",
"postal": "08620",
"country": "Spain",
"latitude": "41.7984089",
"longitude": "1.9100628999999572",
"created_at": "2025-03-11 17:47:35",
"updated_at": "2025-03-11 17:47:35",
"deleted_at": null,
"extra_info": null
},
"users_basic": [
{
"id": 30,
"name": "IT",
"surname": "SLY",
"role_id": 1,
"role_name": "Administrador",
"complete_name": "IT SLY",
"pivot": {
"enterprise_id": 23438,
"user_id": 30,
"created_at": "2025-03-11 17:47:35",
"updated_at": "2025-03-11 17:47:35",
"deleted_at": null
}
}
]
}