curl --request POST \
--url https://api.gcore.com/cdn/admin/free_features \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"client_id": 1,
"feature_id": 1
}'
{
"id": 1,
"client_id": 1,
"feature": {
"id": 1,
"name": "Example 1",
"service": "CDN",
"is_free": true
},
"feature_id": 1,
"create_date": "2021-01-01 00:00:00+00:00"
}
Enable the free feature for a specific client.
curl --request POST \
--url https://api.gcore.com/cdn/admin/free_features \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"client_id": 1,
"feature_id": 1
}'
{
"id": 1,
"client_id": 1,
"feature": {
"id": 1,
"name": "Example 1",
"service": "CDN",
"is_free": true
},
"feature_id": 1,
"create_date": "2021-01-01 00:00:00+00:00"
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Successful.
The response is of type object
.
Was this page helpful?