PUT api/taxonProfile/stringItem

Creates or updates a taxon profile item. 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 profile item.

TaxonProfileItem
NameDescriptionTypeAdditional information
taxonId

Gets or sets the taxon id.

integer

None.

attributeName

Gets or sets the name of the attribute.

string

None.

attributeValue

Gets or sets the attribute value.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "taxonId": 1,
  "attributeName": "sample string 2",
  "attributeValue": "sample string 3"
}

application/xml, text/xml

Sample:
<taxonProfileItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nbdc.WebServices.Models">
  <attributeName>sample string 2</attributeName>
  <attributeValue>sample string 3</attributeValue>
  <taxonId>1</taxonId>
</taxonProfileItem>

Response Information

Resource Description

HTTP 200 if updated successfully, else HTTP 500 and an error message.

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.