parameterType[parameterName]=value
.https://apidog.com/apidoc/docs-site/538323/api-7312738-run?environment[access_token]=example_value&query[locale]=en-US
Parameter Type | Parameter Value Format | Description | Behavior |
---|---|---|---|
Query Parameters | query[xxx]=yyy | Current endpoint only | |
Path Parameters | path[xxx]=yyy | Current endpoint only | |
Body Parameters | body[xxx]=yyy | For form-data or x-www-form-urlencoded body types | Current endpoint only |
Body Parameters | body=yyy | For other body types (e.g., raw JSON, XML) | Current endpoint only |
Header Parameters | header[xxx]=yyy | Current endpoint only | |
Cookie Parameters | cookie[xxx]=yyy | Current endpoint only | |
Environment Variables | environment[xxx]=yyy | Sets the value in the default environment. | Persists across endpoints |
params
parameter. This JSON object must be encoded using encodeURIComponent
. In JavaScript, this can be achieved with: encodeURIComponent(JSON.stringify({"query":["id",1]}))
.{
"query": [
["id", "value1"],
["id", "value2"],
["key2", "value3"]
],
"path": [
["key1", "value1"],
["key2", "value2"]
],
"body": [
["aaa", "value1"],
["key2", "value2"]
],
"header": [
["testHeader", "value1"],
["key2", "value2"]
],
"cookie": [
["testCookie", "value1"],
["key2", "value2"]
],
"environment": [
["access_token", "example_value"],
["projectId", "1"]
]
}
https://apidog.com/apidoc/docs-site/538323/api-7312738-run?params=%7B%22query%22%3A%5B%5B%22id%22%2C%22value1%22%5D%2C%5B%22id%22%2C%22value2%22%5D%2C%5B%22key2%22%2C%22value3%22%5D%5D%2C%22path%22%3A%5B%5B%22key1%22%2C%22value1%22%5D%2C%5B%22key2%22%2C%22value2%22%5D%5D%2C%22body%22%3A%5B%5B%22aaa%22%2C%22value1%22%5D%2C%5B%22key2%22%2C%22value2%22%5D%5D%2C%22header%22%3A%5B%5B%22testHeader%22%2C%22value1%22%5D%2C%5B%22key2%22%2C%22value2%22%5D%5D%2C%22cookie%22%3A%5B%5B%22testCookie%22%2C%22value1%22%5D%2C%5B%22key2%22%2C%22value2%22%5D%5D%2C%22environment%22%3A%5B%5B%22access_token%22%2C%22example_value%22%5D%2C%5B%22projectId%22%2C%221%22%5D%5D%7D
Parameter Type | Parameter Value | Description | Behavior |
---|---|---|---|
Query Parameters | query | An array of key-value pairs. | Current endpoint only |
Path Parameters | path | An array of key-value pairs. | Current endpoint only |
Body Parameters | body | An array of key-value pairs for form-data or x-www-form-urlencoded ; a string for other body types. | Current endpoint only |
Header Parameters | header | An array of key-value pairs. | Current endpoint only |
Cookie Parameters | cookie | An array of key-value pairs. | Current endpoint only |
Environment Variables | environment | An array of key-value pairs. Sets values in the default environment. | Persists across endpoints |
https://openapi.apidog.io/api-7312738-run?environment[access_token]=example_value