---
title: "Upload the partner's logo shown on the consent screen"
method: POST
path: "/admin/partners/{partner_id}/oauth-clients/{client_pk}/logo"
tags: ["partner-admin"]
---

# Upload the partner's logo shown on the consent screen

`POST /admin/partners/{partner_id}/oauth-clients/{client_pk}/logo`

## Request

- Base URL: `https://api.rxfoodapp.com/api`
- URL: `https://api.rxfoodapp.com/api/admin/partners/{partner_id}/oauth-clients/{client_pk}/logo`
- Auth: HTTP bearer

The logo is hosted by RxFood. A partner-hosted URL is deliberately not accepted: an <img> on the consent page pointing at the partner would leak the patient's IP, user agent and viewing time before consent.

## Path parameters

- `partner_id` integer, required
- `client_pk` integer, required

## Request body `multipart/form-data`

- object
  - `file` string, binary

## Response `200`

Logo stored

- PartnerOAuthClientResponse
  - `active_grant_count` integer
  - `allow_refresh_token` boolean
  - `allowed_scopes` string[]
  - `client_id` string
  - `client_secret` string: Returned once, at creation and at rotation only
  - `client_type` string
  - `created_time` string, date-time, nullable
  - `display_name` string
  - `has_logo` boolean: Whether an RxFood-hosted logo has been uploaded
  - `has_secret` boolean
  - `homepage_url` string, nullable
  - `id` integer
  - `is_active` boolean
  - `partner_id` integer
  - `previous_secret_expires_at` string, date-time, nullable: When the superseded secret stops being accepted
  - `privacy_policy_url` string, nullable
  - `redirect_uris` string[]
  - `require_hospital_membership` boolean
  - `secret_rotated_time` string, date-time, nullable
  - `updated_time` string, date-time, nullable

## Other responses

- `400`: Unsupported image type or file too large
- `404`: OAuth client not found

---

[API](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server.md) - [All operations](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/llms.txt) - [OpenAPI document](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/revisions/c3d8e22b22e8?raw)
