Редактирование списка
Выполняет редактирование выбранного списка контактов.
Чтобы отредактировать список, сделайте запрос по этому URL:
PUT http://one-api.notificore.ru/api/groups/{id}
Request parameters
Parameter | Required | Type | Description |
---|---|---|---|
id | Yes | integer | The unique identifier of the contact list automatically generated by the system when creating the contact list |
name | No | string | Contact list name |
description | No | string | Contact list description |
default | No | boolean | Whether the contact list is a default one: true or false value |
Request sample:
{ "name": "This is my group", "description": "This is my group", "default": false }
Response parameters:
Parameter | Type | Description |
---|---|---|
id | integer | The identifier of the contact list automatically generated by the system when creating the contact list |
name | string | Contact list name |
description | string | Contact list description |
default | boolean | Indicates whether the contact list is a default one |
created_at | datetime | Date and time when the contact list was created. Display format Y-m-d H:i:s |
item | string | The number of numbers in the contact list |
stop_list_count | string | The number of numbers from the contact list that are in the stop list of SMS and Viber |
Если запрос успешен, вы получите ответ:
{ "data": { "id": 1, "name": "string", "description": "string", "default": 0, "created_at": "2022-04-28 14:21:16", "items": 12, "stop_list_count": 0 } }