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

# Change a post status

> Move a root post between draft and scheduled state and update its Temporal workflow.



## OpenAPI

````yaml /api-reference/openapi.json put /public/v1/workspaces/{workspaceId}/posts/{id}/status
openapi: 3.0.0
info:
  title: PostlyBee Public API
  description: >-
    Connect accounts, create and manage social posts, inspect analytics and
    notifications, and upload media with the PostlyBee Public API.
  version: 1.0.0
  contact:
    name: PostlyBee Support
    url: https://postlybee.com
    email: support@postlybee.com
  license:
    name: Proprietary
    url: https://postlybee.com/terms
servers:
  - url: https://api.postlybee.com
    description: Production
security: []
tags:
  - name: Workspaces
    description: List workspaces available to the API token.
  - name: Posts
    description: Create, list, update, and delete social posts.
  - name: Media
    description: Upload media and use enabled video generators.
  - name: Accounts
    description: Discover connected social accounts.
  - name: Analytics
    description: Inspect account and published-post performance.
  - name: Notifications
    description: List workspace notifications.
  - name: Utilities
    description: Verify access and find posting slots.
paths:
  /public/v1/workspaces/{workspaceId}/posts/{id}/status:
    put:
      tags:
        - Posts
      summary: Change a post status
      description: >-
        Move a root post between draft and scheduled state and update its
        Temporal workflow.
      operationId: changePostStatus
      parameters:
        - name: id
          required: true
          in: path
          description: Root post ID.
          schema:
            type: string
        - name: workspaceId
          required: true
          in: path
          description: Workspace ID returned by GET /public/v1/workspaces.
          schema: {}
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicApiChangePostStatusRequestDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiPostStatusDto'
        '401':
          description: The bearer token is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiErrorDto'
        '429':
          description: Hourly API limit exceeded.
      security:
        - public-api: []
components:
  schemas:
    PublicApiChangePostStatusRequestDto:
      type: object
      properties:
        status:
          type: string
          enum:
            - draft
            - schedule
          example: schedule
      required:
        - status
    PublicApiPostStatusDto:
      type: object
      properties:
        id:
          type: string
          example: clz8v2f6r0001k9p8t5m3w7q1
        state:
          type: string
          enum:
            - DRAFT
            - QUEUE
          example: QUEUE
      required:
        - id
        - state
    PublicApiErrorDto:
      type: object
      properties:
        msg:
          type: string
          example: Invalid API token
      required:
        - msg
  securitySchemes:
    public-api:
      scheme: bearer
      bearerFormat: API token
      type: http
      description: >-
        User API token from Settings → Public API. Access is restricted by
        scopes and workspace selection.

````