POST /source/group/create
Description
The method creates a new data source group. A token is required, see Authorization.
Request Format
- HTTP method:
POST - URL:
/source/group/create - 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 |
| name | string | ✅ | Group name |
Example Request (cURL)
curl -X POST "https://api.neuro-vision.ru/v1/source/group/create" -H "Content-Type: application/json" -H "token: <jwt-token>" -d '{"name": "My New Source Group"}' Example Answers
Success (200 OK)
{
"group_id": "c2a61a30-8986-11ea-98f0-de0b10ae4112",
"message": "source group created",
"status": "ok"
} Error (400 Bad Request)
{
"message": "invalid schema",
"status": "error"
} Error (401 Unauthorized)
{
"message": "access denied",
"status": "error"
}