Upload Trusted By badge
Upload a logo image for the specified Trusted By entry. Supports PNG, JPEG, GIF, SVG, and WebP files up to 2 MB. Uploaded files are stored in the…
Upload a logo image for the specified Trusted By entry. Supports PNG, JPEG, GIF, SVG, and WebP files up to 2 MB. Uploaded files are stored in the tenant's public brand assets folder.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Trusted By ID
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/v1/trusted-by/string/badge" \ -F file="string"{
"success": true,
"data": {
"fileId": "f9a1b2c3-d4e5-6789-0abc-def123456789",
"url": "https://directus.example.com/assets/f9a1b2c3-d4e5-6789-0abc-def123456789"
}
}{
"error": "file_required"
}{
"error": "string",
"details": "string"
}{
"error": "string",
"details": "string"
}{
"error": "string",
"details": "string"
}{
"error": "badge_too_large"
}{
"error": "string",
"details": "string"
}How is this guide?