Segment - Replace Records
POST /segments/v2/{bucket}/segment/{uid}/action/replace
Creates a new resultset from the segment and replaces all records within it. This is an asynchronous operation that returns a notification URI to track progress.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The bucket (client) name
Example
exampleUsually the final element in the URI, an alphanumeric unique identifier
Example
6305f074683e800f3abe809eQuery Parameters
Section titled “Query Parameters ”Additional rules to filter the segment before replacement
object
Whether to run in safe mode (additional validation checks)
Number of records to process in each batch
Whether to return detailed progress information
Responses
Section titled “ Responses ”Successfully initiated bulk replace operation
object
URI of the notification that will track replace progress
Example
/example/person/6305f074683e800f3abe809e/object
URIs are unique identifiers for resources in the system,
they are structured as follows /bucket/resource_type/uid/
Example
/example/person/6305f074683e800f3abe809e/object
Bad request error
object
A human readable description of the error
A concise error message
A machine readable error type
Example
{ "error": { "param": "batch_size", "message": "Batch size must be less than 2500" }}Authentication error