セグメントを更新します。
curl --request PATCH \
--url https://{tenantDomain}/api/v2/experimentation/segments/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"name": "<string>",
"rules": [
{
"match": {
"browser": [
"<string>"
],
"client_id": [
"<string>"
],
"connection": [
"<string>"
],
"connection_type": [
"<string>"
],
"country": [
"<string>"
],
"device_type": [
"<string>"
],
"domain": [
"<string>"
],
"organization_id": [
"<string>"
],
"platform": [
"<string>"
],
"region": [
"<string>"
],
"user_agent": [
"<string>"
]
},
"not_match": {
"browser": [
"<string>"
],
"client_id": [
"<string>"
],
"connection": [
"<string>"
],
"connection_type": [
"<string>"
],
"country": [
"<string>"
],
"device_type": [
"<string>"
],
"domain": [
"<string>"
],
"organization_id": [
"<string>"
],
"platform": [
"<string>"
],
"region": [
"<string>"
],
"user_agent": [
"<string>"
]
}
}
]
}
'{
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"rules": [
{
"match": {
"browser": [
"<string>"
],
"client_id": [
"<string>"
],
"connection": [
"<string>"
],
"connection_type": [
"<string>"
],
"country": [
"<string>"
],
"device_type": [
"<string>"
],
"domain": [
"<string>"
],
"organization_id": [
"<string>"
],
"platform": [
"<string>"
],
"region": [
"<string>"
],
"user_agent": [
"<string>"
]
},
"not_match": {
"browser": [
"<string>"
],
"client_id": [
"<string>"
],
"connection": [
"<string>"
],
"connection_type": [
"<string>"
],
"country": [
"<string>"
],
"device_type": [
"<string>"
],
"domain": [
"<string>"
],
"organization_id": [
"<string>"
],
"platform": [
"<string>"
],
"region": [
"<string>"
],
"user_agent": [
"<string>"
]
}
}
],
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>"
}セグメントを更新
IDでセグメントを部分更新します。指定したフィールドのみ更新されます。rules を送信すると、rules 配列全体が置き換えられます。
PATCH
https://{tenantDomain}/api/v2
/
experimentation
/
segments
/
{id}
セグメントを更新します。
curl --request PATCH \
--url https://{tenantDomain}/api/v2/experimentation/segments/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"name": "<string>",
"rules": [
{
"match": {
"browser": [
"<string>"
],
"client_id": [
"<string>"
],
"connection": [
"<string>"
],
"connection_type": [
"<string>"
],
"country": [
"<string>"
],
"device_type": [
"<string>"
],
"domain": [
"<string>"
],
"organization_id": [
"<string>"
],
"platform": [
"<string>"
],
"region": [
"<string>"
],
"user_agent": [
"<string>"
]
},
"not_match": {
"browser": [
"<string>"
],
"client_id": [
"<string>"
],
"connection": [
"<string>"
],
"connection_type": [
"<string>"
],
"country": [
"<string>"
],
"device_type": [
"<string>"
],
"domain": [
"<string>"
],
"organization_id": [
"<string>"
],
"platform": [
"<string>"
],
"region": [
"<string>"
],
"user_agent": [
"<string>"
]
}
}
]
}
'{
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"rules": [
{
"match": {
"browser": [
"<string>"
],
"client_id": [
"<string>"
],
"connection": [
"<string>"
],
"connection_type": [
"<string>"
],
"country": [
"<string>"
],
"device_type": [
"<string>"
],
"domain": [
"<string>"
],
"organization_id": [
"<string>"
],
"platform": [
"<string>"
],
"region": [
"<string>"
],
"user_agent": [
"<string>"
]
},
"not_match": {
"browser": [
"<string>"
],
"client_id": [
"<string>"
],
"connection": [
"<string>"
],
"connection_type": [
"<string>"
],
"country": [
"<string>"
],
"device_type": [
"<string>"
],
"domain": [
"<string>"
],
"organization_id": [
"<string>"
],
"platform": [
"<string>"
],
"region": [
"<string>"
],
"user_agent": [
"<string>"
]
}
}
],
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>"
}承認
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
パスパラメータ
更新するセグメントのID。
ボディ
application/jsonapplication/x-www-form-urlencoded
セグメントの部分更新。指定されたフィールドのみ更新されます。rules を送信すると、rules 配列全体が置き換えられます。
⌘I