Closing the Session

Authorization: administration token or client token

Endpoint information: Close a session 

Upon closing the PhotoPrint and CADPrint applications, issue a DELETE call to the /api/v1.0/sessions/{sessionId} endpoint to close the session.

Closing a session ensures that token consumption is calculated for the precise time the items have been in use.

Note:After a session has been deleted, it cannot be used again. Subsequent activity requires the creation of a new session, resulting in a new session ID.

The request must include the {sessionId} as a path parameter to identify the session to be closed.

Closing a Session

Item

Description

URI

/api/v1.0/sessions/{sessionID} 

Method

DELETE 

Path parameters

sessionId: Use the ID returned by the /api/v1.0/sessions API in the previous step, Initiating a Session.

Request body

N/A 

Sample Response

If the request was successful, the response returns code 200, indicating that the session was successfully closed.

See also