Skip to main content
Version: 202601

Update member group

PUT 

/openapi/2026-01/loyalty/member-groups/:member_group_id

Update an existing member segment

Request

Path Parameters

    member_group_id stringrequired

    Member group ID from path

Bodyrequired

    namestring

    Group name

    member_condition object

    Member filter condition

    keystring
    operatorstring
    valueGoogleProtobufValue

    Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.

    extra object

    Member condition extra config (time window, categories, products, regions)

    time_rangestring

    Time range window: all / 7d / 30d

    categories object[]

    Categories filter, 2-level nested array ([["a","a-1"],["b"]])

  • Array [
  • valuesGoogleProtobufValue[]

    Repeated field of dynamically typed values.

  • ]
  • product_idsstring[]

    Product id list

    country_and_province object

    Country+province map: key=country code, value=province codes (["ALL"]=whole country)

    property name* ListValue

    ListValue is a wrapper around a repeated field of values.

    The JSON representation for ListValue is JSON array.

    valuesGoogleProtobufValue[]

    Repeated field of dynamically typed values.

    relationstring
    childrenundefined[]
    idempotency_keystring

    Optional idempotency key

Responses

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object

    Update member group response

    member_group_idstring
    namestring
    is_real_timeboolean
    member_countint64
    created_atstring
    updated_atstring
    member_condition object

    Member condition expression (recursive tree)

    keystring
    operatorstring
    valueGoogleProtobufValue

    Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.

    extra object

    Member condition extra config (time window, categories, products, regions)

    time_rangestring

    Time range window: all / 7d / 30d

    categories object[]

    Categories filter, 2-level nested array ([["a","a-1"],["b"]])

  • Array [
  • valuesGoogleProtobufValue[]

    Repeated field of dynamically typed values.

  • ]
  • product_idsstring[]

    Product id list

    country_and_province object

    Country+province map: key=country code, value=province codes (["ALL"]=whole country)

    property name* ListValue

    ListValue is a wrapper around a repeated field of values.

    The JSON representation for ListValue is JSON array.

    valuesGoogleProtobufValue[]

    Repeated field of dynamically typed values.

    relationstring
    childrenundefined[]