> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload Custom Script

Upload a new custom-script to use for the RTR `runscript` command.

Refer to CrowdStrike's documentation to review the necessary permissions for executing this action. The required permissions may vary depending on the selected permission type.

<Note>
  External Documentation

  To learn more, visit the [CrowdStrike documentation](https://falcon.us-2.crowdstrike.com/documentation/page/f00d6af5/real-time-response-apis#yd95da94).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter              | Description                                                                                                                |
  | ---------------------- | -------------------------------------------------------------------------------------------------------------------------- |
  | Comments For Audit Log | The audit log comment.                                                                                                     |
  | Content                | The script text that you want to use to upload.                                                                            |
  | Description            | File description.                                                                                                          |
  | Name                   | File name (if different than actual file name).                                                                            |
  | Permission Type        | Permission for the custom-script.                                                                                          |
  | Platform               | Platforms for the file. Currently supports: windows, mac, linux. If no platform is provided, it will default to 'windows'. |
</div>

## Example Output

```json theme={"dark"}
{
	"meta": {
		"query_time": 0,
		"writes": {
			"resources_affected": 1
		},
		"powered_by": "<string>",
		"trace_id": "<string>"
	}
}
```

## Workflow Library Example

[Upload Custom Script with Crowdstrike and Send Results Via Email](https://library.blinkops.com/workflows/upload-custom-script-with-crowdstrike-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/upload-custom-script-with-crowdstrike-and-send-results-via-email/canvas" />
</div>
