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
/segments/{id}

Renames a segment; a dynamic one's rules and a static one's double opt-in settings (exx extensions) change too.

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. 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|null
rules?|

An exx extension: a dynamic segment's new rule (a static segment takes none).

Response Body

Success

application/json
  1. response

The answer to an update.

id*string
Formatuuid
object*string
Example Request
curl -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"}