Delete a session
Delete a session permanently. It cannot be undone. Also removes any emotional data associated to the session.
Sessions in the state active cannot be deleted. For deleting an active session you have to stop it first.
URL
DELETE /v1/sessions/:sessionId
Request URL Parameters
| Parameter | Description |
|---|---|
| :sessionId | ID of the session to remove. |
Response codes
| Code | Meaning | Description |
|---|---|---|
| 204 | No content | The request has succeeded and there is no content to send for this request. |
| 400 | Bad Request | The session is active or processing. |
| 404 | Not Found | The requested resource does not exist or you do not have permissions to perform this action on it. |
Request example
curl -X DELETE 'https://api.emogg.com/v1/sessions/:sessionId' \
-H 'Authorization: Bearer YOUR_API_TOKEN'Example response
None