Update a segment
PATCH
/segments/{id}授权
AuthorizationBearer 令牌 · header必填A BillionSend API key (bs_…).
路径参数
idstring<uuid>必填请求体
application/jsonnamestring最小长度 1
domain_idstring<uuid> | nullBillionSend extension: id of one of your domains. A broadcast to this segment must then be sent from that domain (422 otherwise), so an audience is never mailed under another brand or against another brand's opt-outs. null or omitted: a segment of the whole team, sendable from any domain. On update, null makes the segment a team-wide one again.
filterSegmentFilter | null显示属性隐藏属性
matchstring必填允许值:
allanyconditionsobject[]必填最多 50 项
显示属性隐藏属性
object 数组fieldstring必填opstring必填valuestring | null必填最大长度 500
响应
200
Segment updated
objectstring必填允许值:
segmentidstring<uuid>必填namestring必填domain_idstring<uuid> | null必填BillionSend extension: the domain the segment is bound to; null for a team-wide segment
filterSegmentFilter | null必填显示属性隐藏属性
matchstring必填允许值:
allanyconditionsobject[]必填最多 50 项
显示属性隐藏属性
object 数组fieldstring必填opstring必填valuestring | null必填最大长度 500
created_atstring必填401
Missing, malformed, unknown or revoked API key
statusCodenumber必填namestring必填messagestring必填403
A key held to one domain bound this to another domain, or unbound it
statusCodenumber必填namestring必填messagestring必填404
Not found
statusCodenumber必填namestring必填messagestring必填422
Validation error, or a domain_id that is not one of your domains
statusCodenumber必填namestring必填messagestring必填429
Over the rate limit (rate_limit_exceeded, with Retry-After)
statusCodenumber必填namestring必填messagestring必填