How to add a tag to user?

I have already used PUT people/:id/taggings api for that. But it is giving me response Bad Request Your browser sent a request that this server could not understand. [code] => 411 [content_type] => text/html )

Official response from

Hi there,

Try setting the Content-Type to application/json. I used the following curl command and received a 200 HTTP response:

curl -v -X PUT --header "Content-Type: application/json" "https://{slug}{person_id}/taggings?access_token={token}" -d '{"tagging":{"tag":"{tag}"}}'

Complete and current information on how to use NationBuilder is available in the documentation section.

Share this post

Showing 1 reaction

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.