curl --location --request PUT 'https://api.stateset.com/v1/session' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": ""
}'
const updated = await stateset.session.update({
id: "",
});
{
"data": {
"update_session": {
"returning": [
{
"id": "",
"name": "",
"uuid": "",
"user_id": ""
}
]
}
}
}
Update Session
This endpoint updates a session
PUT
/
v1
/
session
curl --location --request PUT 'https://api.stateset.com/v1/session' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": ""
}'
const updated = await stateset.session.update({
id: "",
});
{
"data": {
"update_session": {
"returning": [
{
"id": "",
"name": "",
"uuid": "",
"user_id": ""
}
]
}
}
}
Body
string
This is the ID of the session to be updated.
Response
number
Indicates whether the call was successful. 1 if successful, 0 if not.
curl --location --request PUT 'https://api.stateset.com/v1/session' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": ""
}'
const updated = await stateset.session.update({
id: "",
});
{
"data": {
"update_session": {
"returning": [
{
"id": "",
"name": "",
"uuid": "",
"user_id": ""
}
]
}
}
}
โI