# Update Contract Party — fynk

> Update the details of a party associated with a contract in Fynk. See the documentation.

- Key: `fynk-update-contract-party`
- Type: Action (Write)
- Version: 0.0.1
- App: fynk (`fynk`) — https://pipedream.com/apps/fynk.md
- This page (HTML): https://pipedream.com/apps/fynk/actions/update-contract-party
- Hints: destructive · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/fynk/actions/update-contract-party/update-contract-party.mjs

## Description

Update the details of a party associated with a contract in Fynk. [See the documentation](https://app.fynk.com/v1/docs#/operations/v1.documents.parties.update).

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `documentUuid` | `string` | Yes | The document to operate on Options are loaded from the connected account. |
| `partyUuid` | `string` | Yes | The party to operate on Options are loaded from the connected account. |
| `reference` | `string` | No | A generic reference for the party |
| `entityType` | `string` | No | What kind of entity this party represents |
| `entityName` | `string` | No | The actual name of the party (i.e., name of the company or person). Must be non-null in order for the document to proceed to the signing stage |
| `address` | `string` | No | The party's address |
| `scope` | `string` | No | When this is internal_and_external, collaborators from this party may change the party's information |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
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 accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_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": "fynk",
      },
    },
  },
)

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: "fynk-update-contract-party",
  arguments: {
    documentUuid: "Document",
    partyUuid: "Party",
  },
})
```

**TypeScript**

```ts
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: "fynk-update-contract-party",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    fynk: { authProvisionId: "apn_xxxxxxx" },
    documentUuid: "Document",
    partyUuid: "Party",
  },
})

console.log(result)
```

**cURL**

```bash
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": "fynk-update-contract-party",
    "configured_props": {
      "fynk": { "authProvisionId": "apn_xxxxxxx" },
      "documentUuid": "Document",
      "partyUuid": "Party"
    }
  }'
```

---

- App: https://pipedream.com/apps/fynk.md · All apps: https://pipedream.com/apps
