English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/addon/pinterest/board/{boardId}Deletes a board of a connected Pinterest account.
Pins are deleted too
Pinterest deletes every pin in the board along with it, and it can't be undone. Schedules that still post to the board fail when they run.
Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Replizaddon:write| Parameter | Type | Required | Description |
|---|---|---|---|
boardId | string | Yes | ID of the board to remove, the id from Get Pinterest Board. |
accountId | string | Yes | ID of the Pinterest account the board belongs to, the _id from Get Account. Sent in the query string. |
curl -X DELETE "https://api.repliz.com/public/addon/pinterest/board/1006921296753698211?accountId=680affa5ce12f2f72916f67e" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"import axios from 'axios';
const boardId = '1006921296753698211';
await axios.delete(`https://api.repliz.com/public/addon/pinterest/board/${boardId}`, {
params: {
accountId: '680affa5ce12f2f72916f67e',
},
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}?accountId=680affa5ce12f2f72916f67e`,
{
method: 'DELETE',
headers: {
Authorization: `Basic ${credentials}`,
},
},
);// 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 was already deleted, come back with Pinterest's status code and message.