End an activity session
DELETE/api/v1/ActivitySession/:sessionId
Ends an activity session as soon as possible. A session that is still waiting for approval is cancelled through the approval process, and any other session is marked for cancellation and ended in the background. The call returns once the end is queued, so poll the session to see it finish.
Permission required: Administrators and application accounts can end any session. Other users can end only their own sessions. An auditor needs the Terminate Session permission for the session.
Request
Responses
- 202
- 400
- 401
- 403
- 404
The end was accepted and queued. No body is returned.
The session could not be ended. The body is the error message.
The request is not signed in, or the sign-in has expired.
The caller does not own the session and is not an administrator, or the auditor does not hold the Terminate Session permission for it.
No activity session exists with this identifier.