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

# resubscribe-external-event-subscription

> Re-register the subscription with the external provider (unsubscribe, then subscribe again) so it points at the current webhook URL. Use this to fix a subscription whose `test` verdict is `stale` (provider holds an old URL) or `not_subscribed`; after it succeeds, run `test-external-event-subscription` to confirm the verdict is now `live`. Returns the refreshed subscription.



## OpenAPI

````yaml /api-reference/membrane-api.json post /external-event-subscriptions/{id}/resubscribe
openapi: 3.0.0
info:
  title: Membrane API
  description: API documentation for Membrane Engine
  version: '1.0'
  contact: {}
servers:
  - url: https://api.getmembrane.com
security:
  - bearer: []
tags: []
paths:
  /external-event-subscriptions/{id}/resubscribe:
    post:
      tags:
        - ExternalEventSubscriptions
      summary: resubscribe-external-event-subscription
      description: >-
        Re-register the subscription with the external provider (unsubscribe,
        then subscribe again) so it points at the current webhook URL. Use this
        to fix a subscription whose `test` verdict is `stale` (provider holds an
        old URL) or `not_subscribed`; after it succeeds, run
        `test-external-event-subscription` to confirm the verdict is now `live`.
        Returns the refreshed subscription.
      operationId: resubscribeExternalEventSubscription
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            description: External event subscription id to re-subscribe.
      responses:
        '200':
          description: >-
            Re-register the subscription with the external provider
            (unsubscribe, then subscribe again) so it points at the current
            webhook URL. Use this to fix a subscription whose `test` verdict is
            `stale` (provider holds an old URL) or `not_subscribed`; after it
            succeeds, run `test-external-event-subscription` to confirm the
            verdict is now `live`. Returns the refreshed subscription.
          content:
            application/json:
              schema:
                type: object
                properties:
                  userId:
                    type: string
                  tenantId:
                    type: string
                  ownerName:
                    type: string
                    nullable: true
                  id:
                    type: string
                  name:
                    type: string
                  description:
                    type: string
                  connectionId:
                    type: string
                  integrationId:
                    type: string
                  externalEventTypeId:
                    type: string
                  config:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - data-record-created
                          - data-record-updated
                          - data-record-deleted
                          - connector-event
                      dataSource:
                        type: object
                        properties:
                          key: {}
                          collectionKey: {}
                          collectionParameters: {}
                          pullUpdatesIntervalSeconds:
                            type: number
                          fullSyncIntervalSeconds:
                            type: number
                        additionalProperties: false
                      eventKey:
                        type: string
                      eventParameters: {}
                    required:
                      - type
                    additionalProperties: false
                  status:
                    type: string
                    enum:
                      - subscribed
                      - unsubscribed
                      - error
                  error:
                    allOf:
                      - type: object
                  state:
                    type: string
                    enum:
                      - BUILDING
                      - CLIENT_ACTION_REQUIRED
                      - CONFIGURATION_ERROR
                      - SETUP_FAILED
                      - READY
                      - DISCONNECTING
                  buildingAgentSessionId:
                    type: string
                  isRealTime:
                    type: boolean
                  requiresPull:
                    type: boolean
                  requiresFullSync:
                    type: boolean
                  createdAt:
                    type: string
                  archivedAt:
                    type: string
                  isDeactivated:
                    type: boolean
                  stateData: {}
                  nextPullEventsTimestamp:
                    type: number
                  pullUpdatesIntervalSeconds:
                    type: number
                  fullSyncIntervalSeconds:
                    type: number
                  nextRefreshTimestamp:
                    type: number
                  incomingWebhookUri:
                    type: string
                  subscribedWebhookUri:
                    type: string
                  lastReceivedAt: {}
                  lastEventAt: {}
                  webhookUri:
                    type: string
                  logoUri:
                    description: >-
                      Resolved app logo for this element (integration ->
                      connector -> external app -> favicon).
                    type: string
                required:
                  - userId
                  - id
                additionalProperties: false
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````