PUT api/taxonImage/{taxonImageId}
Updates the taxon image. This service is secured so a valid nbdcToken cookie needs to be provided in a request header.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
taxonImageId |
The taxon image id. |
integer |
Required |
Body Parameters
The taxon image.
TaxonImageName | Description | Type | Additional information |
---|---|---|---|
taxonImageId |
Gets or sets the image id. |
integer |
None. |
taxonId |
Gets or sets the taxon id. |
integer |
None. |
imageNo |
Gets or sets the image no. |
integer |
None. |
image |
Gets or sets the image. |
Collection of byte |
None. |
attribution |
Gets or sets the attribution. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "taxonImageId": 1, "taxonId": 2, "imageNo": 1, "image": "QEA=", "attribution": "sample string 3" }
application/xml, text/xml
Sample:
<taxonImage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nbdc.WebServices.Models.TaxonImage"> <attribution>sample string 3</attribution> <image>QEA=</image> <imageNo>1</imageNo> <taxonId>2</taxonId> <taxonImageId>1</taxonImageId> </taxonImage>
Response Information
Resource Description
HTTP 200 if updated successfully, else HTTP 500 and an error message.
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |