# Update loyalty club oauth2 client

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/loyalty_clubs/oauth2/clients/{id}:
    put:
      summary: Update loyalty club oauth2 client
      deprecated: false
      description: ''
      tags:
        - API Reference/Management API/Core/OAuth2/Clients
      parameters:
        - name: id
          in: path
          description: ''
          required: true
          schema:
            type: string
            pattern: ^[a-z0-9-]+
        - name: Content-Type
          in: header
          description: '[Details](doc-341635)'
          required: true
          example: application/json
          schema:
            type: string
            default: application/json
            const: application/json
        - name: X-User-Agent
          in: header
          description: Arbitrary identifier of your client. [Details](doc-341635)
          required: true
          example: '{{X_USER_AGENT}}'
          schema:
            type: string
            default: '{{X_USER_AGENT}}'
        - name: X-Product-Name
          in: header
          description: API Product for API context. [Details](doc-341635)
          required: true
          example: '{{PRODUCT_NAME}}'
          schema:
            type: string
            default: '{{PRODUCT_NAME}}'
        - name: X-Loyalty-Club-Slug
          in: header
          description: LoyaltyClub for API context. [Details](doc-342138)
          required: false
          example: '{{LOYALTY_CLUB_SLUG}}'
          schema:
            type: string
            default: '{{LOYALTY_CLUB_SLUG}}'
        - name: Authorization
          in: header
          description: '[Member](doc-342129) or [User](doc-342130) Authorization.'
          required: false
          example: Bearer {{_OAUTH_TOKEN}}
          schema:
            type: string
            default: Bearer {{_OAUTH_TOKEN}}
        - name: X-Client-Authorization
          in: header
          description: '[Token](doc-342128) Authorization.'
          example: '{{API_TOKEN}}'
          schema:
            type: string
            default: '{{API_TOKEN}}'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                client:
                  $ref: '#/components/schemas/Oauth2ClientPayload'
              required:
                - client
              x-apidog-orders:
                - client
              x-apidog-ignore-properties: []
            example:
              client:
                confidential: false
                redirect_uris:
                  - https://taut-ceramics.us
                  - https://innocent-dredger.biz/
                  - https://orange-help.net
                post_logout_redirect_uris:
                  - https://sunny-coin.info
                  - https://unlucky-strait.org
                scopes:
                  - openid
                  - openid
                  - offline_access
                application_identifier: cvhsfcbvo
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  client:
                    properties:
                      id:
                        type: string
                        x-apidog-mock: '{{$string.uuid}}'
                      confidential:
                        type: boolean
                        default: false
                      redirect_uris:
                        type: array
                        items:
                          type: string
                          x-apidog-mock: '{{$internet.url}}'
                      post_logout_redirect_uris:
                        type: array
                        items:
                          type: string
                          x-apidog-mock: '{{$internet.url}}'
                      scopes:
                        type: array
                        items:
                          type: string
                          examples:
                            - openid
                            - offline_access
                      secret:
                        type: string
                        default: '*******'
                      loyalty_club_id:
                        type: integer
                      application_identifier:
                        type: string
                    x-apidog-orders:
                      - id
                      - confidential
                      - redirect_uris
                      - post_logout_redirect_uris
                      - scopes
                      - secret
                      - loyalty_club_id
                      - application_identifier
                    required:
                      - id
                      - confidential
                      - redirect_uris
                      - post_logout_redirect_uris
                      - scopes
                      - secret
                      - loyalty_club_id
                      - application_identifier
                    $ref: '#/components/schemas/Oauth2Client'
                x-apidog-orders:
                  - client
                required:
                  - client
                x-apidog-ignore-properties: []
              example:
                clients:
                  id: 5cb8044f-2f58-4621-9669-6445ebcff0dc
                  confidential: false
                  redirect_uris:
                    - https://sparse-bookcase.name/
                  post_logout_redirect_uris:
                    - https://unwilling-invite.org/
                  scopes:
                    - offline_access
                    - openid
                    - openid
                  secret: null
                  loyalty_club_id: 33
                  application_identifier: kwsda
          headers: {}
          x-apidog-name: OK
      security: []
      x-apidog-folder: API Reference/Management API/Core/OAuth2/Clients
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/346351/apis/api-3954476-run
components:
  schemas:
    Oauth2ClientPayload:
      type: object
      properties:
        confidential:
          type: boolean
          default: false
        redirect_uris:
          type: array
          items:
            type: string
            x-apidog-mock: '{{$internet.url}}'
        post_logout_redirect_uris:
          type: array
          items:
            type: string
            x-apidog-mock: '{{$internet.url}}'
        scopes:
          type: array
          items:
            type: string
            examples:
              - openid
              - offline_access
            pattern: '[a-z_]+'
        application_identifier:
          type: string
          pattern: '[a-z_]+'
      x-apidog-orders:
        - confidential
        - redirect_uris
        - post_logout_redirect_uris
        - scopes
        - application_identifier
      required:
        - confidential
        - redirect_uris
        - post_logout_redirect_uris
        - scopes
        - application_identifier
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Oauth2Client:
      type: object
      properties:
        id:
          type: string
          x-apidog-mock: '{{$string.uuid}}'
        confidential:
          type: boolean
          default: false
        redirect_uris:
          type: array
          items:
            type: string
            x-apidog-mock: '{{$internet.url}}'
        post_logout_redirect_uris:
          type: array
          items:
            type: string
            x-apidog-mock: '{{$internet.url}}'
        scopes:
          type: array
          items:
            type: string
            examples:
              - openid
              - offline_access
            pattern: ^[a-z_]+
            enum:
              - offline_access
              - openid
            x-apidog-enum:
              - value: offline_access
                name: ''
                description: ''
              - value: openid
                name: ''
                description: ''
        secret:
          type: string
          pattern: ^[A-Za-z0-9_-]{8,}
          nullable: true
        loyalty_club_id:
          type: integer
        application_identifier:
          type: string
          pattern: ^[a-z_]+
      x-apidog-orders:
        - id
        - confidential
        - redirect_uris
        - post_logout_redirect_uris
        - scopes
        - secret
        - loyalty_club_id
        - application_identifier
      required:
        - id
        - confidential
        - redirect_uris
        - post_logout_redirect_uris
        - scopes
        - loyalty_club_id
        - application_identifier
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://api.mpc.dev.placewise.com
    description: Staging
security: []

```