Skip to main content

Create a user attribute

POST 

/api/web/v1/userattributes

Create a user attribute. Caller requires the USERATTRIBUTES:ADD permission.

Request

Body

required

    mandatory boolean

    A flag indicating if users must have a value for this user attribute. If not specified when creating a user attribute if defaults to false.

    name string

    The name of this user attribute. This must be specified when creating a user attribute.

    type string

    Possible values: [NONE, OTP_EMAIL, OTP_SMS, OTP_VOICE]

    Type of user attribute.

    unique boolean

    A flag indicating if this attribute is intended to be unique. If not specified when creating a user attribute it defaults to false.

Responses

Successful

Schema

    id string

    The UUID for this user attribute. Generated when the user attribute is created.

    mandatory booleanrequired

    A flag indicating if users must have a value for this user attribute.

    name stringrequired

    The name of this user attribute.

    systemDefined booleanrequired

    A flag indicating if this user attribute is one of the system defined user attributes.

    type string

    Possible values: [NONE, OTP_EMAIL, OTP_SMS, OTP_VOICE]

    Type of user attribute. Currently only used to specify the type of contact if the attribute is to be used for OTP delivery.

    unique booleanrequired

    A flag indicating if this attribute is intended to be unique.

Loading...