> ## Documentation Index
> Fetch the complete documentation index at: https://docs.minimo.it/llms.txt
> Use this file to discover all available pages before exploring further.

# Save Tenant Profile

> Create or update the restaurant name, logo, contacts and legal details

Guide: [Brand widget and tenant branding](https://docs.minimo.it/embedded/widget-brand.md). Errors: [Errors and limits](https://docs.minimo.it/embedded/errors.md).


## OpenAPI

````yaml put /public/v1/tenants/{tenant}
openapi: 3.1.0
info:
  title: API Documentation
  description: Documentation for transactional and subscribe APIs
  version: 1.0.0
servers:
  - url: https://app.minimo.it
security:
  - bearerAuth: []
paths:
  /public/v1/tenants/{tenant}:
    servers:
      - url: https://api.minimo.it
    put:
      summary: Save tenant profile
      description: >-
        Creates or updates the profile. Only the fields you send are written;
        `null` clears one. URLs must be public https.


        The name is shown on the unsubscribe and preferences pages. The legal
        details make the identity line in the email footer.
      operationId: saveTenantProfile
      parameters:
        - name: tenant
          in: path
          required: true
          description: >-
            Your reference for the customer (for example the restaurant id). 1
            to 64 letters, digits, `.` `_` `:` `-`.
          schema:
            type: string
            example: restaurant_4812
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TenantProfileInput'
            example:
              displayName: Trattoria da Mario
              logoUrl: https://cdn.example.com/logo.png
              locale: it
              legalName: Trattoria da Mario S.r.l.
              address: Via Roma 1, Milano
              privacyUrl: https://trattoriadamario.example/privacy
              brandColor: '#1F5E5B'
      responses:
        '200':
          description: The saved profile
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/TenantProfile'
              example:
                data:
                  tenant: restaurant_4812
                  displayName: Trattoria da Mario
                  logoUrl: https://cdn.example.com/logo.png
                  locale: it
                  legalName: Trattoria da Mario S.r.l.
                  address: Via Roma 1, Milano
                  privacyUrl: https://trattoriadamario.example/privacy
                  website: null
                  phone: +39 02 1234 5678
                  email: null
                  socials:
                    facebook: null
                    instagram: null
                    linkedin: null
                    x: null
                    youtube: null
                    tiktok: null
                  brandColor: '#1F5E5B'
                  editedByTenant: []
                  updatedAt: '2026-11-08T21:06:26.028Z'
        '401':
          description: >-
            `INVALID_TOKEN`: missing or wrong key, or a key without the
            **Widgets** permission.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: >-
            `INVALID_TENANT`, `INVALID_TENANT_PROFILE`, `INVALID_TENANT_URL`,
            `INVALID_TENANT_CONTACT` or `INVALID_BRAND_COLOR`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - bearerAuth: []
      x-codeSamples:
        - label: cURL
          lang: bash
          source: |-
            curl --request PUT \
              --url 'https://api.minimo.it/public/v1/tenants/restaurant_4812' \
              --header 'Authorization: Bearer YOUR_MINIMO_KEY' \
              --header 'Content-Type: application/json' \
              --data '{"displayName": "Trattoria da Mario", "logoUrl": "https://cdn.example.com/logo.png", "locale": "it", "legalName": "Trattoria da Mario S.r.l.", "address": "Via Roma 1, Milano", "privacyUrl": "https://trattoriadamario.example/privacy", "brandColor": "#1F5E5B"}'
        - lang: JavaScript
          source: >-
            const res = await
            fetch('https://api.minimo.it/public/v1/tenants/restaurant_4812', {
              method: 'PUT',
              headers: {
                Authorization: 'Bearer YOUR_MINIMO_KEY',
                'Content-Type': 'application/json',
              },
              body: JSON.stringify({"displayName": "Trattoria da Mario", "logoUrl": "https://cdn.example.com/logo.png", "locale": "it", "legalName": "Trattoria da Mario S.r.l.", "address": "Via Roma 1, Milano", "privacyUrl": "https://trattoriadamario.example/privacy", "brandColor": "#1F5E5B"}),
            });

            const { data } = await res.json();

            console.log(data);
        - lang: Python
          source: |-
            import requests

            res = requests.put(
                'https://api.minimo.it/public/v1/tenants/restaurant_4812',
                headers={'Authorization': 'Bearer YOUR_MINIMO_KEY'},
                json={"displayName": "Trattoria da Mario", "logoUrl": "https://cdn.example.com/logo.png", "locale": "it", "legalName": "Trattoria da Mario S.r.l.", "address": "Via Roma 1, Milano", "privacyUrl": "https://trattoriadamario.example/privacy", "brandColor": "#1F5E5B"},
            )
            print(res.status_code, res.text)
components:
  schemas:
    TenantProfileInput:
      type: object
      properties:
        displayName:
          type: string
          nullable: true
          description: >-
            Name the guests know. Shown on the unsubscribe and preferences
            pages.
          example: Trattoria da Mario
        logoUrl:
          type: string
          nullable: true
          description: Public https URL of the logo.
        locale:
          type: string
          nullable: true
          description: Language of the restaurant's pages, for example `it` or `it-IT`.
          example: it
        legalName:
          type: string
          nullable: true
          description: Legal name of the data controller (the restaurant).
          example: Trattoria da Mario S.r.l.
        address:
          type: string
          nullable: true
          description: Postal address of the data controller.
        privacyUrl:
          type: string
          nullable: true
          description: Public https URL of the privacy policy.
        website:
          type: string
          nullable: true
          description: Public https URL, up to 500 characters. Shown in the email footer.
          example: https://trattoriadamario.example
        phone:
          type: string
          nullable: true
          description: 6 to 15 digits, up to 32 characters. Shown in the footer.
          example: +39 02 1234 5678
        email:
          type: string
          nullable: true
          description: Contact email shown in the footer.
          example: info@trattoriadamario.example
        socials:
          type: object
          nullable: true
          description: >-
            https links on their network (facebook.com, instagram.com,
            linkedin.com, x.com or twitter.com, youtube.com or youtu.be,
            tiktok.com). Only the keys you send are written; `null` clears one.
          properties:
            facebook:
              type: string
              nullable: true
            instagram:
              type: string
              nullable: true
            linkedin:
              type: string
              nullable: true
            x:
              type: string
              nullable: true
            youtube:
              type: string
              nullable: true
            tiktok:
              type: string
              nullable: true
          example:
            instagram: https://www.instagram.com/trattoriadamario
        brandColor:
          type: string
          nullable: true
          description: >-
            Hex color `#RRGGBB`, not near-white. Used for the title band and
            buttons of your master templates sent for this restaurant.
          example: '#1F5E5B'
      description: Only the fields you send are written. `null` clears a field.
    TenantProfile:
      type: object
      properties:
        tenant:
          type: string
          example: restaurant_4812
        displayName:
          type: string
          nullable: true
          example: Trattoria da Mario
        logoUrl:
          type: string
          nullable: true
          example: https://cdn.example.com/logo.png
        locale:
          type: string
          nullable: true
          example: it
        legalName:
          type: string
          nullable: true
          example: Trattoria da Mario S.r.l.
        address:
          type: string
          nullable: true
          example: Via Roma 1, Milano
        privacyUrl:
          type: string
          nullable: true
          example: https://trattoriadamario.example/privacy
        website:
          type: string
          nullable: true
          example: https://trattoriadamario.example
        phone:
          type: string
          nullable: true
          example: +39 02 1234 5678
        email:
          type: string
          nullable: true
          example: info@trattoriadamario.example
        socials:
          type: object
          properties:
            facebook:
              type: string
              nullable: true
            instagram:
              type: string
              nullable: true
            linkedin:
              type: string
              nullable: true
            x:
              type: string
              nullable: true
            youtube:
              type: string
              nullable: true
            tiktok:
              type: string
              nullable: true
          required:
            - facebook
            - instagram
            - linkedin
            - x
            - youtube
            - tiktok
        brandColor:
          type: string
          nullable: true
          example: '#1F5E5B'
        editedByTenant:
          type: array
          items:
            type: string
          example:
            - logoUrl
          description: >-
            Fields the restaurant changed itself in the Brand widget. They win
            over your session variables until you write the field again with
            Save Tenant Profile.
        updatedAt:
          type: string
          format: date-time
      required:
        - tenant
        - displayName
        - logoUrl
        - locale
        - legalName
        - address
        - privacyUrl
        - website
        - phone
        - email
        - socials
        - brandColor
        - editedByTenant
        - updatedAt
    ApiError:
      type: object
      properties:
        status:
          type: string
          example: FAIL
        message:
          type: string
          description: The error code to test in your code.
          example: INVALID_PARAMETERS
        userMessage:
          type: string
          description: >-
            When present, a sentence that says what to fix. You can show or log
            it.
          example: Set the origins allowed to embed the widgets first.
      description: >-
        Every error has this shape. See [Errors and limits](/embedded/errors)
        for every code.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: mn-API_CLIENT_ID-API_KEY

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.