# Update a lead segment **PATCH /lead-segments/{id}** Update a lead segment by its ID ## Servers - https://api.staging.pexipengage.com/enterprises/acme: https://api.staging.pexipengage.com/enterprises/acme () ## Authentication methods - O auth2 ## Parameters ### Headers - **Authorization** (string) Bearer token used for authorization - **X-Correlation-Id** (string) Unique identifier to allow referencing a particular transaction or event chain ### Path parameters - **id** (string) Primary identifier of the requested resource ### Body: application/json (object) - **description** (string | null) - **code** (string) REPEATVISITOR ## Responses ### 200 Successful operation #### Body: application/json (object) - **data** (object) ### 404 Resource not found #### Body: application/json (object) - **errors** (array[object]) ### 422 Business validation failed * `LEAD_SEGMENT_CODE_ALREADY_IN_USE` See [Error codes](#topic-error-codes) #### Body: application/json (object) - **errors** (array[object]) [Powered by Bump.sh](https://bump.sh)