connect
Set default Pinterest board
Sets the default board used when publishing pins for this account.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
accountIdstring
defaultBoardIdstring
defaultBoardName?string
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.connect.updatePinterestBoards({ path: { accountId: 'account_abc123', }, body: { defaultBoardId: 'defaultboard_abc123', },});console.log(data);{
"message": "Default Pinterest board updated successfully",
"account": {
"_id": "64e1f0a9e2b5af0012ab34cd",
"platform": "pinterest",
"username": "mybrand",
"displayName": "My Brand",
"isActive": true
}
}Empty
{
"error": "Unauthorized"
}Empty