Saltar al contenido principal
GET
https://{tenantDomain}/api/v2
/
experimentation
/
segments
/
{id}
Obtiene un segmento por ID.
curl --request GET \
  --url https://{tenantDomain}/api/v2/experimentation/segments/{id} \
  --header 'Authorization: Bearer <token>'
{
  "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>"
}

Autorizaciones

Authorization
string
header
requerido

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

Parámetros de ruta

id
string
requerido

El ID del segmento que se va a recuperar.

Respuesta

Segmento recuperado correctamente.

created_at
string<date-time>
requerido
id
string
requerido
Pattern: ^seg_[A-HJ-NP-Za-km-z1-9]+$
name
string
requerido
rules
object[]
requerido
type
enum<string>
requerido
Opciones disponibles:
self,
auth0
updated_at
string<date-time>
requerido
description
string