View as Markdown
Slab icon

Slab ACTION

Update Post

Update a post's metadata and access settings via the updatePost GraphQL mutation, returning the updated post object. Manages link access (sharing), owner, archived/published state, and banner. NOTE: this mutation does NOT change title or content; use Update Post Content for the body (there is no title-update field in the schema). Run Search Posts first to obtain the post ID. Example: postId abc123, archived true returns {"id":"abc123","title":"Q3 Onboarding Guide","archivedAt":"2026-01-01T00:00:00Z","linkAccess":"INTERNAL"}. See the documentation.
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Slab account once, then configure and run Update Post from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "slab-update-post",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    slab: { authProvisionId: "apn_xxxxxxx" },
    postId: "Post ID",
    linkAccess: "Link Access",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Update Post inputs
Property Type Description
postId Post ID string
ID of the post to update. Run Search Posts first to obtain the ID.
Required
linkAccess Link Access string
Share-link access level (PostLinkAccess enum). One of: DISABLED, INTERNAL, INTERNAL_VIEW, PUBLIC, PUBLIC_EDIT.
Optional
ownerId Owner ID string
ID of the user to set as the post owner. Run List Users first to obtain a valid ID (e.g. u1).
Optional
archived Archived boolean
Set to true to archive the post, false to unarchive. Reversible.
Optional
published Published boolean
Set to true to publish the post, false to unpublish.
Optional
bannerUrl Banner URL string
URL of a banner image to set on the post.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
slab-update-post
Version
0.0.1
App
Slab
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes