# Upload Trusted By badge

URL: /en/docs/api/v1/trusted-by/id/badge/put
Last Updated: 2026-07-30T21:15:30.671Z

## Description
No description available.

## Available Actions
- Execute PUT request
- View request parameters
- View response schema
- Get code examples
- Navigate to related topics
- View step-by-step instructions
- Get best practices

## Content
### PUT /api/v1/trusted-by/{id}/badge

**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&nbsp;MB. Uploaded files are stored in the tenant's public brand assets folder.

**Authentication:** Bearer token (`Authorization: Bearer <token>`)

**Path parameters:**

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | string | Yes | Trusted By ID |

**Request body** (`multipart/form-data`) - required:

- `file` (string (binary), required): Badge image file (PNG, JPEG, GIF, SVG, WebP)

**Responses:**

- `200` - Badge uploaded successfully
  - `success` (boolean)
  - `data` (object)
    - `fileId` (string): Directus file ID for the uploaded badge
    - `url` (string (uri)): Public URL for the uploaded badge

  Example (uploaded):
  
  ```json
  {
  "success": true,
  "data": {
    "fileId": "f9a1b2c3-d4e5-6789-0abc-def123456789",
    "url": "https://directus.example.com/assets/f9a1b2c3-d4e5-6789-0abc-def123456789"
  }
}
  ```
- `400` - Validation error

  Example (missing_file):
  
  ```json
  {
  "error": "file_required"
}
  ```

  Example (invalid_type):
  
  ```json
  {
  "error": "badge_invalid_type"
}
  ```
- `401` - Unauthorized
- `403` - Forbidden - requesting tenant does not own the Trusted By entry
- `404` - Trusted By entry not found
- `413` - Uploaded file exceeds the configured limit

  Example (too_large):
  
  ```json
  {
  "error": "badge_too_large"
}
  ```
- `500` - Internal server error

**Code samples:**

cURL:

```bash
curl -X PUT "https://app.orbiqhq.com/api/v1/trusted-by/customer-123/badge" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -F "file=@/path/to/logo.png"
```

