Skip to navigation

User Role - UPSERT

View as Markdown

This API is used to create or update user roles in BIPO.

FieldTypeRequiredDescription
InterfaceCodeStringYesBIPO-URL
UserRoleCodeStringYesUser Role Code, up to 60 characters. Letters and numbers only. A new code creates a role; an existing code updates it. A new code cannot start with #.
UserRoleNameStringYesUser Role name, up to 60 characters.
MenuAccessCodeStringYesMenu Access Code. Must already exist in BIPO.
CompanyCodesStringNoCompany Codes the role can access, separated by commas. Leave it empty or send * for all companies.

Note: The response lists each record as Added or Updated. In a batch, a record that fails is returned under invalidRecords with its reason, and the other records are still saved (HTTP 200). Example reasons: Invalid Menu Access., Mandatory Name must not be empty.

Note: When a new role is created for a Menu Access that includes Payroll, and the Payroll application is licensed, BIPO also adds a default Payroll access row for the role.

Note: This API is for the Butter application integration only. A Butter licence is required.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects a string.

Response

OK
dataobject
errorslist of any
messageslist of strings
errorCodeanyOptional