💻 Environment/Context
- API
- Tags
If you're unable to follow any of the steps below, kindly reach out to your admin or refer to the Account Type Permissions Overview article for more information.
❓ Issue/Question
- How can I merge tags using the ScorePlay API?
- How do I find the ID of a tag to use it in the API?
👌 Resolution/Answer
- Get your API key
-
Find the ID of each tag
- Send a
GETrequest tohttps://media.scoreplay.io/v1/tag/options?query=<tag name>with your API key in theX-ScorePlay-Api-Keyheader - Copy the
IDof each tag from the response
- Send a
-
Merge the tags
- Send a
POSTrequest tohttps://media.scoreplay.io/v1/tag/options/mergewith the same header - In the body, add the IDs of the tags to merge in
tag_option_idsand the ID of the tag to keep indestination_tag_option_id, for example{"tag_option_ids": [123, 456], “destination_tag_option_id”: 101} - A response of
truemeans the merge worked
- Send a
🔖 Notes
- The tags in
tag_option_idsare deleted after the merge, and all their media gets the destination tag - For the full details of each endpoint, see the ScorePlay API documentation: https://developer.scoreplay.io/api-reference/
- How to merge duplicate tags?