Logo
Akamai APIs API Documentation

Add variables to a test suite

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

Adds new variables to a test suite. You can use variables in a test request's URL or request headers and in condition expression, as a substitute of placeholders. To learn more, see Variables. 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/variables?accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"0":{"variableName":"hostname","variableValue":"www.user8.example.com"},"1":{"variableName":"contentTypeValue","variableValue":"json"},"2":{"variableGroupValue":[{"columnHeader":"urls","columnValues":["abc.com","def.org"]}],"variableName":"sampleVarGroup"}}'

ENDPOINTS