BillingPaymentsCrypto
BillingPaymentsCrypto
  • Getting Started
    • 👋 Welcome
    • 🔑 Sandbox credentials
    • 🏁 Getting Started
    • 📨 Webhooks
  • Payments API Reference
LogoLogo
Payments API ReferenceOrganizations

Update user roles in organization

PUT
/api/v1/organizations/:organizationId/users
PUT
/api/v1/organizations/:organizationId/users
1curl -X PUT https://api.koywe.com/api/v1/organizations/org_abc123/users \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "userId": "k3u_abc123",
6 "rolesIds": [
7 "k3r_user_org_inviter",
8 "k3r_user_org_manager",
9 "k3r_user_org_operator",
10 "k3r_user_org_merchant_admin"
11 ]
12}'
Try it
200Updated
1{
2 "success": true,
3 "message": "User organization roles updated successfully"
4}
Update the roles assigned to a user in a specific organization. Requires ORGANIZATION_SETTINGS_ASSIGN_ROLE_TO_USER permission.
Was this page helpful?
Previous

List webhook endpoints

Next
Built with
List webhook endpoints

Update the roles assigned to a user in a specific organization. Requires ORGANIZATION_SETTINGS_ASSIGN_ROLE_TO_USER permission.

Authentication

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

Path Parameters

organizationIdstringRequired
Organization identifier

Request

User and roles information
userIdstringRequired
User ID
rolesIdslist of stringsRequired
Array of role IDs to assign to the user in the organization

Response

User organization roles updated successfully
successboolean
Whether the operation was successful
messagestring or null
Optional message providing more details about the operation

Errors

Organization identifier
User and roles information

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

User organization roles updated successfully