Passer au contenu principal
PATCH
/
v1
/
customers
/
segments
/
{id}
Update segment
curl --request PATCH \
  --url https://api.hyperline.co/v1/customers/segments/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "rules": [
    {
      "conditions": [
        {
          "field": "country",
          "value": [
            "FR"
          ]
        }
      ]
    }
  ]
}
'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "rules": [
    {
      "id": "<string>",
      "conditions": [
        {
          "field": "country",
          "value": [
            "FR"
          ]
        }
      ]
    }
  ],
  "created_at": "2023-12-25",
  "updated_at": "2023-12-25"
}

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

id
string
requis

Corps

application/json
name
string
description
string | null
rules
object[]
Minimum array length: 1

Réponse

id
string
requis
name
string
requis
description
string | null
requis
rules
object[]
requis
created_at
string<date>
requis
updated_at
string<date>
requis