Logout

post

/rest/{versionId}/admin/logout

Use this (POST) method to logout and terminate a valid user session. This method allows the SDM server to reclaim resources, remove the session cookie and close the session. All established sessions must be closed when they are completed by using this method.

Request

Path Parameters
Back to Top

Response

204 Response

Successfully processed the request with no content.

401 Response

The request is not authorized.

404 Response

The REST API version of your input request cannot be found.
Back to Top

Examples

The following example shows how to logout from the server by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL

Example of cURL Data

The following shows an example of cURL data sent with the request.

curl -v -s -b sessionid.txt -X POST -H"Content-Type: application/xml" -H"Accept: application/xml" http://example.com:8080/rest/v1.1/admin/logout

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 204 No Content
Date: Fri, 24 Feb 2017 19:39:16 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Back to Top