POST api/v2/poet/poems/batch

Request Information

URI Parameters

None.

Body Parameters

BatchRequest
NameDescriptionTypeAdditional information
operations

Collection of BatchOperation

None.

Request Formats

application/json, text/json

Sample:
{
  "operations": [
    {
      "action": "sample string 1",
      "localId": 2,
      "id": 3,
      "poemContent": "sample string 4",
      "keyName": "sample string 5",
      "categoryId": 6
    },
    {
      "action": "sample string 1",
      "localId": 2,
      "id": 3,
      "poemContent": "sample string 4",
      "keyName": "sample string 5",
      "categoryId": 6
    }
  ]
}

application/xml, text/xml

Sample:
<BatchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoetAPI.Controllers.PoetV2.Models">
  <operations>
    <BatchOperation>
      <action>sample string 1</action>
      <categoryId>6</categoryId>
      <id>3</id>
      <keyName>sample string 5</keyName>
      <localId>2</localId>
      <poemContent>sample string 4</poemContent>
    </BatchOperation>
    <BatchOperation>
      <action>sample string 1</action>
      <categoryId>6</categoryId>
      <id>3</id>
      <keyName>sample string 5</keyName>
      <localId>2</localId>
      <poemContent>sample string 4</poemContent>
    </BatchOperation>
  </operations>
</BatchRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.