Unassign users from order list
PATCH/v2/orderlists/:id/unassign-users
Remove user access permissions from an order list.
Unassigns specified users from the order list, revoking their access to view and order from the list. The operation updates access control immediately and removes the order list from the users' available ordering options.
This endpoint allows you to:
- Revoke individual user access to the order list
- Reference users from external systems via source identifiers
- Handle non-existent assignments gracefully (no errors for users not assigned)
- Update the order list's modification timestamp
Request
Responses
- 200
- 400
- 403
- 404
- 500
Users unassigned from order list successfully.
Returns the updated order list with the specified users removed from the userIds array.
Invalid user data.
The provided user data contains validation errors.
Access denied.
Insufficient permissions to unassign users from order lists.
Order list not found.
No order list exists with the specified identifier.
Server error.
An unexpected error occurred while unassigning users.