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

Request

  • Base URL: https://api.omicos.cn (the document declares no server; this is the origin it was published from)
  • URL: https://api.omicos.cn/api/user_settings/image_host
  • Auth: none declared

Query parameters

authorizationunknown

Request body

providerstring
configobject
active_providerstring nullable

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 20 revisions of this API.