Update Client Profile by External ID

  ----
  Permissions:INTEGRATOR,OPERATOR,BOT
  ----
PathDescription
clientAgreementClient agreements for additional actions with information from the thread.

Possible values: agreementForSendEmail (true/false) – client agreement for sending an email with the thread history

HTTP Request

PUT /api/v1/clients/1/profile HTTP/1.1
Content-Type: application/json
Authorization: Bearer <integrator_token>
Content-Length: 374
Host: localhost: 8080
{
    "clientId": null,
    "name": "Oleg",
    "surname": null,
    "middleName": null,
    "email": "email@mail.ru",
    "phone": "79000000000",
    "segment": "VIP",
    "clientAgreement": {
        "agreementForSendEmail": true
    },
    "additional": [
        {
            "key": "balance",
            "value": "1000.0"
        },
        {
            "key": "packetLeft",
            "value": "10 min"
        }
    ]
}

Example of a Successful HTTP Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers