Referencia de APITasks / Schedule
Update Schedule by scheduleid
← Back to full API reference
PATCH
/v1/tasks/schedule/:scheduleIdAuth required- Validated by Zod schema: patchTaskSchedule.
Request details
Path params
| Field | Required | Description |
|---|---|---|
| scheduleId | Yes | Required path parameter. |
Body fields
| Field | Required | Description |
|---|---|---|
| taskId | No | Type: number |
| start | No | Reference to unresolved identifier "z" |
| duration | No | Type: number |
| title | No | Type: string |
| description | No | Type: string |
| location | No | Type: string |
| url | No | Type: string |
| lat | No | Type: number |
| lon | No | Type: number |
| status | No | Type: string |
| submission | No | Type: object |
| notificationConfig | No | Type: object |
| notificationConfig.proximityAlerts | No | Type: object |
| notificationConfig.proximityAlerts.enabled | Yes | Boolean parser helper from common/utils.zBoolean |
| notificationConfig.proximityAlerts.intervals | No | Type: arrayExample: |
| notificationConfig.proximityAlerts.intervals[] | Yes | Type: enumExample: 1_day |
| notificationConfig.proximityAlerts.emailNotifications | No | Boolean parser helper from common/utils.zBoolean |
| capacity | No | Type: number |
| isGroupEvent | No | Boolean parser helper from common/utils.zBoolean |
| id | Yes | Type: number |
Default payloads
Path params
json
{
"scheduleId": 1
}Query
json
{}Body
json
{
"id": 1
}Sample response
json
{
"affectedRows": "<affectedRows>"
}