PATCH
/
iam
/
clients
/
{clientId}
/
services
/
{serviceId}
Update service's details (Deprecated).
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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

clientId
integer
required

Account ID.

serviceId
integer
required

Service's ID.

Body

application/json

Response

200
application/json

OK.

The response is of type object.