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

# Cancel a scheduled Social Selling post

> Cancel a scheduled Social Selling post before it is published: its schedule is stopped and the post, with its scheduled reactions and comments, is deleted from Enginy. Refused (409) once its publish time has come or for a post that was not scheduled, and (503, post kept) when the schedule cannot be stopped right now — retry later. Nothing is removed from LinkedIn.

    > **Required scope:** `SOCIAL_SELLING_WRITE`
    >
    > **Rate limit:** 30 requests per minute



## OpenAPI

````yaml https://openapi.enginy.ai/definitions.json delete /v1/social-selling/scheduled-posts/{publishingPostId}
openapi: 3.1.0
info:
  title: Enginy API
  version: 1.0.0
  description: Public API for Enginy platform
servers:
  - url: https://openapi.enginy.ai
    description: Configured server
security: []
tags:
  - name: AI Variables
    description: >-
      Manage AI variables and discover the entity fields you can reference in
      prompts and entity requests.
  - name: Inbox
    description: >-
      Inbox endpoints for listing contact threads, reading thread messages,
      managing tags, and sending manual replies.
  - name: Workflows
    description: >-
      Build, validate, publish, run, and inspect advanced (graph) workflows,
      plus the block/condition catalog needed to author a workflow plan.
paths:
  /v1/social-selling/scheduled-posts/{publishingPostId}:
    delete:
      tags:
        - Social Selling
      summary: Cancel a scheduled Social Selling post
      description: >-
        Cancel a scheduled Social Selling post before it is published: its
        schedule is stopped and the post, with its scheduled reactions and
        comments, is deleted from Enginy. Refused (409) once its publish time
        has come or for a post that was not scheduled, and (503, post kept) when
        the schedule cannot be stopped right now — retry later. Nothing is
        removed from LinkedIn.

            > **Required scope:** `SOCIAL_SELLING_WRITE`
            >
            > **Rate limit:** 30 requests per minute
      parameters:
        - schema:
            type: integer
            exclusiveMinimum: 0
            description: >-
              The scheduled post (`publishingPostId` of the scheduled posts
              list).
          required: true
          description: The scheduled post (`publishingPostId` of the scheduled posts list).
          name: publishingPostId
          in: path
      responses:
        '200':
          description: Post cancelled and deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      publishingPostId:
                        type: number
                      cancelled:
                        type: boolean
                        enum:
                          - true
                    required:
                      - publishingPostId
                      - cancelled
                required:
                  - status
                  - message
                  - data
        '400':
          description: Non-numeric `publishingPostId`
        '403':
          description: >-
            Social Selling is not enabled for this workspace. Ask your workspace
            admin to enable the feature.
        '404':
          description: >-
            Post not found in this workspace, or outside the caller’s identity
            scope
        '409':
          description: The post is already published or publishing, or it was not scheduled
        '503':
          description: >-
            The schedule could not be stopped right now; the post was kept.
            Retry later
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````

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