---
updatedAt: 2026-04-23T05:40:30.000Z
---

# Updates an scheduled task

Updates an scheduled task with the specified details.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "API V1",
    "version": "v1"
  },
  "paths": {
    "/scheduled_tasks/{id}": {
      "put": {
        "summary": "Updates an scheduled task",
        "tags": [
          "Scheduled Tasks"
        ],
        "description": "Updates an scheduled task with the specified details.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Identifier of the scheduled task to update",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "scheduled task updated"
          },
          "404": {
            "description": "scheduled task not found"
          },
          "422": {
            "description": "unprocessable entity"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "due_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The date and time when the task is due. Accepts either an ISO 8601 formatted date-time string or a UNIX timestamp as a string or integer.",
                    "nullable": false
                  },
                  "remind_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "The date and time when a reminder for the task should be sent. Accepts either an ISO 8601 formatted date-time string or a UNIX timestamp as a string or integer.",
                    "nullable": true
                  },
                  "agent_user_id": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Identifier for the agent user assigned to the task",
                    "nullable": true
                  },
                  "user_id": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Identifier for the user who created the task",
                    "nullable": false
                  },
                  "notes": {
                    "type": "string",
                    "description": "Additional notes or details about the task",
                    "nullable": true
                  },
                  "marked_as_completed": {
                    "type": "boolean",
                    "description": "Indicates if the task has been marked as completed",
                    "nullable": true
                  }
                }
              }
            }
          },
          "required": true,
          "description": "Data containing updated scheduled task information"
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.solidarity.tech/v1",
      "variables": {
        "defaultHost": {
          "default": "api.solidarity.tech/v1"
        }
      }
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
```