POST api/travel/day/exclusion

Updates the exclusion array with new exclusion values. This replaces the entire exclusion array with the provided values.

Request Information

URI Parameters

None.

Body Parameters

An array of exclusion string values to set. Sent in the request body as JSON array.

Collection of string

Request Formats

application/json, text/json

Sample:
[
  "sample string 1",
  "sample string 2"
]

application/javascript

Sample:
["sample string 1","sample string 2"]

application/xml, text/xml

Sample:
<ArrayOfString xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <string>sample string 1</string>
  <string>sample string 2</string>
</ArrayOfString>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'String[]'.

Response Information

Resource Description

Returns HTTP 204 (No Content) if the exclusion array was successfully updated.

IHttpActionResult

None.

Response Formats

application/json, text/json, application/javascript

Sample:

Sample not available.