Pular para o conteúdo

Editar um Grupo

PUT
/groups/{id}

Alterar a configuração de um grupo, como o nome do grupo ou descrição.

id
required

ID do grupo

integer
>= 1

ID do grupo

The updated groups resource

Media type application/json

Phone’s group

object
name
required

Nome do grupo

string
>= 1 characters <= 50 characters
description

Descrição do grupo

string | null
<= 255 characters
name_a

Nome da coluna

string | null
<= 50 characters
name_b

Nome da coluna

string | null
<= 50 characters
name_c

Nome da coluna

string | null
<= 50 characters
name_d

Nome da coluna

string | null
<= 50 characters
name_e

Nome da coluna

string | null
<= 50 characters
phones
Array<object>

Phones list by group

object
phone
required

Número de telefone

string
<= 30 characters
a

Dados da coluna do telefone

string | null
<= 1530 characters
b

Dados da coluna do telefone

string | null
<= 1530 characters
c

Dados da coluna do telefone

string | null
<= 1530 characters
d

Dados da coluna do telefone

string | null
<= 1530 characters
e

Dados da coluna do telefone

string | null
<= 1530 characters
callback_data

String which will be send back to your endpoint. E.g. it can be usable to pass your system message id.

string | null
<= 36 characters
Example generated
{
"name": "example",
"description": "example",
"name_a": "example",
"name_b": "example",
"name_c": "example",
"name_d": "example",
"name_e": "example",
"phones": [
{
"phone": "example",
"a": "example",
"b": "example",
"c": "example",
"d": "example",
"e": "example",
"callback_data": "example"
}
]
}

Groups resource updated

Phone’s group

object
@context
One of:
string
@id

JSON-LD ID

string
@type

JSON-LD type

string
id

ID do grupo

integer
>= 1
name
required

Nome do grupo

string
>= 1 characters <= 50 characters
description

Descrição do grupo

string | null
<= 255 characters
name_a

Nome da coluna

string | null
<= 50 characters
name_b

Nome da coluna

string | null
<= 50 characters
name_c

Nome da coluna

string | null
<= 50 characters
name_d

Nome da coluna

string | null
<= 50 characters
name_e

Nome da coluna

string | null
<= 50 characters
count_items

Contagem de itens no grupo

integer
deleted_at

Data e hora em que o grupo será excluído

string | null format: date-time
Example
{
"@context": {
"hydra": "http://www.w3.org/ns/hydra/core#"
}
}

Invalid input

Client ID or API key isn’t active or invalid!

Account isn’t activated. Please wait or contact to support!

Resource not found

The request was well-formed but was unable to be followed due to semantic errors

O endereço IP foi bloqueado temporariamente, pois durante um curto período de tempo foram enviadas várias solicitações com credenciais inválidas. Aguarde e tente mais tarde.

Code Samples

#!/usr/bin/env bash
curl -X PUT https://api.lox24.eu/groups/12344 \
-H 'Content-Type: application/json' \
-H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \
-d '{
"name": "My Clients",
"description": "Best clients",
"name_a": "prefix",
"name_b": "name",
"name_c": "datetime",
"name_d": "price",
"name_e": "something_else"
}'