Save session as case
curl --request POST \
--url http://127.0.0.1:4100/api/sessions/{id}/save-case \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '
{
"name": "junnu-latte-checkout"
}
'import requests
url = "http://127.0.0.1:4100/api/sessions/{id}/save-case"
payload = { "name": "junnu-latte-checkout" }
headers = {
"x-alibi-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-alibi-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'junnu-latte-checkout'})
};
fetch('http://127.0.0.1:4100/api/sessions/{id}/save-case', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"suiteId": "<string>",
"projectId": "<string>",
"name": "<string>",
"tags": [
"<string>"
],
"owner": "<string>",
"caseVersion": 123,
"baselineVersion": 123,
"schemaFingerprint": "<string>",
"steps": [
{
"id": "<string>",
"order": 123,
"source": "api",
"request": {
"method": "<string>",
"path": "<string>",
"headers": {},
"body": "<unknown>"
},
"response": {
"status": 123,
"body": "<unknown>"
},
"mutations": [
{}
],
"reads": [
{}
],
"assertions": [
{}
],
"ignoreRules": [
{}
],
"browser": {}
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}{
"error": "<string>"
}Sessions
Save session as case
Persists the session as a project-shared case. Optionally scrubs PII per policy. Only the recorder may save a live session.
POST
/
sessions
/
{id}
/
save-case
Save session as case
curl --request POST \
--url http://127.0.0.1:4100/api/sessions/{id}/save-case \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '
{
"name": "junnu-latte-checkout"
}
'import requests
url = "http://127.0.0.1:4100/api/sessions/{id}/save-case"
payload = { "name": "junnu-latte-checkout" }
headers = {
"x-alibi-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-alibi-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'junnu-latte-checkout'})
};
fetch('http://127.0.0.1:4100/api/sessions/{id}/save-case', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"suiteId": "<string>",
"projectId": "<string>",
"name": "<string>",
"tags": [
"<string>"
],
"owner": "<string>",
"caseVersion": 123,
"baselineVersion": 123,
"schemaFingerprint": "<string>",
"steps": [
{
"id": "<string>",
"order": 123,
"source": "api",
"request": {
"method": "<string>",
"path": "<string>",
"headers": {},
"body": "<unknown>"
},
"response": {
"status": 123,
"body": "<unknown>"
},
"mutations": [
{}
],
"reads": [
{}
],
"assertions": [
{}
],
"ignoreRules": [
{}
],
"browser": {}
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
ApiKeyAuthBearerAuth