Set the transaction state of a CAS session

post/servers/{serverName}/sessions/{sessionId}

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

1Not Available

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
200OK

The requested session's transaction state was returned. Valid values include started or none.

400Bad Request

The request was invalid.

Schema
404Not Found

The requested CAS server does not exist.

409Conflict

The 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 Error

The request could not be fulfilled because of an unexpected server error.