Skip to main content
POST/users/:id/add_tag/

Add tag

You can add a tag to a specific user.

AttributesTypeRequiredDescription
idintegeryesA unique identifier for the user which is given by User.com automatically.
namestringyesA tag name.

Request​

curl -X POST -H "Authorization: Token <your_64_char_api_key>"
-H "Accept: */*; version=2" -H "Content-Type: application/json" -d '{
"name": "My tag"
}' "https://<your_app_subdomain>.user.com/api/public/users/:id/add_tag/"

Response​

{
"tag": {
"name": "My tag"
},
"created": true
}

If created equals True: you did not have this tag before. False: you created this tag before, so it was re-used.