Get a list of all data sources in the group

POST /sources


Description

The method returns a list of all data sources belonging to the specified group. JWT token is required in the header for access.


Request format

  • HTTP method: POST
  • URL: /sources
  • Content type: application/json
  • Authorization: required

Query Parameters

ParameterTypeWhere passedRequiredDescription
tokenstringHeaderUser’s JWT token

Request Body (JSON)

FieldTypeRequiredDescription
tokenstringUser’s JWT token
group_idstringGroup identifier

Example Request (cURL)

curl -X POST "https://api.neuro-vision.ru/v1/sources" 
  -H "Content-Type: application/json" 
  -H "Authorization: Bearer jwt.temporary.token" 
  -d '{
    "token": "jwt.temporary.token",
    "group_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }'

Example Answers

Success (200 OK)
[
  {
    "auto_person_create": {
      "new_person_angle_max": 50,
      "new_person_square_min": 224,
      "new_person_threshold": "no_match",
      "person_list_add": [
        "b9ab5811-828d-11ea-96e9-dba8e17ed531"
      ]
    },
    "created": "1970-01-01T00:00:00.000Z",
    "feature_check": [
      "race",
      "gender",
      "age"
    ],
    "group_id": "c07b5811-828d-11ea-96e9-dba8e17ed50e",
    "name": "Default source",
    "source_id": "ef9b5611-8899-11ea-8a73-c13daa604682"
  }
]
Error (401 Unauthorized)
{
  "message": "access denied",
  "status": "error"
}