curl --request DELETE \
--url 'https://api-prod.usefini.com/v2/test-suite/folders/00000000-0000-4000-8000-000000000004/cases/public' \
--header 'Authorization: Bearer fini_your_api_key' \
--header 'Content-Type: application/json' \
--data '{
"caseIds": [
"00000000-0000-4000-8000-000000000002"
]
}'
const body = {
"caseIds": [
"00000000-0000-4000-8000-000000000002"
]
};
const response = await fetch("https://api-prod.usefini.com/v2/test-suite/folders/00000000-0000-4000-8000-000000000004/cases/public", {
method: "DELETE",
headers: {
Authorization: "Bearer fini_your_api_key",
"Content-Type": "application/json",
},
body: JSON.stringify(body),
});
if (!response.ok) throw new Error(await response.text());
const result = await response.json();
import requests
import json
body = json.loads('''
{
"caseIds": [
"00000000-0000-4000-8000-000000000002"
]
}
''')
response = requests.request(
"DELETE",
"https://api-prod.usefini.com/v2/test-suite/folders/00000000-0000-4000-8000-000000000004/cases/public",
headers={"Authorization": "Bearer fini_your_api_key"},
json=body,
)
response.raise_for_status()
result = response.json()
{"success": true}
Test Suite
Remove cases from collection
Unlink cases in a collection.
DELETE
/
v2
/
test-suite
/
folders
/
{id}
/
cases
/
public
curl --request DELETE \
--url 'https://api-prod.usefini.com/v2/test-suite/folders/00000000-0000-4000-8000-000000000004/cases/public' \
--header 'Authorization: Bearer fini_your_api_key' \
--header 'Content-Type: application/json' \
--data '{
"caseIds": [
"00000000-0000-4000-8000-000000000002"
]
}'
const body = {
"caseIds": [
"00000000-0000-4000-8000-000000000002"
]
};
const response = await fetch("https://api-prod.usefini.com/v2/test-suite/folders/00000000-0000-4000-8000-000000000004/cases/public", {
method: "DELETE",
headers: {
Authorization: "Bearer fini_your_api_key",
"Content-Type": "application/json",
},
body: JSON.stringify(body),
});
if (!response.ok) throw new Error(await response.text());
const result = await response.json();
import requests
import json
body = json.loads('''
{
"caseIds": [
"00000000-0000-4000-8000-000000000002"
]
}
''')
response = requests.request(
"DELETE",
"https://api-prod.usefini.com/v2/test-suite/folders/00000000-0000-4000-8000-000000000004/cases/public",
headers={"Authorization": "Bearer fini_your_api_key"},
json=body,
)
response.raise_for_status()
result = response.json()
{"success": true}
Unlink cases in a collection.
Only direct collection membership changes. A case can still belong through a linked criteria group. Send a JSON body with the DELETE request.
Headers
string
required
Bearer token containing your workspace API key. The key needs
write scope.Path parameters
string
required
Collection UUID.
Body parameters
array
required
Unique case UUIDs, up to 200. Each case must belong to this agent.
Response
Returnssuccess: true.
curl --request DELETE \
--url 'https://api-prod.usefini.com/v2/test-suite/folders/00000000-0000-4000-8000-000000000004/cases/public' \
--header 'Authorization: Bearer fini_your_api_key' \
--header 'Content-Type: application/json' \
--data '{
"caseIds": [
"00000000-0000-4000-8000-000000000002"
]
}'
const body = {
"caseIds": [
"00000000-0000-4000-8000-000000000002"
]
};
const response = await fetch("https://api-prod.usefini.com/v2/test-suite/folders/00000000-0000-4000-8000-000000000004/cases/public", {
method: "DELETE",
headers: {
Authorization: "Bearer fini_your_api_key",
"Content-Type": "application/json",
},
body: JSON.stringify(body),
});
if (!response.ok) throw new Error(await response.text());
const result = await response.json();
import requests
import json
body = json.loads('''
{
"caseIds": [
"00000000-0000-4000-8000-000000000002"
]
}
''')
response = requests.request(
"DELETE",
"https://api-prod.usefini.com/v2/test-suite/folders/00000000-0000-4000-8000-000000000004/cases/public",
headers={"Authorization": "Bearer fini_your_api_key"},
json=body,
)
response.raise_for_status()
result = response.json()
{"success": true}
Was this page helpful?

