- Common Error Responses
- Authentication
- Filtering Data
- Getting Started
- Authentication
- User Confirmation
- User Invitation
- Password Reset
- Impersonation
- MFA
- Sign in authenticationPOST
- Sign in with recovery codePOST
- Sign out authenticationDELETE
- Advanced Reports
- Audit
- Notifications
- Exceptions
- Hosts
- Organizations
- Whitelabel Settings
- Port Lists
- Reports
- Scanners
- Scans
- Schedules
- Targets
- User
- User 2FA
- User Preferences
- Get current user
- Update current user
- Change current user password
- Get current user active plans (Not implemented yet)
- Get organization members
- Get current user products
- Get current organization
- Update current organization
- Get subscriptions history
- Change users product
- Checks if authorization token is valid
- Get current user permissions
- Check if the user can be deleted
- Delete my account
- Generates a new access token
- Revokes the current access token
- (Admin) Transfers all the resources from the user to another user
- Users
- Vulnerabilities
- Webhooks
Updates a target
PUT
/v2/targets/{id}
Targets
Last modified:2025-04-24 10:59:46
Request
Path Params
id
stringÂ
required
Body Params application/json
target
objectÂ
required
name
stringÂ
optional
Example:
target test
hosts
stringÂ
optional
hosts (Ex: An IP: 192.168.1.1 or a range of IPs: 192.168.1.0/24)
Example:
155.168.1.0/24
exclude_hosts
string  | nullÂ
optional
Example:
155.168.1.55
credentials
objectÂ
optional
port_list_id
<uuid>optional
alive_test
enum<string>Â
optional
Allowed values:
scan_config_defaulticmptcp_synconsider_alive
comment
string  | nullÂ
optional
Example:
my comment
Example
{
"target": {
"name": "target test",
"hosts": "155.168.1.0/24",
"exclude_hosts": "155.168.1.55",
"credentials": {
"ssh": "3d93f13d-fe75-4d5f-a6f9-7916c56a46ca",
"smb": "3d43fe94-3c23-49d9-b61b-62a6b516a841",
"esxi": "5018e745-21f4-42fd-a757-dccd5220f062",
"snmp": "f60cef17-b24e-472e-8868-db35d7a5e896"
},
"port_list_id": null,
"alive_test": "scan_config_default",
"comment": "my comment"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/v2/targets/' \
--header 'Content-Type: application/json' \
--data-raw '{
"target": {
"name": "target test",
"hosts": "155.168.1.0/24",
"exclude_hosts": "155.168.1.55",
"credentials": {
"ssh": "3d93f13d-fe75-4d5f-a6f9-7916c56a46ca",
"smb": "3d43fe94-3c23-49d9-b61b-62a6b516a841",
"esxi": "5018e745-21f4-42fd-a757-dccd5220f062",
"snmp": "f60cef17-b24e-472e-8868-db35d7a5e896"
},
"port_list_id": null,
"alive_test": "scan_config_default",
"comment": "my comment"
}
}'
Responses
🟢200OK
application/json
Body
data
optional
One of
id
string <uuid>
optional
name
stringÂ
optional
hosts
stringÂ
optional
exclude_hosts
string  | nullÂ
optional
comment
string  | nullÂ
optional
Example
{
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"hosts": "string",
"exclude_hosts": "string",
"comment": "string"
}
}
🟠401Unauthorized
🟠404Record Not Found
🟠422Parameter Error
Modified at 2025-04-24 10:59:46