ScansUpdate scan
Scans

Update scan

Updates an existing scan.

curl -X PATCH "https://api.neostra.io/api/v1/scans/example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -d '{
  "name": "Full System Scan",
  "description": "example_string",
  "integrationId": "example_string",
  "schedule": "example_string",
  "config": {}
}'
{
  "status": 200,
  "message": "Success",
  "data": {},
  "errors": [
    "example_string"
  ]
}
PATCH
/api/v1/scans/{scanId}
PATCH
Bearer Token (JWT)
Bearer Tokenstring
Required

JWT bearer token for authentication

JWT bearer token for authentication
path
scanIdstring
Required

The scan identifier

Content-Typestring
Required

The media type of the request body

Options: application/json
namestring

Name of the scan

descriptionstring

Description of the scan purpose

integrationIdstring

Integration to scan against

schedulestring

Cron expression for scheduled scans

configobject

Scan configuration parameters

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT bearer token for authentication

Path Parameters

scanIdstring
Required

The scan identifier

Body

application/json
namestring

Name of the scan

descriptionstring

Description of the scan purpose

integrationIdstring

Integration to scan against

schedulestring

Cron expression for scheduled scans

configobject

Scan configuration parameters

Responses

statusinteger

HTTP status code

messagestring

Response message

dataobject

Response payload

errorsstring[]

List of error details, if any