@@ -3886,6 +3886,36 @@ func (c *FusionAuthClient) PatchEmailTemplateWithContext(ctx context.Context, em
3886
3886
return & resp , & errors , err
3887
3887
}
3888
3888
3889
+ // PatchEntity
3890
+ // Updates, via PATCH, the Entity with the given Id.
3891
+ //
3892
+ // string entityId The Id of the Entity Type to update.
3893
+ // EntityRequest request The request that contains just the new Entity information.
3894
+ func (c * FusionAuthClient ) PatchEntity (entityId string , request map [string ]interface {}) (* EntityResponse , * Errors , error ) {
3895
+ return c .PatchEntityWithContext (context .TODO (), entityId , request )
3896
+ }
3897
+
3898
+ // PatchEntityWithContext
3899
+ // Updates, via PATCH, the Entity with the given Id.
3900
+ //
3901
+ // string entityId The Id of the Entity Type to update.
3902
+ // EntityRequest request The request that contains just the new Entity information.
3903
+ func (c * FusionAuthClient ) PatchEntityWithContext (ctx context.Context , entityId string , request map [string ]interface {}) (* EntityResponse , * Errors , error ) {
3904
+ var resp EntityResponse
3905
+ var errors Errors
3906
+
3907
+ restClient := c .Start (& resp , & errors )
3908
+ err := restClient .WithUri ("/api/entity" ).
3909
+ WithUriSegment (entityId ).
3910
+ WithJSONBody (request ).
3911
+ WithMethod (http .MethodPatch ).
3912
+ Do (ctx )
3913
+ if restClient .ErrorRef == nil {
3914
+ return & resp , nil , err
3915
+ }
3916
+ return & resp , & errors , err
3917
+ }
3918
+
3889
3919
// PatchEntityType
3890
3920
// Updates, via PATCH, the Entity Type with the given Id.
3891
3921
//
@@ -3916,6 +3946,100 @@ func (c *FusionAuthClient) PatchEntityTypeWithContext(ctx context.Context, entit
3916
3946
return & resp , & errors , err
3917
3947
}
3918
3948
3949
+ // PatchEntityTypePermission
3950
+ // Patches the permission with the given Id for the entity type.
3951
+ //
3952
+ // string entityTypeId The Id of the entityType that the permission belongs to.
3953
+ // string permissionId The Id of the permission to patch.
3954
+ // EntityTypeRequest request The request that contains the new permission information.
3955
+ func (c * FusionAuthClient ) PatchEntityTypePermission (entityTypeId string , permissionId string , request map [string ]interface {}) (* EntityTypeResponse , * Errors , error ) {
3956
+ return c .PatchEntityTypePermissionWithContext (context .TODO (), entityTypeId , permissionId , request )
3957
+ }
3958
+
3959
+ // PatchEntityTypePermissionWithContext
3960
+ // Patches the permission with the given Id for the entity type.
3961
+ //
3962
+ // string entityTypeId The Id of the entityType that the permission belongs to.
3963
+ // string permissionId The Id of the permission to patch.
3964
+ // EntityTypeRequest request The request that contains the new permission information.
3965
+ func (c * FusionAuthClient ) PatchEntityTypePermissionWithContext (ctx context.Context , entityTypeId string , permissionId string , request map [string ]interface {}) (* EntityTypeResponse , * Errors , error ) {
3966
+ var resp EntityTypeResponse
3967
+ var errors Errors
3968
+
3969
+ restClient := c .Start (& resp , & errors )
3970
+ err := restClient .WithUri ("/api/entity/type" ).
3971
+ WithUriSegment (entityTypeId ).
3972
+ WithUriSegment ("permission" ).
3973
+ WithUriSegment (permissionId ).
3974
+ WithJSONBody (request ).
3975
+ WithMethod (http .MethodPatch ).
3976
+ Do (ctx )
3977
+ if restClient .ErrorRef == nil {
3978
+ return & resp , nil , err
3979
+ }
3980
+ return & resp , & errors , err
3981
+ }
3982
+
3983
+ // PatchForm
3984
+ // Patches the form with the given Id.
3985
+ //
3986
+ // string formId The Id of the form to patch.
3987
+ // FormRequest request The request object that contains the new form information.
3988
+ func (c * FusionAuthClient ) PatchForm (formId string , request map [string ]interface {}) (* FormResponse , * Errors , error ) {
3989
+ return c .PatchFormWithContext (context .TODO (), formId , request )
3990
+ }
3991
+
3992
+ // PatchFormWithContext
3993
+ // Patches the form with the given Id.
3994
+ //
3995
+ // string formId The Id of the form to patch.
3996
+ // FormRequest request The request object that contains the new form information.
3997
+ func (c * FusionAuthClient ) PatchFormWithContext (ctx context.Context , formId string , request map [string ]interface {}) (* FormResponse , * Errors , error ) {
3998
+ var resp FormResponse
3999
+ var errors Errors
4000
+
4001
+ restClient := c .Start (& resp , & errors )
4002
+ err := restClient .WithUri ("/api/form" ).
4003
+ WithUriSegment (formId ).
4004
+ WithJSONBody (request ).
4005
+ WithMethod (http .MethodPatch ).
4006
+ Do (ctx )
4007
+ if restClient .ErrorRef == nil {
4008
+ return & resp , nil , err
4009
+ }
4010
+ return & resp , & errors , err
4011
+ }
4012
+
4013
+ // PatchFormField
4014
+ // Patches the form field with the given Id.
4015
+ //
4016
+ // string fieldId The Id of the form field to patch.
4017
+ // FormFieldRequest request The request object that contains the new form field information.
4018
+ func (c * FusionAuthClient ) PatchFormField (fieldId string , request map [string ]interface {}) (* FormFieldResponse , * Errors , error ) {
4019
+ return c .PatchFormFieldWithContext (context .TODO (), fieldId , request )
4020
+ }
4021
+
4022
+ // PatchFormFieldWithContext
4023
+ // Patches the form field with the given Id.
4024
+ //
4025
+ // string fieldId The Id of the form field to patch.
4026
+ // FormFieldRequest request The request object that contains the new form field information.
4027
+ func (c * FusionAuthClient ) PatchFormFieldWithContext (ctx context.Context , fieldId string , request map [string ]interface {}) (* FormFieldResponse , * Errors , error ) {
4028
+ var resp FormFieldResponse
4029
+ var errors Errors
4030
+
4031
+ restClient := c .Start (& resp , & errors )
4032
+ err := restClient .WithUri ("/api/form/field" ).
4033
+ WithUriSegment (fieldId ).
4034
+ WithJSONBody (request ).
4035
+ WithMethod (http .MethodPatch ).
4036
+ Do (ctx )
4037
+ if restClient .ErrorRef == nil {
4038
+ return & resp , nil , err
4039
+ }
4040
+ return & resp , & errors , err
4041
+ }
4042
+
3919
4043
// PatchGroup
3920
4044
// Updates, via PATCH, the group with the given Id.
3921
4045
//
@@ -3946,6 +4070,36 @@ func (c *FusionAuthClient) PatchGroupWithContext(ctx context.Context, groupId st
3946
4070
return & resp , & errors , err
3947
4071
}
3948
4072
4073
+ // PatchIPAccessControlList
4074
+ // Update the IP Access Control List with the given Id.
4075
+ //
4076
+ // string accessControlListId The Id of the IP Access Control List to patch.
4077
+ // IPAccessControlListRequest request The request that contains the new IP Access Control List information.
4078
+ func (c * FusionAuthClient ) PatchIPAccessControlList (accessControlListId string , request map [string ]interface {}) (* IPAccessControlListResponse , * Errors , error ) {
4079
+ return c .PatchIPAccessControlListWithContext (context .TODO (), accessControlListId , request )
4080
+ }
4081
+
4082
+ // PatchIPAccessControlListWithContext
4083
+ // Update the IP Access Control List with the given Id.
4084
+ //
4085
+ // string accessControlListId The Id of the IP Access Control List to patch.
4086
+ // IPAccessControlListRequest request The request that contains the new IP Access Control List information.
4087
+ func (c * FusionAuthClient ) PatchIPAccessControlListWithContext (ctx context.Context , accessControlListId string , request map [string ]interface {}) (* IPAccessControlListResponse , * Errors , error ) {
4088
+ var resp IPAccessControlListResponse
4089
+ var errors Errors
4090
+
4091
+ restClient := c .Start (& resp , & errors )
4092
+ err := restClient .WithUri ("/api/ip-acl" ).
4093
+ WithUriSegment (accessControlListId ).
4094
+ WithJSONBody (request ).
4095
+ WithMethod (http .MethodPatch ).
4096
+ Do (ctx )
4097
+ if restClient .ErrorRef == nil {
4098
+ return & resp , nil , err
4099
+ }
4100
+ return & resp , & errors , err
4101
+ }
4102
+
3949
4103
// PatchIdentityProvider
3950
4104
// Updates, via PATCH, the identity provider with the given Id.
3951
4105
//
@@ -4364,6 +4518,36 @@ func (c *FusionAuthClient) PatchUserConsentWithContext(ctx context.Context, user
4364
4518
return & resp , & errors , err
4365
4519
}
4366
4520
4521
+ // PatchWebhook
4522
+ // Patches the webhook with the given Id.
4523
+ //
4524
+ // string webhookId The Id of the webhook to update.
4525
+ // WebhookRequest request The request that contains the new webhook information.
4526
+ func (c * FusionAuthClient ) PatchWebhook (webhookId string , request map [string ]interface {}) (* WebhookResponse , * Errors , error ) {
4527
+ return c .PatchWebhookWithContext (context .TODO (), webhookId , request )
4528
+ }
4529
+
4530
+ // PatchWebhookWithContext
4531
+ // Patches the webhook with the given Id.
4532
+ //
4533
+ // string webhookId The Id of the webhook to update.
4534
+ // WebhookRequest request The request that contains the new webhook information.
4535
+ func (c * FusionAuthClient ) PatchWebhookWithContext (ctx context.Context , webhookId string , request map [string ]interface {}) (* WebhookResponse , * Errors , error ) {
4536
+ var resp WebhookResponse
4537
+ var errors Errors
4538
+
4539
+ restClient := c .Start (& resp , & errors )
4540
+ err := restClient .WithUri ("/api/webhook" ).
4541
+ WithUriSegment (webhookId ).
4542
+ WithJSONBody (request ).
4543
+ WithMethod (http .MethodPatch ).
4544
+ Do (ctx )
4545
+ if restClient .ErrorRef == nil {
4546
+ return & resp , nil , err
4547
+ }
4548
+ return & resp , & errors , err
4549
+ }
4550
+
4367
4551
// ReactivateApplication
4368
4552
// Reactivates the application with the given Id.
4369
4553
//
@@ -8979,6 +9163,36 @@ func (c *FusionAuthClient) UpdateEntityTypePermissionWithContext(ctx context.Con
8979
9163
return & resp , & errors , err
8980
9164
}
8981
9165
9166
+ // UpdateFamily
9167
+ // Updates a family with a given Id.
9168
+ //
9169
+ // string familyId The Id of the family to update.
9170
+ // FamilyRequest request The request object that contains all the new family information.
9171
+ func (c * FusionAuthClient ) UpdateFamily (familyId string , request FamilyRequest ) (* FamilyResponse , * Errors , error ) {
9172
+ return c .UpdateFamilyWithContext (context .TODO (), familyId , request )
9173
+ }
9174
+
9175
+ // UpdateFamilyWithContext
9176
+ // Updates a family with a given Id.
9177
+ //
9178
+ // string familyId The Id of the family to update.
9179
+ // FamilyRequest request The request object that contains all the new family information.
9180
+ func (c * FusionAuthClient ) UpdateFamilyWithContext (ctx context.Context , familyId string , request FamilyRequest ) (* FamilyResponse , * Errors , error ) {
9181
+ var resp FamilyResponse
9182
+ var errors Errors
9183
+
9184
+ restClient := c .Start (& resp , & errors )
9185
+ err := restClient .WithUri ("/api/user/family" ).
9186
+ WithUriSegment (familyId ).
9187
+ WithJSONBody (request ).
9188
+ WithMethod (http .MethodPut ).
9189
+ Do (ctx )
9190
+ if restClient .ErrorRef == nil {
9191
+ return & resp , nil , err
9192
+ }
9193
+ return & resp , & errors , err
9194
+ }
9195
+
8982
9196
// UpdateForm
8983
9197
// Updates the form with the given Id.
8984
9198
//
0 commit comments