Set, change or clear a partner's recruiter
PATCH/api/v1/programs/:id/partners/:partnerId/recruiter
A recruiter id moves the level-2 claims of the partner's converted customers to that recruiter, at the recruiter's current rate, for payments processed after the save; commissions already created do not move. null ends the claims. Saving the same recruiter changes nothing. Each change is written to the partner's audit log.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
The saved recruiter state
Recruiter id is not a UUID
Unauthorized
Example partner (read-only)
Programme or partner not found
Partner erased
RECRUITER_IS_PARTNER, RECRUITER_NOT_ELIGIBLE (not an approved partner of the programme with a level-2 rate), RECRUITER_CYCLE, or PROGRAM_ARCHIVED (an archived programme)