Delete one or more data sources

POST /source/delete


Description

The method removes one or more data sources from the specified group. A token is required, see Authorization.


Request format

  • HTTP method: POST
  • URL: /source/delete
  • Content type: application/json

Authorization

Pass the token in one of two ways:

  • the token: <jwt-token> header — a temporary JWT token obtained with user/login;
  • the token field in the request body — a permanent API token (UUID) from your account.

Without a token the request returns 401 access denied.


Request Body (JSON)

FieldTypeRequiredDescription
tokenstring—Permanent API token (UUID), if the token header is not sent
group_idstring✅Group identifier
source_idstring[]✅List of source identifiers

Example Request (cURL)

curl -X POST "https://api.neuro-vision.ru/v1/source/delete" -H "Content-Type: application/json" -H "token: <jwt-token>" -d '{"group_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "source_id": ["c2a61a30-8986-11ea-98f0-de0b10ae4112", "a6cf892e-88e7-49be-9811-2ceab7b77cda"]}'

Example Answers

Success (200 OK)

{
  "message": "source deleted",
  "status": "ok"
}

Error (400 Bad Request)

{
  "message": "invalid schema",
  "status": "error"
}