Skip to main content
POST
/
api
/
v2
/
upload-session
/
deactivate
Deactivate upload sessions
curl --request POST \
  --url https://paradigm.lighton.ai/api/v2/upload-session/deactivate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "delete_pending_documents": false
}
'
import requests

url = "https://paradigm.lighton.ai/api/v2/upload-session/deactivate"

payload = { "delete_pending_documents": False }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({delete_pending_documents: false})
};

fetch('https://paradigm.lighton.ai/api/v2/upload-session/deactivate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

Request serializer for deactivating upload sessions.

delete_pending_documents
boolean
default:false

Whether to delete pending documents when deactivating sessions

Response

200 - application/json

Response serializer for upload session deactivation.

message
string
required

Confirmation message about the session deactivation