Authorizations
Api key
curl --request POST \
--url https://{tenant}/admin/apis/import \
--header 'Admin-Auth: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"apis": [
{
"api_definition": {
"api_id": "5fa2db834e07444f760b7ceb314209fb",
"name": "API 2"
},
"hook_references": [],
"is_streams": false,
"sort_by": 0
}
]
}'
{
"Message": "APIs imported",
"Meta": {
"5fa2db834e07444f760b7ceb314209fb": true,
"7a6ddeca9244448a4233866938a0d6e2": true
},
"Status": "OK"
}
The import APIs operates on lists of APIs.
curl --request POST \
--url https://{tenant}/admin/apis/import \
--header 'Admin-Auth: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"apis": [
{
"api_definition": {
"api_id": "5fa2db834e07444f760b7ceb314209fb",
"name": "API 2"
},
"hook_references": [],
"is_streams": false,
"sort_by": 0
}
]
}'
{
"Message": "APIs imported",
"Meta": {
"5fa2db834e07444f760b7ceb314209fb": true,
"7a6ddeca9244448a4233866938a0d6e2": true
},
"Status": "OK"
}
Api key
Was this page helpful?