Delete Session API is not Working #395
code-muralikrishna
started this conversation in
General
Replies: 1 comment 5 replies
-
|
Hi, You can find the generated documentation for the REST API here: To delete a session, you need to use the "DELETE" method. The JSON body should look similar to this: Additionally, you must include the authentication token as a Bearer token in the request. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I can able to create the session and run the instance with below details.
https://servicex-theiacloud/service
Response : 200 OK (Instance ID)
Body :
{
"appId": "asdfghjkl",
"user": "XXX",
"appDefinition": "theia-cloud-demo",
"workspaceName": "qc",
"label": "qc",
"ephemeral": true,
"timeout": 10,
"env": {
"fromMap": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
}
}
When I am trying to delete the same session with below body it is giving me the 403 http error
{
"appId": "asdfghjkl",
"user": "XXX",
"appDefinition": "theia-cloud-demo",
"sessionName": "ws-theia-cloud-demo-XXX-session",
"workspaceName": "qc",
"label": "qc",
}
Please help me out why I couldn't able to delete the session using the API which I am running from the postman.
Beta Was this translation helpful? Give feedback.
All reactions