Request a presigned URL to upload a policy PDF
Generates a presigned S3 URL for uploading a policy PDF directly to storage. Use this when attaching a PDF to a compliance policy — the file bytes are uploaded straight to S3 without passing through the API. Requires the policy ID; if you only know the policy name, look it up first via the list-compliance-policies tool. After uploading the file to the returned URL, finalize the attachment by calling confirm-policy-pdf-uploaded with the same s3Key.
Path parameters
Policy ID
Headers
Organization ID (required for session auth, optional for API key auth)
Request body
Example request
{
"versionId": "pv_abc123def456",
"fileName": "acceptable-use-v1.pdf",
"fileType": "application/pdf"
}Response
Example response
{
"uploadUrl": "https://bucket.s3.us-east-1.amazonaws.com/org_xxx/policies/pol_xxx/...?X-Amz-Signature=...",
"s3Key": "org_abc/policies/pol_xyz/1735000000-acceptable-use-v1.pdf",
"expiresIn": 900
}Changes
Changed in 3 of the 56 revisions of this API.3
- ○
the endpoint scheme security
oauth2was removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
the endpoint scheme security
oauth2was added to the APIapi-security-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
endpoint added
endpoint-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○