# Create loyalty club oauth2 client

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/loyalty_clubs/oauth2/clients:
    post:
      summary: Create loyalty club oauth2 client
      deprecated: false
      description: ''
      tags:
        - API Reference/Management API/Core/OAuth2/Clients
      parameters:
        - 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'
              x-apidog-orders:
                - client
              required:
                - client
              x-apidog-ignore-properties: []
            example:
              client:
                confidential: true
                redirect_uris:
                  - https://back-mathematics.biz/
                  - https://tangible-dividend.name/
                  - https://spirited-habit.us
                post_logout_redirect_uris:
                  - https://zany-juggernaut.name/
                  - https://inconsequential-concentration.com
                  - https://elementary-gown.biz
                scopes:
                  - offline_access
                application_identifier: qv
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  client:
                    $ref: '#/components/schemas/Oauth2Client'
                x-apidog-orders:
                  - client
                required:
                  - client
                x-apidog-ignore-properties: []
              example:
                client:
                  id: a6dc9b44-de62-4a18-b47f-54c6516277d4
                  confidential: true
                  redirect_uris:
                    - https://suburban-ice-cream.us
                    - https://clear-cut-flu.us/
                    - https://striking-underpants.info
                  post_logout_redirect_uris:
                    - https://charming-developmental.org
                    - https://vengeful-video.info
                    - https://well-made-scrap.name/
                  scopes:
                    - openid
                    - offline_access
                  secret: 0eq_p3lykmX73jpU
                  loyalty_club_id: 64
                  application_identifier: jpx
          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-3954475-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: []

```