Set the earnings goal
Sets the creator’s earnings goal, replacing the current one.
The goal is validated and built exactly as when the creator sets it.
Response
The answer is { goal }: the goal’s terms as set (goalRef, targetMinor, currency, periodStart,
periodEnd, label) and its progress (earnedMinor, otherCurrencies).
The progress is money. It is filled only when your application also passes the revenue check of
GET /partner/v1/accounts/{creatorId}/earnings-goal: its effective access covers read:revenue. Otherwise both
fields are null. write:goals alone sets a goal but never reads the creator’s earnings.
Errors
409 GOAL_CHANGED— another change to the goal won a race with this request.
Required scopes: write:goals.
Authentication
OAuth 2.0 client credentials. Request an access token at POST /partner/v1/oauth/token (grant_type=client_credentials) with the application’s client secret or a private_key_jwt assertion, then send it as Authorization: Bearer evpa_live_… (or evpa_test_… for a sandbox application). Tokens are opaque and short lived (see expires_in); there is no refresh token. Each operation lists the scopes it requires.
write:goalsPath parameters
The creator profile id — the ONLY source of the creator a request acts for.
Headers
Optional echo of the path creatorId; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.
