Update Subscriber’s Segment

The UpdateSubscriberSegment API in OCS.io facilitates the modification of a subscriber’s segment, allowing for customization to address specific operational needs.

Please note that attributes are not versioned, meaning that when you update subscriber information, the new values take effect immediately. This change does not impact previously processed data.

API Overview

Fields Required for Updating Subscriber’s Segment

The following table lists and describes the fields required to update a subscriber’s segment through the UpdateSubscriberSegment API:

Field Description

subscriber

ID (Ref ID / External ID) of the Subscriber.

subscriberSegment

New Segment of the Subscriber. Subscriber Segment must be configured.

Detailed API documentation and endpoint specifics are available here.

Request Validations

The following validations are performed when updating a subscriber’s segment:

Update Subscriber’s Segment Example

Use the following request’s body to update a subscriber’s segment:

{
  "requestId": "{{$guid}}",
  "subscriber": {
    "externalId": "subscriber_external_id"
  },
  "subscriberSegment": "new_subscriber_segment_code"
}

The outcome of the API call is as follows:

  • The segment of the subscriber with external ID subscriber_external_id is updated to configured segment with code new_subscriber_segment_code.