---
updatedAt: 2026-10-30T08:58:39.000Z
agentTools:
  projectIndex: https://docs.wati.io/llms.txt
---

# Update saved segment

Retained legacy exception: Update a saved segment; V3 evaluation does not persist changes.

Update a saved segment; V3 evaluation does not persist changes.

Omit or set a field to null to leave it unchanged. groups uses the same filters as createCustomSegment. This PUT is the documented update method; an existing POST alias is retained for compatibility.

### Permissions

For API access tokens and OIDC tokens, satisfy at least one of: `api`, `wati_integration:write`. Legacy JWTs do not use this scope check. Allowed roles: DEVELOPER, ADMINISTRATOR, EXTERNAL_ADMINISTRATOR, PARTNER_ADMINISTRATOR, AI_OPERATOR or API_TOKEN. FLEXI_TRIAL and FLEXI_PAID are denied even with another listed role. Workspace and billing restrictions also apply. Saved-segment operations require account availability and a qualifying Pro or Business subscription. Denial can return 400 with result=false and info; scopes alone do not grant access.

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "WATI API",
    "version": "2.6",
    "description": "Documentation contract version 2.6. Use V3 for supported business operations, adopting its request, response, defaults and pagination. Retain V1/V2 only for the business exceptions listed in Introduction. API route versions are independent of this artifact version.\n\nSend Authorization: Bearer <your-token> with the workspace credential and regional API host. API route version does not select the authentication mechanism. Endpoint scopes, roles, account availability and channel access still apply; consult Authentication and each operation.\n\nChannel support is operation-specific. GET /api/ext/v3/channels lists additional connected channels and may exclude the default WhatsApp number; do not infer full channel coverage or permission to send from discovery alone.\n\nInspect HTTP status and business result separately. Some operations report business failure or partial recipient failure in HTTP 200. Authorization errors may have no JSON body. A 429 can indicate a rate or usage limit. For unknown write outcomes, reconcile state before retrying; do not assume idempotency.\n\nCreate webhook subscriptions through the documented V2 exception or the dashboard, then manage them through V3. Use supported event types for the workspace and distinguish request acceptance from final message delivery.",
    "contact": {
      "name": "WATI Support",
      "url": "https://docs.wati.io"
    }
  },
  "servers": [
    {
      "url": "https://live-mt-server.wati.io",
      "description": "WATI API host. Legacy v1 and v2 endpoints require tenantId in the path; v3 endpoints do not."
    }
  ],
  "paths": {
    "/{tenantId}/api/v1/updateCustomSegment/{segmentId}": {
      "put": {
        "summary": "Update saved segment",
        "operationId": "Updatesavedsegment",
        "tags": [
          "Legacy exceptions"
        ],
        "description": "Retained legacy exception: Update a saved segment; V3 evaluation does not persist changes.\n\nUpdate a saved segment; V3 evaluation does not persist changes.\n\nOmit or set a field to null to leave it unchanged. groups uses the same filters as createCustomSegment. This PUT is the documented update method; an existing POST alias is retained for compatibility.\n\n### Permissions\n\nFor API access tokens and OIDC tokens, satisfy at least one of: `api`, `wati_integration:write`. Legacy JWTs do not use this scope check. Allowed roles: DEVELOPER, ADMINISTRATOR, EXTERNAL_ADMINISTRATOR, PARTNER_ADMINISTRATOR, AI_OPERATOR or API_TOKEN. FLEXI_TRIAL and FLEXI_PAID are denied even with another listed role. Workspace and billing restrictions also apply. Saved-segment operations require account availability and a qualifying Pro or Business subscription. Denial can return 400 with result=false and info; scopes alone do not grant access.",
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Workspace ID; use the regional API host and matching workspace credential."
          },
          {
            "name": "segmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Identifier of the saved custom segment to update."
          }
        ],
        "responses": {
          "200": {
            "description": "Updated saved segment.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "boolean"
                    },
                    "info": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string",
                          "nullable": true
                        },
                        "refreshType": {
                          "type": "integer",
                          "nullable": true
                        },
                        "status": {
                          "type": "integer"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "memberCount": {
                          "type": "integer",
                          "nullable": true
                        },
                        "groups": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "conditions": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "attribute": {
                                      "type": "string",
                                      "nullable": true
                                    },
                                    "operator": {
                                      "type": "string",
                                      "nullable": true,
                                      "description": "For Shopify event parameter comparisons, a supported numeric OperatorType code as a string; 104 means Between."
                                    },
                                    "value": {
                                      "type": "string",
                                      "nullable": true
                                    },
                                    "filterType": {
                                      "type": "integer",
                                      "format": "int32",
                                      "enum": [
                                        0,
                                        1,
                                        3
                                      ],
                                      "description": "0 contact attribute; 1 profile signal; 3 Shopify event."
                                    },
                                    "valueType": {
                                      "type": "string",
                                      "nullable": true
                                    },
                                    "values": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      },
                                      "nullable": true
                                    },
                                    "unit": {
                                      "type": "string",
                                      "nullable": true
                                    },
                                    "eventType": {
                                      "type": "integer",
                                      "format": "int32",
                                      "nullable": true,
                                      "enum": [
                                        10,
                                        11,
                                        12,
                                        13,
                                        14,
                                        15,
                                        18,
                                        19,
                                        20
                                      ],
                                      "description": "Required for filterType 3. 10 abandoned checkout, 11 order confirmation, 12 order fulfilled, 13 order shipment, 14 order returned, 15 add to cart, 18 customer created, 19 product viewed, 20 page viewed."
                                    },
                                    "attributePath": {
                                      "type": "string",
                                      "nullable": true,
                                      "description": "Event parameter dot path. Omit for an event-only condition."
                                    },
                                    "dataType": {
                                      "type": "integer",
                                      "format": "int32",
                                      "nullable": true,
                                      "description": "Event parameter data type: 0 string, 1 number, 2 boolean, 3 datetime."
                                    },
                                    "secondValue": {
                                      "type": "string",
                                      "nullable": true,
                                      "description": "Required upper bound when Shopify operator 104 (Between) is used."
                                    },
                                    "eventPresence": {
                                      "type": "string",
                                      "nullable": true,
                                      "enum": [
                                        "done",
                                        "not_done"
                                      ],
                                      "description": "Whether the event happened; defaults to done."
                                    },
                                    "timeWindowDays": {
                                      "type": "integer",
                                      "format": "int32",
                                      "nullable": true,
                                      "minimum": 0,
                                      "description": "Look back N days; null or zero means any time."
                                    }
                                  },
                                  "additionalProperties": false,
                                  "description": "Data model with fields: attribute, operator, value, filterType, valueType...."
                                },
                                "nullable": true
                              },
                              "rulesOperator": {
                                "type": "string",
                                "nullable": true,
                                "description": "Use or to combine conditions with OR; other values default to and."
                              }
                            },
                            "additionalProperties": false,
                            "description": "Data model with fields: conditions."
                          },
                          "nullable": true
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request, missing segment, account eligibility or operation failure; inspect result/info.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "boolean"
                    },
                    "info": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized; a JSON body is not guaranteed."
          },
          "403": {
            "description": "Access denied by scopes, roles, workspace or billing; a JSON body is not guaranteed."
          },
          "429": {
            "description": "Rate or usage limit exceeded."
          },
          "500": {
            "description": "Unexpected failure. Reconcile state before retrying a write.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "boolean"
                    },
                    "info": {}
                  }
                }
              }
            }
          }
        },
        "x-wati-permissions": {
          "scopeRequirementGroups": [
            {
              "anyOf": [
                "api",
                "wati_integration:write"
              ]
            }
          ],
          "groupOperator": "allOf",
          "appliesTo": [
            "ApiAccessToken",
            "OIDC"
          ],
          "legacyJwtScopeCheck": "skipped",
          "conditional": true,
          "sourceCommit": "0dcbc42c7f28992be90d1853cf205693889d9c14"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "refreshType": {
                    "type": "integer",
                    "enum": [
                      1,
                      2,
                      null
                    ],
                    "nullable": true,
                    "description": "1 Static; 2 Dynamic. Omit/null leaves unchanged."
                  },
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "description": {
                    "type": "string",
                    "nullable": true
                  },
                  "groups": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "conditions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "attribute": {
                                "type": "string",
                                "nullable": true
                              },
                              "operator": {
                                "type": "string",
                                "nullable": true,
                                "description": "For Shopify event parameter comparisons, a supported numeric OperatorType code as a string; 104 means Between."
                              },
                              "value": {
                                "type": "string",
                                "nullable": true
                              },
                              "filterType": {
                                "type": "integer",
                                "format": "int32",
                                "enum": [
                                  0,
                                  1,
                                  3
                                ],
                                "description": "0 contact attribute; 1 profile signal; 3 Shopify event."
                              },
                              "valueType": {
                                "type": "string",
                                "nullable": true
                              },
                              "values": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "nullable": true
                              },
                              "unit": {
                                "type": "string",
                                "nullable": true
                              },
                              "eventType": {
                                "type": "integer",
                                "format": "int32",
                                "nullable": true,
                                "enum": [
                                  10,
                                  11,
                                  12,
                                  13,
                                  14,
                                  15,
                                  18,
                                  19,
                                  20
                                ],
                                "description": "Required for filterType 3. 10 abandoned checkout, 11 order confirmation, 12 order fulfilled, 13 order shipment, 14 order returned, 15 add to cart, 18 customer created, 19 product viewed, 20 page viewed."
                              },
                              "attributePath": {
                                "type": "string",
                                "nullable": true,
                                "description": "Event parameter dot path. Omit for an event-only condition."
                              },
                              "dataType": {
                                "type": "integer",
                                "format": "int32",
                                "nullable": true,
                                "description": "Event parameter data type: 0 string, 1 number, 2 boolean, 3 datetime."
                              },
                              "secondValue": {
                                "type": "string",
                                "nullable": true,
                                "description": "Required upper bound when Shopify operator 104 (Between) is used."
                              },
                              "eventPresence": {
                                "type": "string",
                                "nullable": true,
                                "enum": [
                                  "done",
                                  "not_done"
                                ],
                                "description": "Whether the event happened; defaults to done."
                              },
                              "timeWindowDays": {
                                "type": "integer",
                                "format": "int32",
                                "nullable": true,
                                "minimum": 0,
                                "description": "Look back N days; null or zero means any time."
                              }
                            },
                            "additionalProperties": false,
                            "description": "Data model with fields: attribute, operator, value, filterType, valueType...."
                          },
                          "nullable": true
                        },
                        "rulesOperator": {
                          "type": "string",
                          "nullable": true,
                          "description": "Use or to combine conditions with OR; other values default to and."
                        }
                      },
                      "additionalProperties": false,
                      "description": "Data model with fields: conditions."
                    },
                    "nullable": true
                  }
                }
              },
              "example": {
                "name": "Returning customers"
              }
            }
          }
        },
        "x-wati-documentation": {
          "discovery": "legacy-exception",
          "reason": "Update a saved segment; V3 evaluation does not persist changes."
        },
        "x-internal": false
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token from your WATI Dashboard > API Settings. Pass as `Authorization: Bearer <token>`."
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
```