POST /source/group/update
Description
The method updates the parameters of an existing data source group. A token is required, see Authorization.
Request format
- HTTP method:
POST - URL:
/source/group/update - Content Type:
application/json
Authorization
Pass the token in one of two ways:
- the
token: <jwt-token>header — a temporary JWT token obtained withuser/login; - the
tokenfield in the request body — a permanent API token (UUID) from your account.
Without a token the request returns 401 access denied.
Request Body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
| token | string | — | Permanent API token (UUID), if the token header is not sent |
| group_id | string | ✅ | Group identifier |
| name | string | ❌ | New group name |
| person_list_search | object[] | ❌ | List of search settings for people in the group |
Example Request (cURL)
curl -X POST "https://api.neuro-vision.ru/v1/source/group/update" -H "Content-Type: application/json" -H "token: <jwt-token>" -d '{"group_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "name": "Updated Group Name", "person_list_search": [{"id": "d995ca10-8292-11ea-ae65-3048e12b1113", "on_failed": "", "on_found": ""}]}' Example Answers
Success (200 OK)
{
"message": "source group updated",
"status": "ok"
} Error (400 Bad Request)
{
"message": "invalid schema",
"status": "error"
}