@@ -3778,6 +3778,55 @@ paths:
3778
3778
$ref : ' #/definitions/v1beta1PolicyRequestBody'
3779
3779
tags :
3780
3780
- Policy
3781
+ /v1beta1/policies/{id}/replace :
3782
+ post :
3783
+ summary : Replace policy
3784
+ description : Deletes an existing policy and create new.
3785
+ operationId : FrontierService_ReplacePolicy
3786
+ responses :
3787
+ " 200 " :
3788
+ description : A successful response.
3789
+ schema :
3790
+ $ref : ' #/definitions/v1beta1ReplacePolicyResponse'
3791
+ " 400 " :
3792
+ description : Bad Request - The request was malformed or contained invalid parameters.
3793
+ schema :
3794
+ $ref : ' #/definitions/rpcStatus'
3795
+ " 401 " :
3796
+ description : Unauthorized - Authentication is required
3797
+ schema :
3798
+ $ref : ' #/definitions/rpcStatus'
3799
+ " 403 " :
3800
+ description : Forbidden - User does not have permission to access the resource
3801
+ schema :
3802
+ $ref : ' #/definitions/rpcStatus'
3803
+ " 404 " :
3804
+ description : Not Found - The requested resource was not found
3805
+ schema :
3806
+ $ref : ' #/definitions/rpcStatus'
3807
+ " 500 " :
3808
+ description : Internal Server Error. Returned when theres is something wrong with Frontier server.
3809
+ schema :
3810
+ $ref : ' #/definitions/rpcStatus'
3811
+ default :
3812
+ description : An unexpected error response.
3813
+ schema :
3814
+ $ref : ' #/definitions/rpcStatus'
3815
+ parameters :
3816
+ - name : id
3817
+ in : path
3818
+ required : true
3819
+ type : string
3820
+ - name : body
3821
+ in : body
3822
+ required : true
3823
+ schema :
3824
+ type : object
3825
+ properties :
3826
+ body :
3827
+ $ref : ' #/definitions/v1beta1PolicyRequestBody'
3828
+ tags :
3829
+ - Policy
3781
3830
/v1beta1/preferences :
3782
3831
get :
3783
3832
summary : List platform preferences
@@ -7922,6 +7971,8 @@ definitions:
7922
7971
type : object
7923
7972
v1beta1RemoveOrganizationUserResponse :
7924
7973
type : object
7974
+ v1beta1ReplacePolicyResponse :
7975
+ type : object
7925
7976
v1beta1Resource :
7926
7977
type : object
7927
7978
properties :
0 commit comments