Share via


Common Azure Data Manager for Agriculture request headers

The following request headers are common:

Header Required Type Description
Authorization Required String Provide a valid bearer token for authorized API calls. You might need to clear your browser cache if you tried unauthenticated calls before.
api-version Required String Provide a valid supported API version.
Content-Type Required (on PUT, PATCH and POST) String For PATCH operations, it must be application/merge-patch+json.

For attachments, must be set to the Mime type of the attachment. For more information on Mime types.

For all other tasks, must be application/json.
If-Match Optional (applicable only on PUT and DELETE) String Used to make operation conditional for optimistic concurrency. The value should be the etag value of the resource.
If-None-Match Optional (applicable only on GET) String Makes operation conditional to only execute if the resource has changed. The value should be the etag of the resource.
User-Agent Optional String A string that specifies the client user agent performing the request. The recommended format is {user agent name}/{version}.
x-ms-client-request-id Optional String A client supplied identifier for the operation, which is echoed in the server response. The recommended value is a unique identifier.
Accept Optional String This header is used to inform the server by the client that which content type is understandable by the client expressed as MIME-types.
Accept-language Optional String This header tells the server about all the languages that the client can understand.
azure-context-authorization Optional(Required for solution partner) String Authorization token provided by solution partners in solution framework.