Skip to main content
PUT
/
tasks
/
scheduled
/
{id}
Update a scheduled task
curl --request PUT \
  --url https://api.cloud.flexprice.io/v1/tasks/scheduled/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "enabled": true
}'
{
  "connection_id": "<string>",
  "created_at": "<string>",
  "enabled": true,
  "entity_type": "events",
  "environment_id": "<string>",
  "id": "<string>",
  "interval": "custom",
  "job_config": {
    "bucket": "<string>",
    "compression": "none",
    "encryption": "AES256",
    "key_prefix": "<string>",
    "region": "<string>"
  },
  "status": "<string>",
  "tenant_id": "<string>",
  "updated_at": "<string>"
}

Authorizations

x-api-key
string
header
required

Enter your API key in the format x-api-key <api-key>*

Path Parameters

id
string
required

Scheduled Task ID

Body

application/json

Update request (enabled: true/false to pause/resume)

enabled
boolean
required

Response

OK

connection_id
string
created_at
string
enabled
boolean
entity_type
enum<string>
Available options:
events,
invoice
environment_id
string
id
string
interval
enum<string>
Available options:
custom,
hourly,
daily
job_config
object
status
string
tenant_id
string
updated_at
string
I