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

# Cancel Schedule

> Cancel scheduled publication; reverts the discussion to draft state.

hub_id is sourced from the query string — mirrors sibling action routes.

Returns 204 No Content on success.
Returns 403 when the caller is not the author or is banned.
Returns 404 when the discussion does not exist.
Returns 409 when the discussion is already published (race: worker beat the request).



## OpenAPI

````yaml /openapi/mio-openapi.json delete /api/v1/discussions/{discussion_id}/schedule
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/discussions/{discussion_id}/schedule:
    delete:
      tags:
        - community-discussions
      summary: Cancel Schedule
      description: >-
        Cancel scheduled publication; reverts the discussion to draft state.


        hub_id is sourced from the query string — mirrors sibling action routes.


        Returns 204 No Content on success.

        Returns 403 when the caller is not the author or is banned.

        Returns 404 when the discussion does not exist.

        Returns 409 when the discussion is already published (race: worker beat
        the request).
      operationId: >-
        community_discussions.delete_community_discussions_delete_discussions_by_discussion_id_schedule
      parameters:
        - in: path
          name: discussion_id
          required: true
          schema:
            title: Discussion Id
            type: string
        - in: query
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
      responses:
        '204':
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      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
  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

````