Brands

Upload a brand logo

PUT/api/v1/brands/{id}/logo

Sets the logo of a brand. Send multipart form data with the field file: a PNG or JPEG of at most 800 KB and 2000 pixels on each side. The type is read from the file itself, so its name and content type do not matter. SVG is not accepted. Each upload gets a new address in logoUrl, which anyone can open without a key. The address of an earlier logo keeps working, so emails already sent still show it. Uploading the same file as the current logo again changes nothing. Customer emails show a new logo within a minute.

Authorization

bearerAuth
AuthorizationBearer <token>

An access token from POST /api/v1/oauth/token, sent as Authorization: Bearer <token>.

In: header

Path Parameters

id*string

The brand's ID.

Formatuuid

Header Parameters

FlexMalipo-Version?"2026-11-06"

The API version to use for this request, a date such as 2026-11-06. Without it the request uses your default version for the mode of your key. An unknown version answers 400 api_version_invalid.

Value in

  • "2026-11-06"

Request Body

multipart/form-data

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://api-malipo.flex.co.tz/api/v1/brands/497f6eca-6276-4993-bfeb-53cbbbba6f08/logo" \  -H "Authorization: Bearer <token>" \  -H "FlexMalipo-Version: 2026-11-06" \  -F file="string"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "livemode": true,  "name": "Flex CC",  "logoUrl": "https://api.example.com/api/v1/brand-logos/3f6c2b1e-8d4a-4c1f-9b7e-2a5d8c0e4f11",  "color": "#0A7C66",  "supportEmail": "help@example.com",  "isDefault": true,  "archived": true,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}