- 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
- List port listsGET
- Create a port listPOST
- Show a port listGET
- Update a port listPUT
- Delete a port listDELETE
- List activated port listsGET
- Add a port range to a port listPOST
- Delete a port range to a port listDELETE
- Activate a port listPUT
- Deactivate a port listPUT
- Updates the app_type of a port listPUT
- Sync the a port listsPUT
- 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
Create a port list
POST
/v2/port_lists
Port Lists
Last modified:2025-04-24 10:59:46
Request
Body Params application/json
port_list
objectÂ
optional
name
stringÂ
optional
Example:
test name
comment
stringÂ
optional
Example:
test comment
port_range
stringÂ
optional
Example:
U:111,55,T:33,50-51
Example
{
"port_list": {
"name": "test name",
"comment": "test comment",
"port_range": "U:111,55,T:33,50-51"
}
}
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 POST '/v2/port_lists' \
--header 'Content-Type: application/json' \
--data-raw '{
"port_list": {
"name": "test name",
"comment": "test comment",
"port_range": "U:111,55,T:33,50-51"
}
}'
Responses
🟢201Created
This response does not have a body.
🟠422Parameter Error
Modified at 2025-04-24 10:59:46