API reference
Mirrored from prt-experiment-admin 0.3.0. Generated from the live OpenAPI document, so it cannot drift from what the backend serves.
Admin requires a Keycloak service Bearer token. Evaluation requires the X-ExpSvc-Caller service-name header. The caller must match the feature owner to participate in an experiment.
Every write also requires Action-User-Id, which is stored verbatim as by on the intent log. Errors carry { source, message }, where source separates a rejection by this service from one by the experimentation platform behind it.
other
/api/v1/experimentsBearer tokenExperiments
200Successful Response
Writes also require Action-User-Id, stored verbatim in the intent log.
/api/v1/experimentsBearer tokenCreate
| Field | Type | Notes |
|---|---|---|
| action-user-id | string or null | header |
| idempotency-key | string or null | header |
| Field | Type | Notes |
|---|---|---|
| publisher_id* | string | Publisher Id |
| publisher_group_id* | string | Publisher Group Id |
| name* | string | Name |
| description | string | Description |
| feature_key* | string | Feature Key |
| targetingCondition* | object<string, any> | Targetingcondition |
| hashAttribute | string | Hashattribute |
| cohorts* | Cohort[] | Cohorts |
| metrics* | Metrics | |
| start_at | string or null | Start At |
| duration* | Duration |
201Successful Response422Validation Error(HTTPValidationError)
Writes also require Action-User-Id, stored verbatim in the intent log.
/api/v1/experiments/{identity}Bearer tokenGet
| Field | Type | Notes |
|---|---|---|
| identity* | string | path |
200Successful Response422Validation Error(HTTPValidationError)
Writes also require Action-User-Id, stored verbatim in the intent log.
/api/v1/experiments/{identity}Bearer tokenPatch
| Field | Type | Notes |
|---|---|---|
| identity* | string | path |
| action-user-id | string or null | header |
| idempotency-key | string or null | header |
| Field | Type | Notes |
|---|---|---|
| publisher_id | string or null | Publisher Id |
| publisher_group_id | string or null | Publisher Group Id |
| name | string or null | Name |
| description | string or null | Description |
| targetingCondition | object<string, any> or null | Targetingcondition |
| hashAttribute | string or null | Hashattribute |
| cohorts | Cohort[] or null | Cohorts |
| metrics | Metrics or null | |
| start_at | string or null | Start At |
| duration | Duration or null | |
| expected_base_version* | integer | Expected Base Version |
200Successful Response422Validation Error(HTTPValidationError)
Writes also require Action-User-Id, stored verbatim in the intent log.
/api/v1/experiments/{identity}Bearer tokenArchive
| Field | Type | Notes |
|---|---|---|
| identity* | string | path |
| action-user-id | string or null | header |
| idempotency-key | string or null | header |
204Successful Response422Validation Error(HTTPValidationError)
Writes also require Action-User-Id, stored verbatim in the intent log.
/api/v1/experiments/{identity}/actionBearer tokenAction
| Field | Type | Notes |
|---|---|---|
| identity* | string | path |
| action-user-id | string or null | header |
| idempotency-key | string or null | header |
| Field | Type | Notes |
|---|---|---|
| expected_base_version* | integer | Expected Base Version |
| action* | "start" | "stop" | "schedule" | "unschedule" | Action |
| start_at | string or null | Start At |
200Successful Response422Validation Error(HTTPValidationError)
Writes also require Action-User-Id, stored verbatim in the intent log.
/api/v1/experiments/{identity}/cloneBearer tokenClone
| Field | Type | Notes |
|---|---|---|
| identity* | string | path |
| action-user-id | string or null | header |
| idempotency-key | string or null | header |
| Field | Type | Notes |
|---|---|---|
| publisher_id | string or null | Publisher Id |
| publisher_group_id | string or null | Publisher Group Id |
| name | string or null | Name |
| description | string or null | Description |
| targetingCondition | object<string, any> or null | Targetingcondition |
| hashAttribute | string or null | Hashattribute |
| cohorts | Cohort[] or null | Cohorts |
| metrics | Metrics or null | |
| start_at | string or null | Start At |
| duration | Duration or null |
201Successful Response422Validation Error(HTTPValidationError)
Writes also require Action-User-Id, stored verbatim in the intent log.
/api/v1/featuresBearer tokenFeatures
200Successful Response
Writes also require Action-User-Id, stored verbatim in the intent log.
/api/v1/attributesBearer tokenAttributes
200Successful Response
Writes also require Action-User-Id, stored verbatim in the intent log.
/api/v1/metricsBearer tokenList Metrics
200Successful Response
Writes also require Action-User-Id, stored verbatim in the intent log.
/api/v1/metrics/{identity}Bearer tokenMetrics
| Field | Type | Notes |
|---|---|---|
| identity* | string | path |
200Successful Response422Validation Error(HTTPValidationError)
Writes also require Action-User-Id, stored verbatim in the intent log.
/api/v1/metrics/{identity}/timeseriesBearer tokenTimeseries
| Field | Type | Notes |
|---|---|---|
| identity* | string | path |
200Successful Response422Validation Error(HTTPValidationError)
Writes also require Action-User-Id, stored verbatim in the intent log.
/api/v1/metrics/{identity}/refreshBearer tokenRefresh
| Field | Type | Notes |
|---|---|---|
| identity* | string | path |
| action-user-id | string or null | header |
202Successful Response422Validation Error(HTTPValidationError)
Writes also require Action-User-Id, stored verbatim in the intent log.
/api/v1/livenoneLive
200Successful Response
Health probes do not require authentication.
/livenoneLive
200Successful Response
Health probes do not require authentication.
/api/v1/readynoneReady
200Successful Response
Health probes do not require authentication.
/readynoneReady
200Successful Response
Health probes do not require authentication.
/api/v1/healthnoneHealth
200Successful Response
Health probes do not require authentication.
/healthnoneHealth
200Successful Response
Health probes do not require authentication.
Schemas
Referenced by the operations above. A * marks a required field.
| Field | Type | Notes |
|---|---|---|
| expected_base_version* | integer | Expected Base Version |
| action* | "start" | "stop" | "schedule" | "unschedule" | Action |
| start_at | string or null | Start At |
| Field | Type | Notes |
|---|---|---|
| publisher_id | string or null | Publisher Id |
| publisher_group_id | string or null | Publisher Group Id |
| name | string or null | Name |
| description | string or null | Description |
| targetingCondition | object<string, any> or null | Targetingcondition |
| hashAttribute | string or null | Hashattribute |
| cohorts | Cohort[] or null | Cohorts |
| metrics | Metrics or null | |
| start_at | string or null | Start At |
| duration | Duration or null |
| Field | Type | Notes |
|---|---|---|
| name* | string | Name |
| weight* | number | Weight |
| value* | string | Value |
| Field | Type | Notes |
|---|---|---|
| publisher_id* | string | Publisher Id |
| publisher_group_id* | string | Publisher Group Id |
| name* | string | Name |
| description | string | Description |
| feature_key* | string | Feature Key |
| targetingCondition* | object<string, any> | Targetingcondition |
| hashAttribute | string | Hashattribute |
| cohorts* | Cohort[] | Cohorts |
| metrics* | Metrics | |
| start_at | string or null | Start At |
| duration* | Duration |
| Field | Type | Notes |
|---|---|---|
| unit* | "hours" | "days" | Unit |
| count* | integer | Count |
| Field | Type | Notes |
|---|---|---|
| detail | ValidationError[] | Detail |
| Field | Type | Notes |
|---|---|---|
| id* | string | Id |
| version* | integer | Version |
| Field | Type | Notes |
|---|---|---|
| goal* | Metric[] | Goal |
| guardrails | Metric[] | Guardrails |
| Field | Type | Notes |
|---|---|---|
| publisher_id | string or null | Publisher Id |
| publisher_group_id | string or null | Publisher Group Id |
| name | string or null | Name |
| description | string or null | Description |
| targetingCondition | object<string, any> or null | Targetingcondition |
| hashAttribute | string or null | Hashattribute |
| cohorts | Cohort[] or null | Cohorts |
| metrics | Metrics or null | |
| start_at | string or null | Start At |
| duration | Duration or null | |
| expected_base_version* | integer | Expected Base Version |
| Field | Type | Notes |
|---|---|---|
| loc* | string | integer[] | Location |
| msg* | string | Message |
| type* | string | Error Type |
live Read from the backend on every request. Nothing here is written by hand.