Enterprise
Edit Enterprise

Edit enterprise

Edit data of exisiting enterprise.

PUT/enterprise/edit

Parameters

identifier - integer or string required
The attribute for finding the enterprise that will be edited. This can be the original enterprise cif, email or id


data - object required
The enterprise’s object with the new data.


More parameters

Same strucutre as creating entreprise.

You only need to pass the parameters that want to edit, not all of them.

Example using original enterprise cif for identifier
{
    "identifier": "G1234dd6789",
    "data" : {
        "name": "New name",
        "email": "new@salesly.app",
        "cif": "BBBBBB",
        "phone": "8888888",
    }
}

Response

status 200

The edited enterpirse object.

Response
{
  "id": 1,
  "name": "New name",
  "email": "new@salesly.app",
  "comments": null,
  "cif": "BBBBBB",
  "phone": "8888888",
  "phone_2": null,
  "iban": null,
  "web": "https://www.salesly.app",
  "public": 0,
  "last_event": null,
  "next_event": null,
  "last_opportunity_sale_date": null,
  "state": 0,
  "type": 1,
  "no_user": 0,
  "extra_field": null,
  "contacted": null,
  "mailchimp_unsubscribed": null,
  "location": {
    "primary": 1,
    "direction": "Carrer Gavarresa",
    "city": "Cabrianes",
    "postal": "08620",
    "country": "Spain",
    "latitude": "41.7984089",
    "longitude": "1.9100628999999572"
  },
  "contacts": [],
  "users": []
}