curl --request POST \
--url http://localhost:3333/v1/trust-portal/compliance-resources/upload \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"organizationId": "org_6914cd0e16e4c7dccbb54426",
"framework": "iso_27001",
"fileName": "iso-27001-certificate.pdf",
"fileType": "application/pdf",
"fileData": "<string>"
}
'{
"framework": "iso_27001",
"fileName": "<string>",
"fileSize": 123,
"updatedAt": "<string>"
}Stores the compliance certificate in the organization assets bucket and replaces any previous file for the same framework.
curl --request POST \
--url http://localhost:3333/v1/trust-portal/compliance-resources/upload \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"organizationId": "org_6914cd0e16e4c7dccbb54426",
"framework": "iso_27001",
"fileName": "iso-27001-certificate.pdf",
"fileType": "application/pdf",
"fileData": "<string>"
}
'{
"framework": "iso_27001",
"fileName": "<string>",
"fileSize": 123,
"updatedAt": "<string>"
}API key for authentication
Organization ID (required for session auth, optional for API key auth)
Organization ID that owns the compliance resource
"org_6914cd0e16e4c7dccbb54426"
Compliance framework identifier
iso_27001, iso_42001, gdpr, hipaa, soc2_type1, soc2_type2, pci_dss, nen_7510, iso_9001 "iso_27001"
Original file name (PDF only)
"iso-27001-certificate.pdf"
MIME type of the file
"application/pdf"
Base64 encoded PDF content
Compliance certificate uploaded successfully
Was this page helpful?