diff --git a/website/docs/api/admin/segments.mdx b/website/docs/api/admin/segments.mdx index aa0a62b38e8..9aa8c2a194c 100644 --- a/website/docs/api/admin/segments.mdx +++ b/website/docs/api/admin/segments.mdx @@ -3,7 +3,7 @@ title: /api/admin/segments --- import ApiRequest from '@site/src/components/ApiRequest' export const basePath = "api/admin/segments" -export const path = (p) => `api/admin/segments/${p}` +export const path = (p) => `${basePath}/${p}` :::info Availability The segments API is available to Pro and Enterprise users from Unleash 4.10. @@ -82,7 +82,7 @@ Use a JSON object with the following properties to create a new segment. ## Get segment by ID Retrieves the segment with the specified ID. -`} title="Retrieve the segment with the provided ID."/> +")} title="Retrieve the segment with the provided ID."/>
@@ -112,7 +112,7 @@ No segment with the provided ID exists. Replace the data of the specified segment with the provided payload. -`} title="Update a segment with new data." +")} title="Update a segment with new data." payload={{ "name": "my-segment", "description": "this is a newly provided description.", @@ -138,7 +138,7 @@ No segment with the provided ID exists. Delete the request with the specified ID. -`} title="Delete a segment." /> +")} title="Delete a segment." />
@@ -162,7 +162,7 @@ The segment is being used by at least one strategy and can not be deleted. To de Retrieve all strategies that use the specified segment. Returns a list of [activation strategy objects](#ifeaturestrategy). -/strategies`} title="Retrieve all activation strategies that use the specified segment."/> +/strategies")} title="Retrieve all activation strategies that use the specified segment."/>
@@ -195,7 +195,7 @@ No segment with the provided id exists. Retrieve all segments that are applied to the specified strategy. Returns a list of [segment objects](#isegment). -`} title="Retrieve all segments that are used by the specified strategy."/> +")} title="Retrieve all segments that are used by the specified strategy."/>
@@ -227,7 +227,7 @@ No strategy with the provided id exists. Replace the segments applied to the specified activation strategy with the provided segment list. -