POST /analytics/custom_actions/scripts
Creates a new custom action script file. Newly created custom action script files require a deployment before using.
Creates a new custom action script file. Newly created custom action script files require a deployment before using. Users can include an optional HTTP header file_name containing the custom action script file name. If not specified this is defaulted to the script id of the uploaded file.
MIME Type |
---|
application/json |
Parameter | Type | Optionality | Data Type | MIME Type | Description |
---|---|---|---|---|---|
fields |
header |
Optional |
String |
text/plain |
Optional - Use this parameter to specify which fields you would like to get back in the response. Fields that are not named are excluded. Specify subfields in brackets and multiple fields in the same object are separated by commas. |
Parameter | Data Type | MIME Type | Description | Sample |
---|---|---|---|---|
file |
File |
application/octet-stream |
Required. The custom action script file. Must be supplied with MIME type application/octet-stream. |
File |
HTTP Response Code | Unique Code | Description |
---|---|---|
201 |
A custom action script file has been created. |
|
500 |
1020 |
An internal server error occurred while posting custom action script file. |
Response Description
- id - Number - Unique ID of the custom action script within the QRadar deployment.
- name - String - Name of the custom action script.
Response Sample
{
"file_name": "String",
"id": 42
}