# Add Person Address — Clockwork Recruiting

> Create an address to a specific person. See the documentation

- Key: `clockwork_recruiting-add-person-address`
- Type: Action (Write)
- Version: 0.0.2
- App: Clockwork Recruiting (`clockwork_recruiting`) — https://pipedream.com/apps/clockwork-recruiting.md
- This page (HTML): https://pipedream.com/apps/clockwork-recruiting/actions/add-person-address
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/clockwork_recruiting/actions/add-person-address/add-person-address.mjs

## Description

Create an address to a specific person. [See the documentation](https://app.swaggerhub.com/apis-docs/clockwork-recruiting/cw-public-api/3.0.0#/Person%20Addresses/post_people__person_id__addresses)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `personId` | `string` | Yes | The id of the person you want to use. Options are loaded from the connected account. |
| `city` | `string` | Yes | The address' city. |
| `country` | `string` | No | The address' country. |
| `postalCode` | `string` | No | The address' postal code. |
| `state` | `string` | Yes | The address' state. |
| `street` | `string` | No | The address' street. |
| `street2` | `string` | No | The address' street 2. |
| `location` | `string` | No | The address' type. |
| `regionId` | `string` | No | The address' region Options are loaded from the connected account. |

## 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": "clockwork_recruiting",
      },
    },
  },
)

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: "clockwork_recruiting-add-person-address",
  arguments: {
    personId: "Person Id",
    city: "City",
  },
})
```

**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: "clockwork_recruiting-add-person-address",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    clockwork_recruiting: { authProvisionId: "apn_xxxxxxx" },
    personId: "Person Id",
    city: "City",
  },
})

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": "clockwork_recruiting-add-person-address",
    "configured_props": {
      "clockwork_recruiting": { "authProvisionId": "apn_xxxxxxx" },
      "personId": "Person Id",
      "city": "City"
    }
  }'
```

---

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