API Access Control
Update Route
Update an existing route
patch/resources/routes/v1/{id}
Request
- Base URLhttp://localhost:8181
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Request body
Example request
{
"method": "GET",
"path": "/users",
"policyType": "allow",
"description": "This is an example route"
}Response
Example response
{
"id": "b796239c-6641-4cf3-9ff3-658ad4049131",
"method": "GET",
"path": "/users",
"priority": 100,
"description": "This is an example route",
"policyType": "allow",
"rules": [
{
"id": "b796239c-6641-4cf3-9ff3-658ad4049131",
"routeId": "b796239c-6641-4cf3-9ff3-658ad4049131",
"type": "feature",
"value": "my-feature-key"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.