Skip to main content
PATCH
Node.js

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer rw_....

Required scope: project:write.

Path Parameters

id
string
required

Segment identifier returned by Rewrite.

Example:

"748395130237498412"

Body

application/json
name
string

Updated segment name.

Required string length: 1 - 80
Example:

"priority-customers"

description
string | null

Updated description.

Required string length: 1 - 280
Example:

"Customers that must always receive high-priority messaging."

color
string | null

Updated hexadecimal accent color.

Pattern: ^#[0-9A-Fa-f]{6}$
Example:

"#2563EB"

Response

200 - application/json

Successful response

ok
boolean
required
data
null
required