POST api/taxonImage
Creates a new taxon image. 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 create taxon image input.
CreateTaxonImageDataContractName | Description | Type | Additional information |
---|---|---|---|
taxonId |
Gets or sets the taxon id. |
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:
{ "taxonId": 1, "image": "QEA=", "attribution": "sample string 2" }
application/xml, text/xml
Sample:
<createTaxonImageDataContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nbdc.WebServices.Models.TaxonImage"> <attribution>sample string 2</attribution> <image>QEA=</image> <taxonId>1</taxonId> </createTaxonImageDataContract>
Response Information
Resource Description
HTTP 201 and the link to the image if created 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. |