I Can't figure out how to add labels to confluence content

I can add labels to content using the addon.httplClient, but i want to make this rest call from front end i keep getting a 415 code error …
11%20PM