Logo
Akamai APIs API Documentation

Add test cases to a test suite

POST https://{{host}}/test-management/v3/functional/test-suites/:testSuiteId/test-cases

Adds a list of new functional test cases to a test suite. Each test case consists of a test request, client profile, and condition. If you want to use variables within a condition or test request's URL or request header, create the needed variables first. The operation responds with a partial-success 207 response.

 

Body PARAM

Key Datatype Required Description 
accountSwitchKey
string (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status





Curl
curl -X POST 'https://undefined/test-management/v3/functional/test-suites/:testSuiteId/test-cases?accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"0":{"clientProfile":{"client":"CURL","ipVersion":"IPV4"},"condition":{"conditionExpression":"Response header \"Content-Type\" has a value that ends with \"undefined\""},"testRequest":{"encodeRequestBody":false,"requestBody":"","requestHeaders":[{"headerAction":"ADD","headerName":"Accept","headerValue":"v1"}],"requestMethod":"POST","testRequestUrl":"https://undefined/"}},"1":{"clientProfile":{"client":"CHROME","ipVersion":"IPV4"},"condition":{"conditionExpression":"Response code is one of \"undefined\""},"testRequest":{"requestMethod":"GET","testRequestUrl":"https://undefined/index"}}}'

ENDPOINTS