Segments
Update a segment
Renames a segment; a dynamic one's `rules` and a static one's double opt-in settings (exx extensions) change too.
PATCH
Renames a segment; a dynamic one's rules and a static one's double opt-in settings (exx extensions) change too.
bearerheader
AuthorizationBearer <token>id*stringFormat
uuidapplication/json- body
Fields left out stay as they are.
doi_from?|An exx extension; null clears it (refused while doi_required).
doi_required?|An exx extension; a static segment's only.
name?string|nullrules?|An exx extension: a dynamic segment's new rule (a static segment takes none).
Success
application/json- response
The answer to an update.
id*stringFormat
uuidobject*stringcurl -X PATCH 'https://api.exx.sh/segments/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "object": "string"}