Update segment
Partial update: omitted fields keep their current values. Empty `name` is 400. Saving rules with zero conditions is 400 (use Everyone). At most 50 conditions and 1,000 values per `in` list. Renaming onto an active Segment name returns 409 `segment_name_taken`.
Partial update: omitted fields keep their current values. Empty name is 400. Saving rules with zero conditions is 400 (use Everyone). At most 50 conditions and 1,000 values per in list. Renaming onto an active Segment name returns 409 segment_name_taken.
bearerAuthAuthorizationBearer <API key>Project API key (cr_sk_...)
id*stringuuidapplication/json- body
Partial update body. Omitted fields keep their current values. When name is sent it must be non-empty. When rules is sent it must have at least one condition (at most 50) and in lists at most 1,000 values.
name?string1 <= lengthdescription?stringrules?Updated
application/json- response
segment_id*stringuuidstatus*string"active""archived"updated_at*stringdate-timecurl -X PUT 'https://api.comraid.io/segments/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'{ "segment_id": "0dbbf761-5b2d-4647-8bfa-2b714456749c", "status": "active", "updated_at": "2019-08-24T14:15:22Z"}