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

Body

    variant_refobject
    anyOf
    slugobject
    anyOf

    string

    versionobject
    anyOf

    integer

    commit_messageobject
    anyOf

    string

    idobject
    anyOf

    string

    environment_refobject
    anyOf
    slugobject
    anyOf

    string

    versionobject
    anyOf

    integer

    commit_messageobject
    anyOf

    string

    idobject
    anyOf

    string

    application_refobject
    anyOf
    slugobject
    anyOf

    string

    versionobject
    anyOf

    integer

    commit_messageobject
    anyOf

    string

    idobject
    anyOf

    string

Responses

Successful Response
Schema

    params

    object

    required

    property name* any
    urlobject
    anyOf

    string

    application_refobject
    anyOf
    slug

    object

    anyOf

    string

    version

    object

    anyOf

    integer

    commit_message

    object

    anyOf

    string

    id

    object

    required

    anyOf

    string

    service_refobject
    anyOf
    slug

    object

    anyOf

    string

    version

    object

    anyOf

    integer

    commit_message

    object

    anyOf

    string

    id

    object

    required

    anyOf

    string

    variant_refobject
    anyOf
    slug

    object

    anyOf

    string

    version

    object

    anyOf

    integer

    commit_message

    object

    anyOf

    string

    id

    object

    required

    anyOf

    string

    environment_refobject
    anyOf
    slug

    object

    anyOf

    string

    version

    object

    anyOf

    integer

    commit_message

    object

    anyOf

    string

    id

    object

    required

    anyOf

    string

    application_lifecycleobject
    anyOf
    created_at

    object

    anyOf

    string

    updated_at

    object

    anyOf

    string

    updated_by_id

    object

    anyOf

    string

    updated_by

    object

    anyOf

    string

    service_lifecycleobject
    anyOf
    created_at

    object

    anyOf

    string

    updated_at

    object

    anyOf

    string

    updated_by_id

    object

    anyOf

    string

    updated_by

    object

    anyOf

    string

    variant_lifecycleobject
    anyOf
    created_at

    object

    anyOf

    string

    updated_at

    object

    anyOf

    string

    updated_by_id

    object

    anyOf

    string

    updated_by

    object

    anyOf

    string

    environment_lifecycleobject
    anyOf
    created_at

    object

    anyOf

    string

    updated_at

    object

    anyOf

    string

    updated_by_id

    object

    anyOf

    string

    updated_by

    object

    anyOf

    string

Loading...