How to enumerate release media ids

Hi. The process of adding TOC is somehow manual:

https://musicbrainz.org/cdtoc/attach?toc=<MBTOC>&filter-release.query=<MBID>

To have added it programmatically, I need also media IDs for all volumes:

https://musicbrainz.org/cdtoc/attach?toc=<MBTOC>&filter-release.query=<MBID>&medium=<MEDIUMID>

But the MEDIUMID numbers are missing from release record sent by API

2 Likes

This is because the endpoint /cdtoc/attach isn’t part of the API.
For example - from @outsidecontext - Picard is opening the web UI for that.

1 Like

So the only known option to gather media IDs is to extract them from web page?

No, you are just not supposed to call this internal endpoint, so you don’t need any medium ID.