PUT
/
cdn
/
logs_uploader
/
configs
/
{config_id}
curl --request PUT \
  --url https://api.gcore.com/cdn/logs_uploader/configs/{config_id} \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "enabled": true,
  "name": "<string>",
  "policy": 123,
  "target": 123,
  "for_all_resources": false,
  "resources": [
    123
  ]
}'
{
  "id": 123,
  "client_id": 123,
  "created": "2023-11-07T05:31:56Z",
  "updated": "2023-11-07T05:31:56Z",
  "enabled": true,
  "name": "<string>",
  "policy": 123,
  "target": 123,
  "for_all_resources": true,
  "resources": [
    123
  ],
  "status": {
    "status": "in_progress",
    "code": 123,
    "updated": "2023-11-07T05:31:56Z",
    "details": "<string>"
  }
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

id
integer
required

Body

application/json

Response

200
application/json

Successful.

The response is of type object.