Sirportly

Toggle Menu

Edit an existing contact

This method allows you to adjust contact properties for contacts which already exist in your database.

URL

/api/v2/contacts/edit

Supported Parameters

  • contact - this is the name, ID or reference for a contact (required)
  • name - the contact's name
  • reference - the contact's reference (must be unique or blank)
  • company - the name for the contact (optional)
  • pin - the contact's support PIN
  • sla - the ID or name of an SLA to use for all tickets submitted by this contact (optional)
  • priority - the ID or name of a priority to use for all tickets submitted by this contact (optional)

Returned Data

If the record is saved successfully, you will receive a 200 OK status with details of the contact. If a validation error occurs you will receive a 422 Unprocessable Entity and data containing the errors.

Example JSON

{
  "id": 8,
  "reference": "SS2",
  "name": "Steve Jones",
  "abbreviated_name": "Steve J",
  "company": "Steve's Pies",
  "pin": "221520",
  "created_at": "2012-03-21T16:51:52Z"
}