public sealed class UpdateApiRequest : IMessage<UpdateApiRequest>, IEquatable<UpdateApiRequest>, IDeepCloneable<UpdateApiRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the API Gateway v1 API class UpdateApiRequest.
Field mask is used to specify the fields to be overwritten in the
Api resource by the update.
The fields specified in the update_mask are relative to the resource, not
the full request. A field will be overwritten if it is in the mask. If the
user does not provide a mask then all fields will be overwritten.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eUpdateApiRequest\u003c/code\u003e class is part of the Google Cloud API Gateway v1 API, with the latest version being 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class is a request message used for updating API resources within the \u003ccode\u003eApiGatewayService\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateApiRequest\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides two constructors, a default one and another that takes an \u003ccode\u003eUpdateApiRequest\u003c/code\u003e instance as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eIt has two main properties: \u003ccode\u003eApi\u003c/code\u003e, which represents the API resource to be updated, and \u003ccode\u003eUpdateMask\u003c/code\u003e, which specifies the fields to be overwritten.\u003c/p\u003e\n"]]],[],null,["# API Gateway v1 API - Class UpdateApiRequest (2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.UpdateApiRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/2.3.0/Google.Cloud.ApiGateway.V1.UpdateApiRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/2.2.0/Google.Cloud.ApiGateway.V1.UpdateApiRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/2.1.0/Google.Cloud.ApiGateway.V1.UpdateApiRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/2.0.0/Google.Cloud.ApiGateway.V1.UpdateApiRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/1.1.0/Google.Cloud.ApiGateway.V1.UpdateApiRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/1.0.0/Google.Cloud.ApiGateway.V1.UpdateApiRequest) \n\n public sealed class UpdateApiRequest : IMessage\u003cUpdateApiRequest\u003e, IEquatable\u003cUpdateApiRequest\u003e, IDeepCloneable\u003cUpdateApiRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the API Gateway v1 API class UpdateApiRequest.\n\nRequest message for ApiGatewayService.UpdateApi \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e UpdateApiRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UpdateApiRequest](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.UpdateApiRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpdateApiRequest](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.UpdateApiRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UpdateApiRequest](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.UpdateApiRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.ApiGateway.V1](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ApiGateway.V1.dll\n\nConstructors\n------------\n\n### UpdateApiRequest()\n\n public UpdateApiRequest()\n\n### UpdateApiRequest(UpdateApiRequest)\n\n public UpdateApiRequest(UpdateApiRequest other)\n\nProperties\n----------\n\n### Api\n\n public Api Api { get; set; }\n\nRequired. API resource.\n\n### UpdateMask\n\n public FieldMask UpdateMask { get; set; }\n\nField mask is used to specify the fields to be overwritten in the\nApi resource by the update.\nThe fields specified in the update_mask are relative to the resource, not\nthe full request. A field will be overwritten if it is in the mask. If the\nuser does not provide a mask then all fields will be overwritten."]]