POST api/taxonImage/updateOrder
Reorders taxon images. This service is secured so a valid nbdcToken cookie needs to be provided in a request header.
Request Information
URI Parameters
None.
Body Parameters
The taxon image orders for all images associated with the taxon.
Collection of TaxonImageOrderName | Description | Type | Additional information |
---|---|---|---|
taxonImageId |
Gets or sets the taxon image id. |
integer |
None. |
imageNo |
Gets or sets the image no. |
integer |
None. |
Request Formats
application/json, text/json
Sample:
[ { "taxonImageId": 1, "imageNo": 2 }, { "taxonImageId": 1, "imageNo": 2 } ]
application/xml, text/xml
Sample:
<ArrayOftaxonImageOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nbdc.WebServices.Models.TaxonImage"> <taxonImageOrder> <imageNo>2</imageNo> <taxonImageId>1</taxonImageId> </taxonImageOrder> <taxonImageOrder> <imageNo>2</imageNo> <taxonImageId>1</taxonImageId> </taxonImageOrder> </ArrayOftaxonImageOrder>
Response Information
Resource Description
HTTP 200 if reordered 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. |