Delete a UI protocol session record¶
Maintain the current user’s session records.
DELETE https://api.moi.matrixorigin.cn/v5/sessions/{session_id}
Before you call this API¶
Set BASE_URL to the product API prefix https://api.moi.matrixorigin.cn/v5. For private deployments, use the corresponding product API URL.
Configure identity, Workspace, and numeric record IDs in the same environment. This entry point uses ordinary product authentication and rejects additional task runtime authorization headers.
Request¶
curl --request DELETE \
"$BASE_URL/sessions/$SESSION_ID" \
--header "X-API-Key: $MOI_KEY" \
--header "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Location |
Type |
Required |
Description |
|---|---|---|---|---|
|
Headers |
string |
Yes |
Target Workspace ID. |
|
Path |
integer |
Yes |
Positive integer ID of the current user’s record. |
Returns HTTP 200 and an operation-result object, not 204. After deleting a session record, verify message, tag, and file cleanup separately; success does not establish complete cascading cleanup.
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"message": "deleted"
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
OK on success; HTTP status is 200. |
|
string |
OK on success. |
|
string |
Operation result: pinned, unpinned, or deleted. |
Error responses¶
Error formats and result confirmation distinguishes session-detail not-found from generic service errors at other entry points.