PATCH
/
cloud
/
v1
/
schedule
/
{project_id}
/
{region_id}
/
{schedule_id}
curl --request PATCH \
  --url https://api.gcore.com/cloud/v1/schedule/{project_id}/{region_id}/{schedule_id} \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "day": "5",
  "day_of_week": "mon,fri",
  "days": 0,
  "hour": "0, 20",
  "hours": 2,
  "max_quantity": 2,
  "minute": "30",
  "minutes": 1,
  "month": "1,6",
  "resource_name_template": "Snapshot of volume {volume_id} created by policy {lifecycle_policy_id}",
  "retention_time": {
    "days": 0,
    "hours": 2,
    "minutes": 1,
    "weeks": 0
  },
  "timezone": "UTC",
  "type": "cron",
  "week": "1",
  "weeks": 0
}'
{
  "day": "5",
  "day_of_week": "mon,fri",
  "hour": "0, 20",
  "id": "1488e2ce-f906-47fb-ba32-c25a3f63df4f",
  "max_quantity": 2,
  "minute": "30",
  "month": "1,6",
  "owner": "lifecycle_policy",
  "owner_id": 1,
  "resource_name_template": "reserve snap of the volume {volume_id}",
  "retention_time": {
    "days": 0,
    "hours": 2,
    "minutes": 1,
    "weeks": 0
  },
  "timezone": "UTC",
  "type": "cron",
  "user_id": 12,
  "week": "1"
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

Examples:

1

region_id
integer
required

Region ID

Examples:

1

schedule_id
string
required

Schedule ID

Examples:

"1488e2ce-f906-47fb-ba32-c25a3f63df4f"

Body

application/json

Response

200 - application/json

OK

The response is of type object.