Logout User

Last edit: 

Contributors: 

To logout user, send a DELETE request to /api/sessions

HTTP request

DELETE /api/sessions

Parameters

Parameter Type Description Required Notes
form_configuration_name String Name of the form configuration Required

Example request

"authorization: Token token=[YOUR API TOKEN]"
"accept: application/json"
"content-type: application/json"

{
  "form_configuration_name": "reference_rest_api_delete_sessions"
}
Element Type Description Required?
form_configuration_name String Name of the defined FormConfiguration Required

Example response

HTTP/1.1 201 Created
Content-Type: application/vnd.api+json

Element Type Description
[…] […] […]

Error and Status Codes

| Code | Message | Meaning |
|------+----------------+--------------------------------|
| 204 | No Content | Successfully fulfilled request |
| 401 | Unathorized | Invalid Authentication |
| 406 | Not Acceptable | Wrong parameters passed |