Skip to main content
Question

I want to use the box API to add and delete tags

  • May 22, 2025
  • 3 replies
  • 41 views

Forum|alt.badge.img

I want to use the box API to add and delete tags,but the[https://developer.box.com/reference/put-files-id/#param-tags]only support update fucntion.If I dont want to update the current tags,just want to add or remove a tag.Does any api support it?

3 replies

Forum|alt.badge.img

Hey Dan, 

Yes, it is possible to add and delete tags via the API. You are correct that you need to use the update file endpoint. There is a note on this if you look at the tags body parameter: 

To add or remove a tag, retrieve the item's current tags, modify them, and then update this field.

 Best, 

Kourtney


Forum|alt.badge.img

Hey Kourtney

Thank you for your answer,I know the boby parameter.In this way, current tags will be covered. If I want  to add or delete tag I have to know the current  tags . I want to know if there are other endpoints that can add tags directly without knowing the existing tags.


Forum|alt.badge.img

Ah I see what you're saying -- thank you for the clarification. No, unfortunately, there is not currently a separate endpoint for this. If this is a feature you'd like to see added to our roadmap, please submit your feedback to our product team at https://pulse.box.com.