added
2024-05-07
5 months ago by Ruslan Kotowski
Release of group and ungroup methods in REST API
Following the release on our Web SDK, Miro REST API now also supports grouping and ungrouping of items on a board.
With this release, methods such as group and ungroup, along with a few others, are now available in the REST API. You can now use these methods to programmatically group individual items together using REST API.
Example of creating a group of two items
curl --request POST \
--url https://api.miro.com/v2/boards/uXjVOfjmfkE%3D/groups \
--header 'accept: application/json' \
--header 'authorization: Bearer access_token' \
--header 'content-type: application/json' \
--data '
{
"data": {
"items": [
"3458764517517852417",
"3458764517517852417"
]
}
}
'
Example of ungrouping items
curl --request DELETE \
--url https://api.miro.com/v2/boards/uXjVOfjmfkE%3D/groups/3858764584681774600 \
--header 'accept: application/json' \
--header 'authorization: Bearer access_token'
For more details on these new methods, refer to our documentation on the group and ungroup methods.