# Update Event

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/enkash-coins/{coinConfigId}:
    patch:
      summary: Update Event
      deprecated: false
      description: Update Coin Event Configuration
      tags:
        - Rewards & Incentives/APIs - Reward/Point Management
      parameters:
        - name: coinConfigId
          in: path
          description: Coin Configuration ID
          required: true
          example: WCC12345
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Cookie
          in: header
          description: ''
          required: true
          example: >-
            _cfuvid=HYP8bzh65tyJdOQA3SszmnkR5ESGtAs.KQDRP5INTTg-1720761030734-0.0.1.1-604800000;
            JSESSIONID=2965781B20AA96A7AA6BF5631B3BBDD8
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                amount:
                  type: integer
                  description: amount for coins
                configuration:
                  type: object
                  properties:
                    CUSTOM:
                      type: string
                  x-apidog-orders:
                    - CUSTOM
                  required:
                    - CUSTOM
                  description: To be kept as CUSTOM enum.
                companyId:
                  type: string
                  description: Company Id of the company for which coin event is configured
                event:
                  type: string
                  description: Event Name
              x-apidog-orders:
                - amount
                - configuration
                - companyId
                - event
            example:
              amount: 10
              configuration: DEFAULT
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  payload:
                    type: object
                    properties:
                      coinConfigId:
                        type: string
                      configuration:
                        type: string
                      event:
                        type: string
                      amount:
                        type: integer
                    required:
                      - coinConfigId
                      - configuration
                      - event
                      - amount
                    x-apidog-orders:
                      - coinConfigId
                      - configuration
                      - event
                      - amount
                  response_code:
                    type: integer
                  response_message:
                    type: string
                required:
                  - payload
                  - response_code
                  - response_message
                x-apidog-orders:
                  - payload
                  - response_code
                  - response_message
              example:
                payload:
                  coinConfigId: WCC024845
                  configuration: DEFAULT
                  event: INVOICE_PAYMENT
                  amount: 10
                response_code: 0
                response_message: Success
          headers: {}
          x-apidog-name: Success
      security:
        - bearer: []
      x-apidog-folder: Rewards & Incentives/APIs - Reward/Point Management
      x-apidog-status: developing
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-9796916-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
