curl --request PATCH \
--url https://api.gcore.com/iam/clients/{clientId}/services/{serviceId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "CDN",
"status": "paused",
"previous_status": "active",
"enabled": true,
"options": [
{
"id": 123,
"value": "<string>",
"value_type": "int",
"name": "<string>",
"category": "<string>",
"description": "<string>",
"title": "<string>"
}
],
"status_transition_options": [
{
"id": 123,
"value": "<string>",
"value_type": "int",
"name": "<string>",
"category": "<string>",
"description": "<string>",
"title": "<string>"
}
]
}'
{
"id": 123,
"name": "CDN",
"client": 123,
"status": "paused",
"previous_status": "active",
"status_changed_at": "2023-11-07T05:31:56Z",
"start": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"enabled": true,
"options": [
{
"id": 123,
"value": "<string>",
"value_type": "int",
"name": "<string>",
"category": "<string>",
"description": "<string>",
"title": "<string>"
}
],
"status_transition_options": [
{
"id": 123,
"value": "<string>",
"value_type": "int",
"name": "<string>",
"category": "<string>",
"description": "<string>",
"title": "<string>"
}
]
}
With this method you can change status or options for service. Deprecated, available on BILLING.
curl --request PATCH \
--url https://api.gcore.com/iam/clients/{clientId}/services/{serviceId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "CDN",
"status": "paused",
"previous_status": "active",
"enabled": true,
"options": [
{
"id": 123,
"value": "<string>",
"value_type": "int",
"name": "<string>",
"category": "<string>",
"description": "<string>",
"title": "<string>"
}
],
"status_transition_options": [
{
"id": 123,
"value": "<string>",
"value_type": "int",
"name": "<string>",
"category": "<string>",
"description": "<string>",
"title": "<string>"
}
]
}'
{
"id": 123,
"name": "CDN",
"client": 123,
"status": "paused",
"previous_status": "active",
"status_changed_at": "2023-11-07T05:31:56Z",
"start": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"enabled": true,
"options": [
{
"id": 123,
"value": "<string>",
"value_type": "int",
"name": "<string>",
"category": "<string>",
"description": "<string>",
"title": "<string>"
}
],
"status_transition_options": [
{
"id": 123,
"value": "<string>",
"value_type": "int",
"name": "<string>",
"category": "<string>",
"description": "<string>",
"title": "<string>"
}
]
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
OK.
The response is of type object
.
Was this page helpful?