Skip to main content
PUT
/
api
/
v1
/
jobs
/
{id}
Update job
curl --request PUT \
  --url http://localhost:3000/api/v1/jobs/{id} \
  --header 'Content-Type: application/json' \
  --cookie nut-session= \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "schedule": "<string>",
  "task": {},
  "enabled": true
}
'
{
  "success": true,
  "data": {
    "job": {
      "id": "<string>",
      "name": "<string>",
      "schedule": "<string>",
      "description": "<string>",
      "task": {},
      "enabled": true,
      "lastRun": "2023-11-07T05:31:56Z",
      "nextRun": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z"
    }
  }
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Path Parameters

id
string
required

Job ID

Body

application/json
name
string
description
string
schedule
string
task
object
enabled
boolean

Response

Job updated

success
boolean
required
data
object