I’m trying to programatically set topics with the API, but I do not know how to format the array for Gitlab to understand my request.
curl --request PUT --header "PRIVATE-TOKEN: TOKEN" \ --url 'https://gitlab.INSTANCE.com/api/v4/projects/2461' \ -d "topics=Marked for archival,Missing info"
It seems I need to convert the array I’m receiving from the API into this weird comma separated string, but this is far from intuitive or ideal since it means I need to make changes to the data that I initially received from the API in the first place (the data is properly json formatted as a string). What other options do I have here? I would prefer sending over a json formatted array to not mess up any topics that are already set.