Creates a user property.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PropertyKey | string | Yes | The property name. | department |
PropertyValues | array | No | The values of the property. You can specify up to 50 values for a property. | |
string | No | The value of the property. | HR |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"CreateResult": {
"PropertyId": 390,
"PropertyKey": "department",
"SavePropertyValueModel": {
"SavePropertyValues": [
{
"PropertyValueId": 978,
"PropertyValue": "HR"
}
],
"FailedPropertyValues": [
{
"PropertyId": 390,
"PropertyValue": "HR",
"ErrorCode": "ExistedPropertyValue",
"ErrorMessage": "The property value is used by another property."
}
]
}
}
}
Error codes
For a list of error codes, visit the Service error codes.