v1

latestOpenAPI 3.0.22026-08-045831103.6 KB
Deals

Update deal

Update a single deal

post/v1/deals/{id}

Path parameters

idstring uuid required
Example:8feade82-d77b-4e8b-9d35-fd43e972b5c8

UUID

Headers

api-tokenstring required

API Token

Request body

namestring
phonestring
emailstring
valuenumber
stage_idstring uuid
status'OPEN' | 'WON' | 'LOST'
user_idstring uuid
origin_idstring uuid

Example request

{
  "name": "Contact name",
  "phone": "48999999999",
  "email": "contact@email.com",
  "stage_id": "8feade82-d77b-4e8b-9d35-fd43e972b5c8",
  "user_id": "8feade82-d77b-4e8b-9d35-fd43e972b5c8",
  "origin_id": "8feade82-d77b-4e8b-9d35-fd43e972b5c8"
}

Response

Deal updated

idstring uuid

Example response

{
  "id": "8feade82-d77b-4e8b-9d35-fd43e972b5c8"
}