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

# Patch Webhook Endpoint



## OpenAPI

````yaml /openapi/mio-openapi.json patch /api/v1/teams/{team_id}/hubs/{hub_id}/webhook-endpoints/{endpoint_id}
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/teams/{team_id}/hubs/{hub_id}/webhook-endpoints/{endpoint_id}:
    patch:
      tags:
        - automations
        - webhook-endpoints
      summary: Patch Webhook Endpoint
      operationId: >-
        automations.patch_automations_patch_teams_by_team_id_hubs_by_hub_id_webhook_endpoints_by_endpoint_id
      parameters:
        - in: path
          name: team_id
          required: true
          schema:
            title: Team Id
            type: string
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
        - in: path
          name: endpoint_id
          required: true
          schema:
            title: Endpoint Id
            type: string
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              additionalProperties: false
              properties:
                data:
                  additionalProperties: false
                  properties:
                    attributes:
                      additionalProperties: false
                      properties:
                        event_types:
                          anyOf:
                            - items:
                                maxLength: 100
                                minLength: 1
                                pattern: ^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$
                                type: string
                              maxItems: 64
                              type: array
                            - type: 'null'
                          title: Event Types
                      title: WebhookEndpointPatchAttributes
                      type: object
                    id:
                      description: >-
                        Optional. When present it must equal the id of the
                        resource this request updates; a different id is a 409
                        resource_id_mismatch and null is a 422.
                      title: Id
                      type: string
                    type:
                      const: webhook_endpoints
                      title: Type
                      type: string
                  required:
                    - type
                    - attributes
                  title: WebhookEndpointPatchResource
                  type: object
              required:
                - data
              title: WebhookEndpointPatchBody
              type: object
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/WebhookEndpointResponse'
          description: Successful Response
        '400':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Webhook request error
        '401':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Webhook request error
        '403':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Webhook request error
        '404':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Webhook request error
        '405':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Webhook request error
          headers:
            Allow:
              schema:
                type: string
        '409':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Webhook request error
        '415':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Webhook request error
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Webhook request error
        '429':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Webhook request error
      security:
        - HTTPBearer: []
components:
  schemas:
    WebhookEndpointResponse:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/WebhookEndpointResource'
      required:
        - data
      title: WebhookEndpointResponse
      type: object
    JsonApiErrorResponse:
      description: Error JSON:API response.
      properties:
        errors:
          items:
            $ref: '#/components/schemas/JsonApiError'
          title: Errors
          type: array
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - errors
      title: JsonApiErrorResponse
      type: object
    WebhookEndpointResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/WebhookEndpointAttributes'
        id:
          title: Id
          type: string
        type:
          const: webhook_endpoints
          default: webhook_endpoints
          title: Type
          type: string
      required:
        - id
        - attributes
      title: WebhookEndpointResource
      type: object
    JsonApiError:
      properties:
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        source:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Source
        status:
          title: Status
          type: string
        title:
          title: Title
          type: string
      required:
        - status
        - title
      title: JsonApiError
      type: object
    WebhookEndpointAttributes:
      additionalProperties: false
      description: |-
        Read-only attributes for a ``webhook_endpoints`` resource.

        ``signing_secret`` is absent from subsequent reads.
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        enabled:
          title: Enabled
          type: boolean
        event_types:
          anyOf:
            - items:
                maxLength: 100
                minLength: 1
                pattern: ^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$
                type: string
              maxItems: 64
              type: array
            - type: 'null'
          title: Event Types
        hub_id:
          title: Hub Id
          type: string
        name:
          title: Name
          type: string
        target_url:
          title: Target Url
          type: string
        team_id:
          title: Team Id
          type: string
        updated_at:
          format: date-time
          title: Updated At
          type: string
      required:
        - team_id
        - hub_id
        - name
        - target_url
        - enabled
        - created_at
        - updated_at
      title: WebhookEndpointAttributes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.