Set the transaction state of a CAS session

post/servers/{serverName}/sessions/{sessionId}
Internal-Use Only

Sets the state of the session's transaction (valid values are start, commit, or cancel). Typical workflow would be to use this endpoint to start a transaction on the session. Next, use casAccessManagement lock transactions to lock the necessary objects. Then, modify permissions on those objects. Finally, commit or cancel the changes using this endpoint again.

Request Samples

1

Response Samples

1No example avaliable

Path Parameters

NameTypeRequiredDescription
serverName
string
true

The ID of the CAS server the user wishes to check the session state on.

sessionId
string
true

The session ID of the CAS session that is being checked.

Query Parameters

NameTypeRequiredDescription
action
string
true

Action to take regarding transaction. Valid values are start, commit, and cancel.

Responses

StatusMeaningDescription
200OKThe requested session's transaction state was returned. Valid values include started or none.
400Bad RequestThe request was invalid.Schema
404Not FoundThe requested CAS server does not exist.
409ConflictThe request could not be completed due to a conflict with the current state of the resource. Details are included in the response body.
500Internal Server ErrorThe request could not be fulfilled because of an unexpected server error.