Normalize Margin.ownerId to always be a User id (maintenance)
POST/api/v1/margin/normalize
One-time maintenance operation: for each Margin whose ownerId currently points to a Branch, Client or Commercial id instead of a User id, resolves and corrects it. Processes one batch at a time — call again with the returned nextOffset until it comes back null.
Request
Responses
- 200
- 403
Batch processed successfully
Insufficient permissions to run this maintenance operation