action velopayments_role_update { label: "Update User Role" description: "

Update the user's Role

\n" provider: velopayments method: POST path: "/v2/users/{userId}/roleUpdate" encoding: json input: { type: "object" properties: { roles: { type: "array" description: "

The role(s) for the user

\n

The role must exist

\n

The role can be a custom role or a system role but the invoker must have the permissions to assign the role

\n

System roles are: backoffice.admin, payor.master_admin, payor.admin, payor.support

\n" items: { type: "string" } } userId: { type: "string" format: "uuid" } verificationCode: { type: "string" description: "

Optional property that MUST be suppied when manually verifying a user

\n

The user's smsNumber is registered via a separate endpoint and an OTP sent to them

\n" } } required: ["roles", "userId"] additionalProperties: false } output: { type: "object" additionalProperties: true } }