Admin - Add a rule to existing policy
POST/admin/policies/add-rule-to-policy
Add an existing system rule to an existing policy. The rule is identified by its rule_id and the policy is identified by its policy_id.
Request
Header Parameters
AUTHORIZATION stringrequired
The AUTHORIZATION header must be set to the Admin token. which is set on Vertex setup
- application/json
Body
required
policy_idPolicyIdrequired
rule_idRuleIdrequired
Responses
- 200
- 400
- 401
- 404
- 500
- application/json
- Schema
- Example (from schema)
Schema
err_msgstringrequired
err_typestringrequired
Possible values: [already_performed_keygen, bad_n_and_t_params, bad_request_params, batch_too_large, executor_result, key_id_not_exists, key_operation_before_keygen, policy_in_use_by_keys, policy_in_use_by_users, policy_not_found, policy_validation_failed, room_creation_problem, rule_in_use, rule_not_found, rule_not_in_policy, unique_violation, user_id_not_exists, you_have_to_be_admin]
{
"err_msg": "string",
"err_type": "already_performed_keygen"
}
- application/json
- Schema
- Example (from schema)
Schema
err_msgstringrequired
err_typestringrequired
Possible values: [access_denied]
{
"err_msg": "string",
"err_type": "access_denied"
}
- application/json
- Schema
- Example (from schema)
Schema
err_msgstringrequired
err_typestringrequired
Possible values: [not_found]
{
"err_msg": "string",
"err_type": "not_found"
}
- application/json
- Schema
- Example (from schema)
Schema
err_msgstringrequired
err_typestringrequired
Possible values: [internal_problem]
{
"err_msg": "string",
"err_type": "internal_problem"
}