POST
/
api
/
v1
/
scans
/
get-schedule
Get scan schedules
curl --request POST \
  --url https://zeropath.com/api/v1/scans/get-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>"
}'
{
  "repoId": "<string>",
  "executionCriteriaCrontab": "<string>",
  "isEnabled": true,
  "id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "codeScans": [
    "<string>"
  ],
  "stagedCodeScans": [
    "<string>"
  ]
}

Authorizations

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

Body

application/json
repositoryId
string
required
organizationId
string

Response

Scan schedule

repoId
string
executionCriteriaCrontab
string
isEnabled
boolean
id
string
createdAt
string<date-time>
updatedAt
string<date-time>
codeScans
string[]
stagedCodeScans
string[]