# Update Custom Consent

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /customconsent/{customConsentId}:
    put:
      summary: Update Custom Consent
      deprecated: false
      description: >-
        ### Description :

        Custom Consent is voluntary permission given by a customer to a sender
        to receive commercial SMS/MMS related to a specific product, service, or
        purpose. This API helps update the custom consent for a given consentID.
         
        ### URL : 

        https://connect.beetexting.com/prod/customconsent/7890b1408g412234e98d8e14

        (While sending the request please make sure to append
        https://connect.beetexting.com/prod  if the url in the cUrl command
        starts with /message ...)


        **Note : To add the OAuth2.0 Auth Token please see the section 'OAuth2.0
        For Beetexting' and 'Postman How-to for Beetexting section'
      tags:
        - APIs/Consent
      parameters:
        - name: customConsentId
          in: path
          description: Id of the custom consent the details of which we are trying to fetch
          required: true
          example: 6890b1408f412234d99c8e13
          schema:
            type: string
        - name: x-api-key
          in: header
          description: ''
          required: true
          example: HvG7OZaxgz3raDMzX9CYp9105hV9VwDa6zrCS234
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                description:
                  type: string
                active:
                  type: boolean
                restrictionType:
                  type: string
              required:
                - title
                - description
                - active
                - restrictionType
              x-apidog-orders:
                - title
                - description
                - active
                - restrictionType
            example:
              title: satya25032n5
              description: Update description
              active: false
              restrictionType: NOSHOW
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
                x-apidog-orders: []
              example:
                title: string
                description: string
                restrictionType: Valid values [ DISALLOW, SHOW_WARNING, NOSHOW ]
                active: true
          headers: {}
          x-apidog-name: Success
      security:
        - oauth21: []
      x-apidog-folder: APIs/Consent
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1058487/apis/api-21020117-run
components:
  schemas: {}
  securitySchemes:
    oauth21:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: ''
          tokenUrl: ''
          refreshUrl: ''
          scopes: {}
          x-apidog:
            addTokenTo: header
            useTokenType: access_token
            queryParamKey: access_token
            headerPrefix: Bearer
            codeVerifier: ''
            challengeAlgorithm: S256
            authRequestParams: []
            tokenRequestParams: []
servers: []
security: []

```
