image_host

Put Image Host Config

Save config. If incoming token is empty/masked we keep the existing real token — lets the SPA edit other fields without re-prompting for the PAT.

active_provider is validated against the user's eligibility: 'cloud' requires a paid plan; 'github' requires the github config to have repo+token after the merge step. Invalid choices → 400.

put/api/user_settings/image_host

Query parameters

{"stackTrail":"paths:/api/user_settings/image_host:put:parameters:0:schema","oasType":"schema","type":"unknown","title":"Authorization"}

Request body

providerstring
configobject
active_providerstring nullable

Response

Successful Response

object required

Changes