Skip to main content
POST
Create a test on an assessment

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

assessment_id
string
required

ID of the assessment

Body

application/json
name
string
required

Name of the test

Example:

"Quarterly penetration test"

test_plan
enum<string>
required

Name of the test plan, one of those the test plans operation returns for the organization. SynackAPIPentest is for API assessments and every other plan for assessments of the other categories. Sara Pentest and Sara Pentest+ need SmartScan enabled and an assessment without a gateway.

Available options:
Synack365,
Synack90,
Synack14,
SynackAPIPentest,
SynackST,
SynackST+,
Sara Pentest,
Sara Pentest+
planned_start_date
string<date>
required

Date the test starts on, at the earliest the next business day

Example:

"2030-01-07"

draft
boolean
default:false

Whether to keep the test as a draft instead of submitting it for review

test_objective
string

Objective of the test

known_vulnerabilities
string

Vulnerabilities already known on the assets under test

smartscan_enabled
boolean
default:true

Whether SmartScan runs for the duration of the test, always the case on Sara Pentest and Sara Pentest+

roes
object[]

Rules of engagement of the test

warning_order_contacts
string<email>[]

Email addresses of the users to send the warning order to, each a user with access to the organization, listed at most once regardless of letter case

Maximum array length: 30
outage_windows
object[]

Periods during which testing pauses, each one-time or recurring

A single pause in testing

Response

The created test, with its review status as draft_status

id
integer<int64>
required

ID of the test

type
string
required

Name of the test plan

Example:

"Synack14"

status
enum<string>
required

Whether the test has started and ended

Available options:
planned,
active,
ended
draft_status
enum<string>
required

Review status of the test, completed once the test is approved

Available options:
draft,
in_admin_review,
in_synack_review,
needs_more_info,
completed
planned_start_date
string<date-time>
required
planned_end_date
string<date-time>
required
actual_start_date
string<date-time> | null
required
actual_end_date
string<date-time> | null
required