probely_update_target
Update a target's labels, scanning agent, and authentication settings (Basic Auth or API headers/cookies) for scanning.
Instructions
Update a target. Use labels to assign label names (e.g. ["Agentic", "Production"]). Existing labels are reused; missing ones are created automatically. Use scanning_agent_id to assign or change the scanning agent. Pass "" to remove it.
IMPORTANT: The headers/cookies parameters are for general custom headers/cookies sent with every scan request (NOT for authentication). They use a simple structure: {"name": "...", "value": "..."}.
For HTTP Basic Auth authentication: Use basic_auth_username and basic_auth_password parameters. Both must be provided together. Example: probely_update_target( targetId, basic_auth_username="credentials://xxx", # or inline: "api-user" basic_auth_password="credentials://yyy" # or inline: "secret123" )
For API authentication with static headers/cookies: Use api_auth_headers and/or api_auth_cookies parameters with full structure including authentication flags. The tool automatically sets api_login_enabled=true and api_login_method='headers_or_cookies'. Example: probely_update_target( targetId, api_auth_headers=[{ "name": "X-API-Key", "value": "credentials://xxx", "value_is_sensitive": false, "allow_testing": false, "authentication": true, "authentication_secondary": false }], api_auth_cookies=[{ "name": "session", "value": "credentials://yyy", "value_is_sensitive": false, "allow_testing": false, "authentication": true, "authentication_secondary": false }] )
Reference saved credentials using URI format 'credentials://<credential_id>' (not {{cred-name}}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetId | Yes | ||
| name | No | ||
| url | No | ||
| desc | No | ||
| labels | No | ||
| scanning_agent_id | No | ||
| headers | No | Custom HTTP headers sent with every scan request (for general use, NOT for authentication). Each entry: {"name": "<header-name>", "value": "<header-value>"}. Replaces all existing custom headers. To reference saved credentials in header values, use URI format 'credentials://4DY4qGohso1r'. For API authentication using static headers, use api_auth_headers parameter instead. | |
| cookies | No | Custom cookies sent with every scan request (for general use, NOT for authentication). Each entry: {"name": "<cookie-name>", "value": "<cookie-value>"}. Replaces all existing custom cookies. To reference saved credentials in cookie values, use URI format 'credentials://4DY4qGohso1r'. For API authentication using static cookies, use api_auth_cookies parameter instead. | |
| basic_auth_username | No | Username for HTTP Basic Auth. Use credential URI format 'credentials://xxx' to reference saved credentials. When set, basic_auth_password must also be provided. | |
| basic_auth_password | No | Password for HTTP Basic Auth. Use credential URI format 'credentials://xxx' to reference saved credentials. When set, basic_auth_username must also be provided. | |
| api_auth_headers | No | Authentication headers for API targets. Full structure with authentication flags. Each entry: {"name": "X-API-Key", "value": "credentials://xxx", "value_is_sensitive": false, "allow_testing": false, "authentication": true, "authentication_secondary": false}. Automatically sets api_login_enabled=true and api_login_method='headers_or_cookies'. | |
| api_auth_cookies | No | Authentication cookies for API targets. Full structure with authentication flags. Each entry: {"name": "session", "value": "credentials://xxx", "value_is_sensitive": false, "allow_testing": false, "authentication": true, "authentication_secondary": false}. Automatically sets api_login_enabled=true and api_login_method='headers_or_cookies'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||