Endpoints会话

删除会话

按会话 ID 删除玩家会话。该会话必须属于调用方产品。 默认为软删除:会话被标记为已撤销,不再可查询,其玩家 ID 可重新使用,但记录本身会保留。 **不可撤销。** 若将 `hardDelete` 设为 `true`,则会永久删除该会话及其内嵌的同意信息,此操作无法恢复。仅对明确启用了硬删除的开发者可用。

POST
/session/delete
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/session/delete" \  -H "Content-Type: application/json" \  -d '{    "sessionId": "b1a6482d-5242-4b4a-aa88-3fa52595a672"  }'
Empty