delete-sessions
DELETE
/access/planning/assistant/delete-sessionsDelete every sessions of specified type between from <-> to.
available types : early-access, whitelist
Request
Header Params
Authorization
string
optional
Example:
Bearer {{token}}
Body Params application/json
type
string
session type
[early-access, whitelist]
from
string
UTC date format
YYYY-MM-DDThh:mm:ss.000Z
to
string
UTC date format
YYYY-MM-DDThh:mm:ss.000Z
Example
{
"type": "early-access",
"from": "2022-06-20T00:00:00.000Z",
"to": "2022-06-30T00:00:00.000Z"
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
sessions
array [object {6}]
deleted sessions
id
integer
session id
start
string
UTC date format
YYYY-MM-DDThh:mm:ss.000Z
end
string
UTC date format
YYYY-MM-DDThh:mm:ss.000Z
type
string
session type
[early-access, whitelist]
createdAt
string
UTC date format
YYYY-MM-DDThh:mm:ss.000Z
updatedAt
string
UTC date format
YYYY-MM-DDThh:mm:ss.000Z
Example
{
"sessions": [
{
"id": 4,
"start": "2022-06-20T10:00:00.000Z",
"end": "2022-06-20T18:00:00.000Z",
"type": "early-access",
"createdAt": "2022-06-22T11:19:01.000Z",
"updatedAt": "2022-06-22T11:19:01.000Z"
},
{
"id": 5,
"start": "2022-06-21T10:00:00.000Z",
"end": "2022-06-21T18:00:00.000Z",
"type": "early-access",
"createdAt": "2022-06-22T11:19:01.000Z",
"updatedAt": "2022-06-22T11:19:01.000Z"
}
]
}
Last modified: 2 年前