POST /scheduled-tasks.json

POST /scheduled-tasks.json
application/json

Body Required

  • duration integer(int32) | null

    Duration

  • foreignKey integer(int32) Required

    Foreign key

  • message string | null

    Message

  • script string Required

    Script

  • status string | null

    Status

    Values are success or error.

  • table string Required

    Table

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • createdAt string(date-time)

      Created at

    • duration integer(int32) | null

      Duration

    • foreignKey integer(int32) Required

      Foreign key

    • id integer(int32)

      Id

    • message string | null

      Message

    • script string Required

      Script

    • status string | null

      Status

      Values are success or error.

    • table string Required

      Table

    • updatedAt string(date-time)

      Updated at

POST /scheduled-tasks.json
curl \
 --request POST 'http://api.example.com/v1/scheduled-tasks.json' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"duration":42,"foreignKey":42,"message":"string","script":"string","status":"success","table":"string"}'
Request examples
{
  "duration": 42,
  "foreignKey": 42,
  "message": "string",
  "script": "string",
  "status": "success",
  "table": "string"
}
Response examples (200)
{
  "createdAt": "2025-05-04T09:42:00Z",
  "duration": 42,
  "foreignKey": 42,
  "id": 42,
  "message": "string",
  "script": "string",
  "status": "success",
  "table": "string",
  "updatedAt": "2025-05-04T09:42:00Z"
}