The board ID of the Pin, can be obtained when fetching the channel details with the following query:
query GetChannelWithSubprofiles {
channel(input: { id: "[CHANNEL_ID_HERE]" }) {
metadata {
... on PinterestMetadata {
boards {
serviceId
}
}
}
}
}
Required on create; optional on edit (omitted preserves existing board).