cURL
curl --request DELETE \ --url https://app.apigene.ai/api/context/{context_id} \ --header 'Authorization: Bearer <token>'
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Endpoint to delete a context by its ID.
Args: context_id (str): The unique identifier of the context to delete.
Returns: dict: A confirmation message indicating the context was deleted.
Raises: HTTPException 404:
JWT Authorization header using the Bearer scheme. Example: 'Authorization: Bearer {token}'
Successful Response