Bulk Editing Tags and/or Archive Folders | Community
Skip to main content
Level 5
December 11, 2023
Solved

Bulk Editing Tags and/or Archive Folders

  • December 11, 2023
  • 1 reply
  • 1978 views

Hello,
A bit of a two-fold question here - We're working on setting up a process to pull program data through an API call utilizing tags and I was curious on a few things in terms of setting up a process to make this work in a usable way:

1. As far as I can see, there's no way to bulk update a tag outside of an API call - Is this still the case?

2. I'm assuming this is not the case, but I was curious if using Archived Folders prevents an API call from pulling that data? Or is it really only affecting the Marketo UI search?

For more specifics, we're using program ID to pull in audiences and using a tag to look at relevant programs that we need. So I'm looking for a way to be able to change program tags or prevent that program from being visible after a certain point without having to do it manually 🙂 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Darshil_Shah1

1. As far as I can see, there's no way to bulk update a tag outside of an API call - Is this still the case?

 


Yes, AFAICT, that's still the case. You need to use the Update Program REST API to update the program using its ID. This is still one program update-at-a-time, but you can of course automate this process if you have/GET all the program IDs first.

 


2. I'm assuming this is not the case, but I was curious if using Archived Folders prevents an API call from pulling that data? Or is it really only affecting the Marketo UI search?


Yes, you can update an archived program's tag(s) using the program create/update API endpoint! However, be mindful of the below pointers:

  • The tagType and tagValue must exist in the Admin > Tags for the update to be successful. 
  • Use application/x-www-form-urlencoded as the Content-Type
  • You may run the call with no tags parameter to return existing tags. 
  • The Update Program Metadata call is destructive, i.e., if you do not include existing non-required tags then those tags will be deleted in the successful call.

And, yes, you can also GET the program data irrespective of it being Archived or not- w/o the "Search in Archived Folders" filter selected (it's not selected by default), you'd only be able to seach non-archived assets! However, you can GET/Update assets/programs using their respective endpoints irrespective of them being archived or not.

Hope this helps! Please let us know if you have questions!

1 reply

Darshil_Shah1
Community Advisor and Adobe Champion
Darshil_Shah1Community Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
December 12, 2023

1. As far as I can see, there's no way to bulk update a tag outside of an API call - Is this still the case?

 


Yes, AFAICT, that's still the case. You need to use the Update Program REST API to update the program using its ID. This is still one program update-at-a-time, but you can of course automate this process if you have/GET all the program IDs first.

 


2. I'm assuming this is not the case, but I was curious if using Archived Folders prevents an API call from pulling that data? Or is it really only affecting the Marketo UI search?


Yes, you can update an archived program's tag(s) using the program create/update API endpoint! However, be mindful of the below pointers:

  • The tagType and tagValue must exist in the Admin > Tags for the update to be successful. 
  • Use application/x-www-form-urlencoded as the Content-Type
  • You may run the call with no tags parameter to return existing tags. 
  • The Update Program Metadata call is destructive, i.e., if you do not include existing non-required tags then those tags will be deleted in the successful call.

And, yes, you can also GET the program data irrespective of it being Archived or not- w/o the "Search in Archived Folders" filter selected (it's not selected by default), you'd only be able to seach non-archived assets! However, you can GET/Update assets/programs using their respective endpoints irrespective of them being archived or not.

Hope this helps! Please let us know if you have questions!

Level 5
December 13, 2023

No additional questions, but thank you for the details and the help!

Darshil_Shah1
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
December 13, 2023

You are very welcome, @nhabischwings!