- sso
- admin
- applications
- auth
- auth-eth
- access
- planning
- pbe-access
- newsletter
- user
- wallet
- Get API versionGET
delete-sessions
DELETE
https://sso.dlab.ovh/api/access/planning/assistant/delete-sessions
Delete 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
from
string
UTC date format
to
string
UTC date format
Example
{
"type": "early-access",
"from": "2022-06-20T00:00:00.000Z",
"to": "2022-06-30T00:00:00.000Z"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://sso.dlab.ovh/api/access/planning/assistant/delete-sessions' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "early-access",
"from": "2022-06-20T00:00:00.000Z",
"to": "2022-06-30T00:00:00.000Z"
}'
Responses
🟢200Success
application/json
Body
sessions
array [object {6}]
deleted sessions
id
integer
session id
start
string
UTC date format
end
string
UTC date format
type
string
session type
createdAt
string
UTC date format
updatedAt
string
UTC date format
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"
}
]
}