Creating attributes
Use the following endpoint to create an attribute.
- POST
/admin/v1/attributes
The only required fields are the attribute name and
type/code (the description is optional). For
example, the following request creates an attribute for French fluency.
The
code within type is a string that
represents a TypeKey defined in the UserAttributeType
typelist of available code, so you can only use a value enumerated in that list. You can
access and extend this typelist in Guidewire Studio. In the base configuration for the
different InsuranceSuite applications, the following typecodes are available:- ClaimCenter:
default,account,expertise, andlanguage - PolicyCenter:
default,account,expertise,language, andLOB - BillingCenter:
default
Note: You cannot manage attributes in BillingCenter, but you can
manage them with Cloud API.
This example creates a new custom attribute in ClaimCenter:
Command
POST /admin/v1/attributes
Request
{
"data": {
"attributes": {
"name": "French",
"type": {
"code": "language"
}
}
}
}
Response
{
"data": {
"attributes": {
"id": "xc:Sk15XVYWTjBDfXB9wrfOV",
"name": "French",
"type": {
"code": "language",
"name": "Language"
}
}