Change a test policy
PATCH/v1/bubble-policies/:id
Changes the fields sent and keeps the rest; a list sent replaces the old one whole. The result is checked as on create, and the project is checked again only when project_id is sent.
Operator only: needs a system-scoped token.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 413
- 415
- 422
- default
OK
Bad Request.
invalid_request: The body is not a single JSON object, names a field this operation does not take, or gives a value of the wrong type.
Unauthorized.
unauthenticated: The token is missing, expired or not valid.
Forbidden.
forbidden: The token is not a system-scoped admin token.
Not Found.
not_found: No test policy with this id exists.
Conflict.
conflict: Another test policy already has the new name. Or a new project_id names no project here, or one that is disabled.
Request Entity Too Large.
body_too_large: The body is larger than the service accepts.
Unsupported Media Type.
unsupported_media_type: The body is not sent as application/json.
Unprocessable Entity.
validation_failed: The policy after the change breaks a rule of creation. fields names each field.
An error, as an RFC 7807 problem document.