API Explorer 1 endpoints

Create User Attribute

POST /obp/v7.0.0/users/USER_ID/attributes

OBPv6.0.0-createUserAttribute Roles: CanCreateUserAttribute UserUser-AttributeAttribute

Create a User Attribute for the user specified by USER_ID.

User Attributes are non-personal attributes (IsPersonal=false) that can be used in ABAC rules. They require a role to set, similar to Customer Attributes, Account Attributes, etc.

For personal attributes that users manage themselves, see the /my/personal-data-fields endpoints.

The type field must be one of "STRING", "INTEGER", "DOUBLE", "DECIMAL", "BOOLEAN" and "DATE_WITH_DAY". Use "DECIMAL" rather than "DOUBLE" for rates, prices and amounts, because it holds the value exactly; "BOOLEAN" values are "true" or "false".

User Authentication is Required. The User must be logged in. The Application must also be authenticated.

URL Parameters:

USER_ID: 9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1

JSON request body fields (3)
name
ACCOUNT_MANAGEMENT_FEE
type
value
5987953
JSON response body fields (6)
insert_date
2020-01-27
is_personal
is_personal
name
ACCOUNT_MANAGEMENT_FEE
type
user_attribute_id
7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh
value
5987953
Example request body
{
  "name": "account_type",
  "type": "STRING",
  "value": "premium"
}
Example success response
{
  "user_attribute_id": "7uy8a7e4-6d02-40e3-a129-0b2bf89de8uh",
  "name": "BATTERY_LEVEL",
  "type": "STRING",
  "value": "90",
  "is_personal": false,
  "insert_date": "2026-10-21T01:45:41Z"
}
Possible errors (5)
  • OBP-20001: User not logged in. Authentication is required!
  • OBP-20006: User is missing one or more roles:
  • OBP-20057: User not found by userId.
  • OBP-10001: Incorrect json format.
  • OBP-50000: Unknown Error.
Implemented by OBPv6.0.0 createUserAttribute Originally /obp/v6.0.0/users/USER_ID/attributes