English
English
Appearance
English
English
Appearance
https://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.
Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Replizaddon:write| Parameter | Type | Required | Description |
|---|---|---|---|
boardId | string | Yes | ID of the board, the id from Get Pinterest Board. |
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | Yes | ID of the Pinterest account the board belongs to, the _id from Get Account. |
name | string | Yes | Name of the board, up to 100 characters. Pinterest rejects a name already used by another board of the account. |
description | string | No | Description 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.
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"
}'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',
},
},
);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',
}),
});// No content returned on success{
"code": 400,
"message": "invalid account type"
}{
"code": 404,
"message": "account not found"
}{
"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.