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)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "slab-update-post",
"configured_props": {
"slab": { "authProvisionId": "apn_xxxxxxx" },
"postId": "Post ID",
"linkAccess": "Link Access"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "slab",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "slab-update-post",
arguments: {
postId: "Post ID",
linkAccess: "Link Access",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| 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
- Source
- View on GitHub ↗