POST /source/group/delete
Description
The method removes one or more data source groups by their identifiers. A JWT token is required in the header for access.
Request format
- HTTP method:
POST - URL:
/source/group/delete - Content type:
application/json - Authorization: required
Query Parameters
| Parameter | Type | Where passed | Required | Description |
|---|---|---|---|---|
| token | string | Header | ✅ | User’s JWT token |
Request Body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
| token | string | ✅ | User’s JWT token |
| group_id | string[] | ✅ | List of group identifiers |
Example Request (cURL)
curl -X POST "https://api.neuro-vision.ru/v1/source/group/delete"
-H "Content-Type: application/json"
-H "Authorization: Bearer jwt.temporary.token"
-d '{
"token": "jwt.temporary.token",
"group_id": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"a63d1a62-abc1-4234-88a3-1ef4e4f9d111"
]
}' Example Answers
Success (200 OK)
{
"code": 0,
"message": "source group deleted",
"status": "ok"
} Error (400 Bad Request)
{
"message": "invalid schema",
"status": "error"
}