이 페이지에서

실험 API 관리 홀드아웃 그룹 엔드포인트

EU 데이터 상주

이 페이지의 예제에서는 기본 URL https://experiment.amplitude.com을(를) 사용합니다. 프로젝트에서 Amplitude의 EU 데이터 센터를 사용하고 있다면 대신 https://experiment.eu.amplitude.com을(를) 사용하십시오. 자세한 내용은 지역을 참조하십시오.

목록

bash
GET https://experiment.amplitude.com/api/1/holdouts

해당 구성 세부 정보와 함께 홀드아웃 그룹 목록을 가져옵니다.

쿼리 매개 변수

응답

성공적인 요청은 200 OK 응답과 응답 본문에 JSON으로 인코딩된 홀드아웃 그룹 목록을 반환합니다.

curl --request GET \
--url 'https://experiment.amplitude.com/api/1/holdout?limit=1000' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <management-api-key>'

자세한 정보 보기

bash
GET https://experiment.amplitude.com/api/1/holdouts/<id>

홀드아웃 그룹의 구성 세부 정보를 가져옵니다.

경로 변수

응답

성공적인 요청은 200 OK 응답과 홀드아웃 그룹의 세부 정보가 포함된 JSON 객체를 반환합니다.

curl --request GET \
    --url 'https://experiment.amplitude.com/api/1/holdouts/<id>' \
    --header 'Accept: application/json' \
    --header 'Authorization: Bearer <management-api-key>'

편집

bash
PATCH https://experiment.amplitude.com/api/1/holdouts/{id}

홀드아웃 그룹을 편집합니다.

경로 변수

요청 본문

요청 예제

json
{
  "name": "updated name",
  "description": "updated description",
  "experiments": [123],
  "individualInclusion": ["x@amplitude.com"]
}

응답

성공적인 요청은 200 OK 응답을 반환합니다.

요청

curl
curl --request PATCH \
    --url 'https://experiment.amplitude.com/api/1/holdouts/<id>' \
    --header 'Content-Type: application/json' \
    --header 'Accept: application/json' \
    --header 'Authorization: Bearer <management-api-key>' \
    --data '{"name": "updated name"}'

생성

bash
POST https://experiment.amplitude.com/api/1/holdouts

새 홀드아웃 그룹을 생성합니다.

요청 본문

요청 예제

json
{
    "projectId": <projectId>,
    "name": "Example Holdout",
  	"key": "example-holdout",
    "holdoutPercentage": 5,
    "evaluationMode": "local",
    "bucketingKey": "device_id",
    "experiments": [21197],
    "individualInclusion": ["x@amplitude.com"],
    "individualExclusion": ["y@amplitude.com"],
}

응답

성공적인 요청은 200 OK 응답과 홀드아웃 그룹의 ID 및 URL을 포함한 JSON 객체를 반환합니다.

curl --request POST \
    --url 'https://experiment.amplitude.com/api/1/holdouts' \
    --header 'Content-Type: application/json' \
    --header 'Accept: application/json' \
    --header 'Authorization: Bearer <management-api-key>' \
    --data '{"projectId":"<projectId>","name":"Example Holdout","holdoutPercentage":5}'

이 내용이 도움이 되었나요?