Skip to main content

Create new PartnerAttribute

POST 

/partner-attributes

Create new PartnerAttribute.

Privileges:

  • bp-settings-custom-fields.manage

Audit event:

  • biz.core.v2.partner.attribute.add

Validation errors:

  • BIZ_CORE:PARTNER_ATTRIBUTE_CUSTOM_ATTR_NAME_OUT_OF_LIMIT - Custom attr name of the Partner attribute cannot be longer than 50 characters.
  • BIZ_CORE:PARTNER_ATTRIBUTE_JSON_VALUE_IS_NOT_VALID - Json value of the Partner attribute is not valid.
  • BIZ_CORE:PARTNER_ATTRIBUTE_JSON_VALUE_AND_ATTRIBUTE_VALUE_CANNOT_BE_EMPTY - Json value and attribute value of the Partner attribute can not be empty.
  • BIZ_CORE:PARTNER_ATTRIBUTE_ATTRIBUTE_SECTION_NOT_SUPPORTED - Attribute section of the Partner attribute is not supported.
  • BIZ_CORE:PARTNER_ATTRIBUTE_ATTRIBUTE_SECTION_NOT_ACTIVE - Attribute section of the Partner attribute is not active.
  • BIZ_CORE:PARTNER_ATTRIBUTE_BIZ_PARTNER_NOT_FOUND - Biz partner of the Partner attribute is not found.

Request

Responses

PartnerAttribute created successfully