Description
This method deletes one or more data sources from the specified group. A JWT token in the header is required for access.
- HTTP Method:
POST - URL:
/source/delete - Content-Type:
application/json - Authorization: required
Request Parameters
| Parameter | Type | Location | Required | Description |
|---|
| token | string | Header | ✅ | User JWT token |
Request Body (JSON)
| Field | Type | Required | Description |
|---|
| token | string | ✅ | User JWT token |
| group_id | string | ✅ | Group identifier |
| source_id | string[] | ✅ | List of data source identifiers |
Example Request (cURL)
curl -X POST "https://api.enface.ai/source/delete"
-H "Content-Type: application/json"
-H "Authorization: Bearer jwt.temporary.token"
-d '{
"token": "jwt.temporary.token",
"group_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"source_id": [
"c2a61a30-8986-11ea-98f0-de0b10ae4112",
"a6cf892e-88e7-49be-9811-2ceab7b77cda"
]
}'
Response Examples
Success (200 OK)
{
"code": 0,
"message": "source deleted",
"status": "ok"
}
Error (400 Bad Request)
{
"message": "invalid schema",
"status": "error"
}