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

# Patch apple design

> Shared GET/PATCH/DELETE logic for a single (loyalty, platform) design.

On first PATCH the row is auto-created so the form can save without an
explicit POST step.



## OpenAPI

````yaml /openapi/main.json patch /v1/crm/loyalties/{id}/apple-design/
openapi: 3.0.3
info:
  title: Yume API — Основное
  version: 1.0.0
  description: Базовые сущности и бизнес-логика CRM.
servers:
  - url: https://api.yume.cloud
    description: Production
  - url: https://api.stage.yume.cloud
    description: Stage
security: []
paths:
  /v1/crm/loyalties/{id}/apple-design/:
    patch:
      tags:
        - loyalties
      summary: Patch apple design
      description: |-
        Shared GET/PATCH/DELETE logic for a single (loyalty, platform) design.

        On first PATCH the row is auto-created so the form can save without an
        explicit POST step.
      operationId: loyalties_apple_design_partial_update
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
        - $ref: '#/components/parameters/TenantId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedLoyaltyAppleDesign'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedLoyaltyAppleDesign'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedLoyaltyAppleDesign'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoyaltyAppleDesign'
          description: ''
      security:
        - jwtAuth: []
components:
  parameters:
    TenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: integer
      description: >-
        Компания, в контексте которой выполняется запрос — её id из `GET
        /v1/tenant/`. Пользователь должен состоять в этой компании: чужой id
        доступа к данным не даёт. Без заголовка компания определяется по домену
        запроса.
  schemas:
    PatchedLoyaltyAppleDesign:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        loyalty:
          type: integer
          readOnly: true
        background_color:
          type: string
          pattern: ^#[0-9A-Fa-f]{6}$
          maxLength: 7
        foreground_color:
          type: string
          pattern: ^#[0-9A-Fa-f]{6}$
          maxLength: 7
        label_color:
          type: string
          pattern: ^#[0-9A-Fa-f]{6}$
          maxLength: 7
        strip_color:
          type: string
          maxLength: 7
        logo_text:
          type: string
          maxLength: 64
        suppress_strip_shine:
          type: boolean
        description:
          type: string
          maxLength: 255
        logo:
          type: string
          format: uri
          pattern: (?:png|jpg|jpeg)$
        logo_2x:
          type: string
          format: uri
          readOnly: true
          nullable: true
        logo_1x:
          type: string
          format: uri
          readOnly: true
          nullable: true
        icon:
          type: string
          format: uri
          pattern: (?:png|jpg|jpeg)$
        icon_2x:
          type: string
          format: uri
          readOnly: true
          nullable: true
        icon_1x:
          type: string
          format: uri
          readOnly: true
          nullable: true
        strip_image:
          type: string
          format: uri
          nullable: true
          pattern: (?:png|jpg|jpeg)$
        strip_image_2x:
          type: string
          format: uri
          readOnly: true
          nullable: true
        strip_image_1x:
          type: string
          format: uri
          readOnly: true
          nullable: true
    LoyaltyAppleDesign:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        loyalty:
          type: integer
          readOnly: true
        background_color:
          type: string
          pattern: ^#[0-9A-Fa-f]{6}$
          maxLength: 7
        foreground_color:
          type: string
          pattern: ^#[0-9A-Fa-f]{6}$
          maxLength: 7
        label_color:
          type: string
          pattern: ^#[0-9A-Fa-f]{6}$
          maxLength: 7
        strip_color:
          type: string
          maxLength: 7
        logo_text:
          type: string
          maxLength: 64
        suppress_strip_shine:
          type: boolean
        description:
          type: string
          maxLength: 255
        logo:
          type: string
          format: uri
          pattern: (?:png|jpg|jpeg)$
        logo_2x:
          type: string
          format: uri
          readOnly: true
          nullable: true
        logo_1x:
          type: string
          format: uri
          readOnly: true
          nullable: true
        icon:
          type: string
          format: uri
          pattern: (?:png|jpg|jpeg)$
        icon_2x:
          type: string
          format: uri
          readOnly: true
          nullable: true
        icon_1x:
          type: string
          format: uri
          readOnly: true
          nullable: true
        strip_image:
          type: string
          format: uri
          nullable: true
          pattern: (?:png|jpg|jpeg)$
        strip_image_2x:
          type: string
          format: uri
          readOnly: true
          nullable: true
        strip_image_1x:
          type: string
          format: uri
          readOnly: true
          nullable: true
      required:
        - icon
        - icon_1x
        - icon_2x
        - id
        - logo
        - logo_1x
        - logo_2x
        - loyalty
        - strip_image_1x
        - strip_image_2x
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````