Skip to main content
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 '
{
  "repositoryId": "<string>",
  "organizationId": "<string>"
}
'
[
  {
    "repoId": "<string>",
    "scanBranch": "<string>",
    "executionCriteriaCrontab": "<string>",
    "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
scanBranch
string | null
executionCriteriaCrontab
string
id
string
createdAt
string<date-time>
updatedAt
string<date-time>
codeScans
string[]
stagedCodeScans
string[]