Skip to main content

Configs Fetch

POST 

/variants/configs/fetch

Fetch configuration for a variant or environment.

Either variant_ref OR environment_ref must be provided (if neither is provided, a default environment_ref with slug="production" will be used).

For each reference object (variant_ref, environment_ref, application_ref):

  • Provide either 'slug' or 'id' field
  • 'version' is optional and can be set to null
  • If 'id' is provided, it will be used directly to fetch the resource
  • Otherwise, 'slug' will be used along with application_ref

Returns: ConfigResponseModel: The configuration for the requested variant or environment.

Raises: HTTPException: If the configuration is not found.

Request

Responses

Successful Response