POST
/
api
/
v1
/
scans
/
upsert-schedule
Upsert scan schedule
curl --request POST \
  --url https://zeropath.com/api/v1/scans/upsert-schedule \
  --header 'Content-Type: application/json' \
  --header 'X-ZeroPath-API-Token-Id: <api-key>' \
  --header 'X-ZeroPath-API-Token-Secret: <api-key>' \
  --data '{
  "organizationId": "<string>",
  "repositoryId": "<string>",
  "executionCriteriaCrontab": "<string>",
  "timezone": "UTC",
  "isEnabled": true
}'
{
  "ok": true
}

Authorizations

X-ZeroPath-API-Token-Id
string
header
required
X-ZeroPath-API-Token-Secret
string
header
required

Body

application/json
repositoryId
string
required
executionCriteriaCrontab
string
required
organizationId
string
timezone
string
default:UTC
isEnabled
boolean
default:true

Response

Successful response

ok
boolean