1. Users
Spencer Integration API
  • Spencer Integration API
  • Identity
    • Request access token
      POST
  • News
    • Fetch news publications
      GET
    • Fetch news publications for userlist
      GET
    • Create news draft
      POST
  • Users
    • Create user
      POST
    • Fetch user
      GET
    • Update user
      PUT
    • Delete user
      DELETE
    • Check if user exists
      HEAD
    • Add user profile picture
      POST
    • Create user tag
      POST
    • Update user tag
      PUT
    • Check if user tag exists
      HEAD
  • Document library
    • Fetch node
      GET
  • Notifications
    • Create notification
      POST
  1. Users

Create user tag

POST
/agent/integration/api/v1/users/tags
Creates a new user tag, with its translations.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Example
{
    "id": "string",
    "translations": [
        {
            "locale": "string",
            "name": "string"
        }
    ]
}

Request Code Samples

Shell
HTTP
Request Request Example
Shell
HTTP
curl --location '/agent/integration/api/v1/users/tags' \
--header 'x-spencer-request-id;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "id": "string",
    "translations": [
        {
            "locale": "string",
            "name": "string"
        }
    ]
}'

Responses

🟢201200.user_tag
application/json
Bodyapplication/json

Example
{"id":"12345","translations":[{"locale":"en-US","name":"proident nisi nostrud nulla aliquip"},{"locale":"fr-BE","name":"sint"},{"locale":"nl-BE","name":"non Duis "}]}
🟠400400.badRequest
🟠401401.unauthorized
🟠403403.forbidden
🟠404404.notFound
🟠409409.conflict
🔴500500.internalServerError
Previous
Add user profile picture
Next
Update user tag
Built with