Skip to content

Upload or replace a custom framework's Trust Portal badge image

POST
/v1/trust-portal/custom-frameworks/badge
curl --request POST \
--url https://api.varman.io/v1/trust-portal/custom-frameworks/badge \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "customFrameworkId": "cfrm_6914cd0e16e4c7dccbb54426", "fileName": "acme-framework-badge.png", "fileType": "image/png", "fileData": "example" }'

Stores a PNG/JPEG/WebP badge (max 256KB) in the organization assets bucket. Does not change the framework’s portal visibility.

Media typeapplication/json
object
customFrameworkId
required

Org-authored custom framework ID the badge belongs to

string

Example

cfrm_6914cd0e16e4c7dccbb54426
fileName
required

Original file name (PNG, JPEG, or WebP)

string

Example

acme-framework-badge.png
fileType
required

MIME type of the image

string

Example

image/png
fileData
required

Base64 encoded image content (PNG/JPEG/WebP, max 256KB decoded)

string

Badge uploaded successfully

Media typeapplication/json
object
success
required
boolean
badgeUrl
required

Signed URL to the uploaded badge for immediate display

string

Example generated

{
"success": true,
"badgeUrl": "example"
}