post
/public_api/v1/scripts/get_script_code
Get the code of a specific script in the script library.
Required license: Cortex XDR Pro per Endpoint or Cortex XDR Pro per GB
Body parameters
request_dataObjectrequired
A dictionary containing the API request fields.
script_uidString
Unique identifier of the script, returned by the Get Scripts API per script.
REQUEST BODY
{
"request_data": {
"script_uid": "<unique ID>"
}
}
CURL
curl -X 'POST'
-H
'Accept: application/json'
-H
'Content-Type: application/json'
'https://api-yourfqdn/public_api/v1/scripts/get_script_code'
-d
''
Responses