# Set default Pinterest board

Sets a default Pinterest board.

```http
PUT https://api.pozy.ai/v1/accounts/{accountId}/pinterest-boards
```

- Area: Accounts & connections / Connect
- Auth: Authorization: Bearer pz_live_...

## Path parameters

- `accountId` (string, required)

## Request body

Content type: `application/json`

- `defaultBoardId`, string, required
- `defaultBoardName`, string

## Example request

```bash
curl -X PUT "https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/pinterest-boards" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "defaultBoardId": "6487bc0cd1959991a058ef1d"
}'
```

```ts
const res = await fetch("https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/pinterest-boards", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.POZY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    defaultBoardId: "6487bc0cd1959991a058ef1d"
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.put(
    "https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/pinterest-boards",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "defaultBoardId": "6487bc0cd1959991a058ef1d",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `message`, string
- `account`, object
  - `_id`, string, required
  - `platform`, string, required: One of `tiktok`, `instagram`, `facebook`, `youtube`, `linkedin`, `twitter`, `threads`, `pinterest`, `reddit`, `bluesky`, `googlebusiness`, `telegram`, `snapchat`, `discord`, `slack`, `whatsapp`, `shopify`, `wordpress`, `wix`, `linkedinads`, `metaads`, `pinterestads`, `tiktokads`, `xads` and 15 more
  - `profileId`, string or object, required
    - one of: string
    - one of: Profile
      - `_id`, string
      - `userId`, string
      - `name`, string
      - `description`, string
      - `color`, string
      - `timezone`, string: Can be null
      - `externalId`, string: Can be null
      - `isDefault`, boolean
      - `isOverLimit`, boolean
      - `accountCount`, integer
      - `createdAt`, string (date-time)
  - `username`, string
  - `displayName`, string
  - `platformUserId`, string
  - `scopeAreas`, array of string: Can be null
  - `oauthAppId`, string: Can be null
  - `tiktokAccountType`, string: One of `business`, `personal`, `unknown`
  - `profilePicture`, string: Can be null
  - `profileUrl`, string
  - `isActive`, boolean, required
  - `needsReconnection`, boolean
  - `followersCount`, number
  - `followersLastUpdated`, string (date-time)
  - `parentAccountId`, string: Can be null
  - `enabled`, boolean
  - `rateLimitedUntil`, string (date-time): Can be null
  - `metadata`, object

```json
{
  "message": "Hello from Pozy",
  "account": {
    "_id": "635d87e261ae344ef27fd1df",
    "platform": "tiktok",
    "profileId": "6a0b6573846efc28aaa9a3ff",
    "username": "acme",
    "displayName": "Acme",
    "platformUserId": "60c5beb6ca4037bb9ff5117a",
    "scopeAreas": [
      "string"
    ],
    "oauthAppId": "629a39de8c0a63af5a05067c",
    "tiktokAccountType": "business",
    "profilePicture": "string",
    "profileUrl": "https://pozy.ai/media/example-1.jpg",
    "isActive": true,
    "needsReconnection": true,
    "followersCount": 12.5,
    "followersLastUpdated": "2026-10-02T09:00:00.000Z",
    "parentAccountId": "6ce971ffa48fe63468db336b",
    "enabled": true,
    "rateLimitedUntil": "2026-10-02T09:00:00.000Z",
    "metadata": {}
  }
}
```
