Pular para o conteúdo principal
PATCH
Updates an existing client. Only supplied (non-null) fields are changed.

Autorizações

X-API-Key
string
header
obrigatório

Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.

Parâmetros de caminho

clientId
integer<int64>
obrigatório

Client to update.

Corpo

Client fields to update.

Request body for updating a client. Only the supplied (non-null) fields are changed; Id, bound from the route, identifies the client to update.

Name
string | null

New client display name. Leave null to keep the current value. Maximum 150 characters.

StatusId
integer<int32> | null

New status id: 1 Active, 3 Credit hold, 4 Archived. Leave null to keep the current value. Any other value is a 400; to delete a client use DELETE /v1/clients/{clientId}.

BillingName
string | null

New billing name. Leave null or empty to keep the current value. Maximum 150 characters.

AlternateName
string | null

New alternate / trading name. Leave null to keep the current value; send an empty string to clear it. Maximum 500 characters.

CustomProperties
object[] | null

Custom field values to upsert. Identified by Id (the custom field id) only - an entry present updates that field's value, one absent from the array is left untouched, and omitting CustomProperties entirely leaves all custom properties untouched. A null``Value clears the saved value so the field falls back to its default; an empty string saves an empty value. On a required field, either is rejected when it would leave the field with no value. Each custom field id may appear once; a repeated id is a 400.

GroupIds
integer<int64>[] | null

Group ids (from GET /v1/organization/groups) the client is subscribed to. Replaces the list; [] clears it; omit to leave unchanged. At most 100; every id must be an active group. Changing an existing client's groups changes which technicians can see it, so open Gorelo web sessions reload.

Resposta

OK

StatusCode
enum<integer>
Opções disponíveis:
100,
101,
102,
103,
200,
201,
202,
203,
204,
205,
206,
207,
208,
226,
300,
301,
302,
303,
304,
305,
306,
307,
308,
400,
401,
402,
403,
404,
405,
406,
407,
408,
409,
410,
411,
412,
413,
414,
415,
416,
417,
421,
422,
423,
424,
426,
428,
429,
431,
451,
500,
501,
502,
503,
504,
505,
506,
507,
508,
510,
511
IsSuccess
boolean
Data
object

A single client, as returned by GET /v1/clients/{clientId}, POST and PATCH: the list shape plus its custom properties, which the list deliberately leaves out. Timestamps are UTC.

DataContext
object | null
Exemplo:

null

Notifications
object[]