Update sponsor settings
PATCH
Changes who may spend the avatar's sponsor pool, and when. The request applies all of its fields or none.
anonymousAccess: truelets visitors without an account spend the pool. The avatar must be funded first (409 avatar_not_budget_managed: grant credits or turn on auto top-up) and public or unlisted (409 avatar_not_shared).autoTopupEnabled: trueneeds a threshold and an amount, sent or already stored (400 auto_topup_incomplete).- A monetized avatar cannot be sponsored (
409 monetized_avatar_cannot_be_sponsored).
header
X-Api-Key<token>Your secret API key (sk_atmee_...; older keys start sk_live_),
sent as X-Api-Key. Keep it on your server and never send it to a
browser.
avatarId*stringFormat
uuidapplication/json- body
Properties
1 <= propertiesmaxPerSessionMicrocredits?integernull clears the cap.
Range
1 <= valueexhaustedBehavior?stringValue in
"pause""spend_balance"autoTopupEnabled?booleanautoTopupThresholdMicrocredits?integerRange
1 <= valueautoTopupAmountMicrocredits?integerRange
1 <= valueanonymousAccess?booleananonymousDailySecondsPerVisitor?integernull clears the per-visitor daily cap.
Range
1 <= valueUpdated; returns the sponsor view.
application/json- response
balance*settings*curl -X PATCH 'https://api.atmanity.us/v1/avatars/497f6eca-6276-4993-bfeb-53cbbbba6f08/sponsor' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "balance": { "totalMicrocredits": 0, "planSourcedMicrocredits": 0, "topupSourcedMicrocredits": 0, "couponSourcedMicrocredits": 0 }, "settings": { "maxPerSessionMicrocredits": 0, "exhaustedBehavior": "pause", "autoTopupEnabled": true, "autoTopupThresholdMicrocredits": 0, "autoTopupAmountMicrocredits": 0, "anonymousAccess": true, "anonymousDailySecondsPerVisitor": 0 }}
