Skip to content

Update Pinterest Board ​

PUThttps://api.repliz.com/public/addon/pinterest/board/{boardId}

Renames a board of a connected Pinterest account or changes its description. Its pins stay in the board, and schedules that post to it keep working.

Endpoint Details ​

  • Authentication: Basic Auth (Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Repliz
  • Scope (Bearer only): addon:write
  • Access Tier: Premium+

Parameters ​

ParameterTypeRequiredDescription
boardIdstringYesID of the board, the id from Get Pinterest Board.

Request Body ​

FieldTypeRequiredDescription
accountIdstringYesID of the Pinterest account the board belongs to, the _id from Get Account.
namestringYesName of the board, up to 100 characters. Pinterest rejects a name already used by another board of the account.
descriptionstringNoDescription of the board, up to 800 characters. Left out or empty, the current description is cleared.

Send both fields every time: the board gets exactly what you send. To keep the current description, send it back as it is in Get Pinterest Board.

Example Request ​

bash
curl -X PUT "https://api.repliz.com/public/addon/pinterest/board/1006921296753698211" \
  -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "680affa5ce12f2f72916f67e",
    "name": "Social Media Growth",
    "description": "Ideas to grow your social media accounts"
  }'
javascript
import axios from 'axios';

const boardId = '1006921296753698211';

await axios.put(
  `https://api.repliz.com/public/addon/pinterest/board/${boardId}`,
  {
    accountId: '680affa5ce12f2f72916f67e',
    name: 'Social Media Growth',
    description: 'Ideas to grow your social media accounts',
  },
  {
    auth: {
      username: 'YOUR_ACCESS_KEY',
      password: 'YOUR_SECRET_KEY',
    },
  },
);
javascript
const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const boardId = '1006921296753698211';

await fetch(`https://api.repliz.com/public/addon/pinterest/board/${boardId}`, {
  method: 'PUT',
  headers: {
    Authorization: `Basic ${credentials}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    accountId: '680affa5ce12f2f72916f67e',
    name: 'Social Media Growth',
    description: 'Ideas to grow your social media accounts',
  }),
});

Response ​

json
// No content returned on success
json
{
  "code": 400,
  "message": "invalid account type"
}
json
{
  "code": 404,
  "message": "account not found"
}
json
{
  "code": 401,
  "message": "unauthorized"
}

Errors from Pinterest, such as a board that doesn't belong to the account, come back with Pinterest's status code and message.

Schedules that were already created keep the board name they had, as additionalInfo.channel.name. They still post to the right board, because Repliz uses its id.