Welcome to the new Box Support website. Check out all the details here on what’s changed.

I want to use the box API to set the tag blank

Answered
New post

Comments

3 comments

  • Kourtney

    Hello Dan, 

    Can you please provide some more information about the use case and what you're trying to accomplish here? By default, there won't be any tags, so setting tags to null shouldn't be necessary. Are you trying to remove tags from a file? If so, you can't do that using the file upload endpoint. You'll need to call the update file endpoint instead. 

    Best,

    Kourtney, Box Developer Advocate

    0
    Comment actions Permalink
  • Dan Ma

    Hello Kourtney,

    Thank you for your reply. yes, I want to remove the tag.I used update file endpoint, The parameters are set as follows,but still can't remove tag to null

    -d '{

    "tags": null

    }'

    -d '{

    "tags": ""

    }'

    0
    Comment actions Permalink
  • Kourtney

    If you want to remove all tags the body of your update file call needs to be: 

    {"tags": []}
    0
    Comment actions Permalink

Please sign in to leave a comment.