> ## 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.

# Hub Event Calendar Subscription Reset

> Replace the signed-in member's calendar subscription link.

The previous link stops working immediately, so any calendar still using it
stops updating and must subscribe again with the new link. Returns the same
shape as the read route. Returns 404 for anyone who is not a current member,
or when Events is not available to them.



## OpenAPI

````yaml /openapi/mio-openapi.json post /api/v1/hubs/{hub_id}/events/calendar-subscription/reset
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/hubs/{hub_id}/events/calendar-subscription/reset:
    post:
      tags:
        - hub-events
      summary: Hub Event Calendar Subscription Reset
      description: >-
        Replace the signed-in member's calendar subscription link.


        The previous link stops working immediately, so any calendar still using
        it

        stops updating and must subscribe again with the new link. Returns the
        same

        shape as the read route. Returns 404 for anyone who is not a current
        member,

        or when Events is not available to them.
      operationId: >-
        hub_events.post_hub_events_post_hubs_by_hub_id_events_calendar_subscription_reset
      parameters:
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/CalendarSubscriptionResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    CalendarSubscriptionResponse:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/CalendarSubscriptionResource'
      required:
        - data
      title: CalendarSubscriptionResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    CalendarSubscriptionResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/CalendarSubscriptionAttributes'
        id:
          description: The hub id.
          title: Id
          type: string
        type:
          const: hub_event_calendar_subscriptions
          default: hub_event_calendar_subscriptions
          title: Type
          type: string
      required:
        - id
        - attributes
      title: CalendarSubscriptionResource
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    CalendarSubscriptionAttributes:
      additionalProperties: false
      properties:
        feed_url:
          description: >-
            Private calendar feed address. Anyone holding it can read the
            member's event calendar, so it is only ever returned to that member.
          title: Feed Url
          type: string
        google_url:
          description: Opens Google Calendar on its add-by-link step for this feed.
          title: Google Url
          type: string
        outlook_url:
          description: Opens Outlook on its add-from-web step for this feed.
          title: Outlook Url
          type: string
        webcal_url:
          description: >-
            The same feed with a webcal scheme, for Apple Calendar and other
            apps.
          title: Webcal Url
          type: string
      required:
        - feed_url
        - webcal_url
        - google_url
        - outlook_url
      title: CalendarSubscriptionAttributes
      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.