Update Schedule
PUT
/dev/projects/{project_id}/schedules/{schedule_id}Request
Path Params
project_id
string
required
Example:
1
schedule_id
string
required
Example:
4
Header Params
Secret-Key
string
required
Example:
123
Body Params application/json
name
string
optional
descriptio
string
optional
cron
string
required
paused
boolean
required
Example
{
"name": "Schedule Now updated -1",
"descriptio": "New Description",
"cron": "0 16 ? * 1,6 *",
"paused": true
}
Request samples
Responses
Update Schedule(0)
HTTP Code: 0
Content Type : JSONapplication/json
Data Schema
success
boolean
required
message
string
required
details
object
required
id
integer
required
project_id
integer
required
name
string
required
description
string
required
request
object
required
cron_expression
string
required
paused
boolean
required
scheduled_for
string
required
schedule_name
string
required
rule_arn
string
required
target_id
string
required
createdAt
string
required
updatedAt
string
required
ExampleUpdate Schedule
{
"success": true,
"message": "Schedule updated successfully",
"details": {
"id": 1,
"project_id": 1,
"name": "Schedule Now updated -1",
"description": "No Description",
"request": {
"body": {
"status": true
},
"url": "https://example.com/api/update-status"
},
"cron_expression": "11 * * * ? *",
"paused": true,
"scheduled_for": "2024-05-04T06:16:11.000Z",
"schedule_name": "pid-1__1714803344160",
"rule_arn": "arn:aws:events:ap-south-1:508660910536:rule/pid-1__1714803344160",
"target_id": "fe702822-480c-418d-be31-eca893167b53",
"createdAt": "2024-05-04T06:15:45.000Z",
"updatedAt": "2024-05-04T06:15:45.000Z"
}
}
Last modified: 6 months ago