Create or update a project routing expression Technical preview

PUT /_project_routing/{name}

Required authorization

  • Cluster privileges: manage_project_routing,manage

Path parameters

  • name string Required

    The name of project routing expression

application/json

Body Required

  • expression string Required

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • acknowledged boolean Required

      For a successful response, this value is always true. On failure, an exception is returned instead.

PUT /_project_routing/{name}
curl \
 --request PUT 'http://api.example.com/_project_routing/{name}' \
 --header "Content-Type: application/json" \
 --data '"{\n  \"expression\" : \"_csp:aws AND _region:us*\"\n}"'
Request example
{
  "expression" : "_csp:aws AND _region:us*"
}
Response examples (200)
{
  "acknowledged": true
}