PUT
/api/v2/referrals/programs/{programId}/level-assignments/{userId}Assigns (or revokes) a program level directly to a user, e.g. a hidden influencer rate.
Authentication
Send your API key in the x-api-key header on every request.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| programId (path) | string (uuid) | Yes | |
| userId (path) | integer (int32) | Yes |
Request body
application/json
| Field | Type | Required | Description |
|---|---|---|---|
| LevelId | string (uuid) | Yes | |
| ExpiresAt | string (date-time) | No | |
| Notes | string | No | |
| Active | boolean | No | False revokes the assignment; the user falls back to the metric-based level. |
Responses
200 — OK
| Field | Type | Required | Description |
|---|---|---|---|
| UserId | unknown | Yes | |
| Name | string | Yes | |
| string | Yes | ||
| LevelId | string (uuid) | Yes | |
| LevelCode | string | Yes | |
| LevelName | string | Yes | |
| AssignedAt | string (date-time) | Yes | |
| ExpiresAt | string (date-time) | Yes | |
| RevokedAt | string (date-time) | Yes | |
| Notes | string | Yes |
Example request
curl -X PUT "https://{base_url}/api/v2/referrals/programs/{programId}/level-assignments/{userId}" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"LevelId":"…"}'This page is generated from the live OpenAPI specification and always matches the current API.