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
- application/json
Body
- ReferenceRequestModel
- MOD1
- MOD1
- MOD1
- MOD1
- ReferenceRequestModel
- MOD1
- MOD1
- MOD1
- MOD1
- ReferenceRequestModel
- MOD1
- MOD1
- MOD1
- MOD1
variant_refobject
slugobject
string
versionobject
integer
commit_messageobject
string
idobject
string
environment_refobject
slugobject
string
versionobject
integer
commit_messageobject
string
idobject
string
application_refobject
slugobject
string
versionobject
integer
commit_messageobject
string
idobject
string
Responses
- 200
- 422
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- ReferenceDTO
- MOD1
- MOD1
- MOD1
- MOD1
- ReferenceDTO
- MOD1
- MOD1
- MOD1
- MOD1
- ReferenceDTO
- MOD1
- MOD1
- MOD1
- MOD1
- ReferenceDTO
- MOD1
- MOD1
- MOD1
- MOD1
- LifecycleDTO
- MOD1
- MOD1
- MOD1
- MOD1
- LifecycleDTO
- MOD1
- MOD1
- MOD1
- MOD1
- LifecycleDTO
- MOD1
- MOD1
- MOD1
- MOD1
- LifecycleDTO
- MOD1
- MOD1
- MOD1
- MOD1
params
object
required
urlobject
string
application_refobject
slugobject
anyOf
string
versionobject
anyOf
integer
commit_messageobject
anyOf
string
idobject
required
anyOf
string
service_refobject
slugobject
anyOf
string
versionobject
anyOf
integer
commit_messageobject
anyOf
string
idobject
required
anyOf
string
variant_refobject
slugobject
anyOf
string
versionobject
anyOf
integer
commit_messageobject
anyOf
string
idobject
required
anyOf
string
environment_refobject
slugobject
anyOf
string
versionobject
anyOf
integer
commit_messageobject
anyOf
string
idobject
required
anyOf
string
application_lifecycleobject
created_atobject
anyOf
string
updated_atobject
anyOf
string
updated_by_idobject
anyOf
string
updated_byobject
anyOf
string
service_lifecycleobject
created_atobject
anyOf
string
updated_atobject
anyOf
string
updated_by_idobject
anyOf
string
updated_byobject
anyOf
string
variant_lifecycleobject
created_atobject
anyOf
string
updated_atobject
anyOf
string
updated_by_idobject
anyOf
string
updated_byobject
anyOf
string
environment_lifecycleobject
created_atobject
anyOf
string
updated_atobject
anyOf
string
updated_by_idobject
anyOf
string
updated_byobject
anyOf
string
{
  "params": {},
  "url": "string",
  "application_ref": {},
  "service_ref": {},
  "variant_ref": {},
  "environment_ref": {},
  "application_lifecycle": {},
  "service_lifecycle": {},
  "variant_lifecycle": {},
  "environment_lifecycle": {}
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [ 
- Array [ 
- MOD1
- MOD2
- ] 
- ] 
detail
object[]
loc
object[]
required
anyOf
string
integer
{
  "detail": [
    {
      "loc": [
        "string",
        0
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}