Skip to main content
PATCH
/
api
/
v1
/
teams
/
{team_id}
/
segments
/
{segment_id}
Update Segment
curl --request PATCH \
  --url https://api.member.dev/api/v1/teams/{team_id}/segments/{segment_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "attributes": {
      "conditions": {
        "groups": [
          {
            "conditions": [
              {
                "operator": "<string>",
                "type": "<string>",
                "value": {
                  "text": "<string>"
                }
              }
            ],
            "logic": "<string>"
          }
        ],
        "version": 123
      },
      "description": "<string>",
      "is_active": true,
      "name": "<string>",
      "slug": "<string>"
    },
    "type": "<string>"
  }
}
'
{
  "data": {
    "attributes": {
      "conditions": {
        "groups": [
          {
            "conditions": [
              {
                "operator": "<string>",
                "type": "<string>",
                "value": {
                  "text": "<string>"
                },
                "display": {}
              }
            ],
            "logic": "<string>"
          }
        ],
        "version": 123
      },
      "created_at": "2023-11-07T05:31:56Z",
      "created_by": "<string>",
      "deleted_at": "2023-11-07T05:31:56Z",
      "description": "<string>",
      "is_active": true,
      "name": "<string>",
      "slug": "<string>",
      "team_id": "<string>",
      "updated_at": "2023-11-07T05:31:56Z",
      "validation_error": {}
    },
    "id": "<string>",
    "type": "segment"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

team_id
string
required
segment_id
string
required

Body

application/vnd.api+json
data
SegmentUpdateResource · object
required

Response

Successful Response

data
SegmentResource · object
required