Extend a Session
PATCH/admin/sessions/:id/extend
Calling this endpoint extends the given session ID. If session.earliest_possible_extend is set it will only extend the session
after the specified time has passed.
This endpoint returns per default a 204 No Content response on success. Older Ory Network projects may return a 200 OK response with the session in the body. Returning the session as part of the response will be deprecated in the future and should not be relied upon.
This endpoint ignores consecutive requests to extend the same session and returns a 404 error in those scenarios. This endpoint also returns 404 errors if the session does not exist.
Retrieve the session ID from the /sessions/whoami endpoint / toSession SDK method.
Request
Responses
- 200
- 204
- 400
- 404
- default
session
Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201.
errorGeneric
errorGeneric
errorGeneric