View as Markdown
Peerdom icon

Peerdom ACTION

Assign Member to Role

Assigns a member to a role within a circle using the Peerdom API. See the documentation
  • Action
  • Writes data
  • Destructive
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Peerdom account once, then configure and run Assign Member to Role 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: "peerdom-assign-member-to-role",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    peerdom: { authProvisionId: "apn_xxxxxxx" },
    roleId: "Role ID",
    memberId: "Member ID",
  },
})

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.

Assign Member to Role inputs
Property Type Description
roleId Role ID string
ID of role to update.
Required Dynamic
memberId Member ID string
The ID of the member
Required Dynamic
percentage Percentage integer
The percentage of the role assigned to the member
Optional
focus Focus string
The focus of the role assigned to the member
Optional
electedUntil Elected Until string
The date until which the member is elected to the role (YYYY-MM-DD)
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
peerdom-assign-member-to-role
Version
0.0.2
App
Peerdom
Authentication
API key
Read-only
No
Destructive
Yes
Open world
Yes