latestOpenAPI 3.0.0Apache 2.02026-08-06199181.1 MB

e0d144609998

Partners

Update partner

Update a partner

put/partners/{id}

Path parameters

idinteger required

Request body

company_idinteger nullable

Set to change the partner to company-backed; sends contact_id to null if omitted

contact_idinteger nullable

Set to change the partner to contact-backed; sends company_id to null if omitted

isThirdParty'yes' | 'no' nullable

Example request

{
  "company_id": 45,
  "isThirdParty": "yes"
}

Response

Successful operation

messagestring

Example response

{
  "message": "partner has been updated.",
  "partner": {
    "id": 12,
    "company_id": 45,
    "isThirdParty": "yes",
    "type": "Company",
    "name": "Lexzur LLC",
    "label": "Lexzur LLC"
  }
}