Approve case from run
curl --request POST \
--url http://127.0.0.1:4100/api/cases/{id}/approve \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '
{
"runId": "<string>"
}
'import requests
url = "http://127.0.0.1:4100/api/cases/{id}/approve"
payload = { "runId": "<string>" }
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({runId: '<string>'})
};
fetch('http://127.0.0.1:4100/api/cases/{id}/approve', 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>"
}{
"error": "<string>"
}Cases
Approve case from run
Updates the golden case from a verify run. Requires an actor with an approve role per project policy.
POST
/
cases
/
{id}
/
approve
Approve case from run
curl --request POST \
--url http://127.0.0.1:4100/api/cases/{id}/approve \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '
{
"runId": "<string>"
}
'import requests
url = "http://127.0.0.1:4100/api/cases/{id}/approve"
payload = { "runId": "<string>" }
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({runId: '<string>'})
};
fetch('http://127.0.0.1:4100/api/cases/{id}/approve', 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>"
}{
"error": "<string>"
}Authorizations
ApiKeyAuthBearerAuth