メインコンテンツへスキップ
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>"
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

id
string
必須

更新するセグメントのID。

ボディ

セグメントの部分更新。指定されたフィールドのみ更新されます。rules を送信すると、rules 配列全体が置き換えられます。

description
string | null

セグメントの説明

Required string length: 3 - 1024
Pattern: ^(?!.*\x00)\S(.*\S)?$
name
string

セグメントのわかりやすい名前

Required string length: 3 - 255
Pattern: ^(?!.*\x00)\S(.*\S)?$
rules
object[]

rules 配列全体を置き換えます。

Minimum array length: 1

レスポンス

セグメントを正常に更新しました。

created_at
string<date-time>
必須
id
string
必須
Pattern: ^seg_[A-HJ-NP-Za-km-z1-9]+$
name
string
必須
rules
object[]
必須
type
enum<string>
必須
利用可能なオプション:
self,
auth0
updated_at
string<date-time>
必須
description
string