Create new Attribute
POST/attributes
Create new Attribute.
Privileges:
- bp-settings-custom-fields.manage
Audit event:
- biz.core.v2.attribute.add
Validation errors:
- BIZ_CORE:ATTRIBUTE_CODE_NAME_REQUIRED - Code name of the Attribute must be provided.
- BIZ_CORE:ATTRIBUTE_CODE_NAME_NOT_VALID - Code name of the Attribute can only contain alphanumeric characters.
- BIZ_CORE:ATTRIBUTE_CODE_NAME_OUT_OF_LIMIT - Code name of the Attribute cannot be longer than 30 characters.
- BIZ_CORE:ATTRIBUTE_NAME_REQUIRED - Name of the Attribute must be provided.
- BIZ_CORE:ATTRIBUTE_NAME_OUT_OF_LIMIT - Name of the Attribute cannot be longer than 50 characters.
- BIZ_CORE:ATTRIBUTE_NAME_RESERVED - Name of the Attribute is reserved.
- BIZ_CORE:ATTRIBUTE_NAME_NOT_UNIQUE - Name of the Attribute must be unique.
- BIZ_CORE:ATTRIBUTE_TYPE_NOT_SUPPORTED - Attribute type of the Attribute is not supported.
- BIZ_CORE:ATTRIBUTE_TYPE_NOT_ACTIVE - Attribute type of the Attribute is not active.
- BIZ_CORE:ATTRIBUTE_CODE_NAME_NOT_UNIQUE - Code name of the Attribute must be unique.
Request
Responses
- 200
- default
Attribute created successfully
unexpected error