upload_evidence
Upload an evidence file to a leaf control in an executed assessment run to attach supporting documentation for compliance.
Instructions
Upload evidence file to ComplianceCow assessment run control
Purpose: Create evidence in an executed assessment run by attaching a file
Args:
runId (str): Assessment run(aka Plan instance) ID from the executed assessment run
runControlId (str): Leaf control ID in the Assessment run where evidence will be attached
filePath (str, optional): Full file system path to the evidence file to upload
fileBytes (str, optional): Base64 encoded file content
fileName (str, optional): Name of the file when using fileBytes
Returns:
str: Success message with evidence ID, or error message
Note: Either provide filePath OR both fileBytes and fileName must be provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | ||
| runControlId | Yes | ||
| filePath | No | ||
| fileBytes | No | ||
| fileName | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |