POST api/Import/SyncRequestorCustomers

Request Information

URI Parameters

None.

Body Parameters

Collection of CustomerImportPost
NameDescriptionTypeAdditional information
Id

integer

None.

ExternalId

string

None.

Operations

Collection of JsonPatchOperation

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "ExternalId": "sample string 1",
    "Operations": [
      {
        "Operation": 0,
        "FromPath": "sample string 1",
        "ParsedFromPath": null,
        "Path": "sample string 2",
        "ParsedPath": null,
        "Value": {}
      },
      {
        "Operation": 0,
        "FromPath": "sample string 1",
        "ParsedFromPath": null,
        "Path": "sample string 2",
        "ParsedPath": null,
        "Value": {}
      }
    ]
  },
  {
    "Id": 1,
    "ExternalId": "sample string 1",
    "Operations": [
      {
        "Operation": 0,
        "FromPath": "sample string 1",
        "ParsedFromPath": null,
        "Path": "sample string 2",
        "ParsedPath": null,
        "Value": {}
      },
      {
        "Operation": 0,
        "FromPath": "sample string 1",
        "ParsedFromPath": null,
        "Path": "sample string 2",
        "ParsedPath": null,
        "Value": {}
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomerImportPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts.Import">
  <CustomerImportPost>
    <Operations xmlns:d3p1="http://schemas.datacontract.org/2004/07/JsonPatch" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
      <d3p1:JsonPatchOperation>
        <d3p1:FromPath>sample string 1</d3p1:FromPath>
        <d3p1:Operation>add</d3p1:Operation>
        <d3p1:ParsedFromPath xmlns:d5p1="http://schemas.datacontract.org/2004/07/JsonPatch.Paths.Components" i:nil="true" />
        <d3p1:ParsedPath xmlns:d5p1="http://schemas.datacontract.org/2004/07/JsonPatch.Paths.Components" i:nil="true" />
        <d3p1:Path>sample string 2</d3p1:Path>
        <d3p1:Value />
      </d3p1:JsonPatchOperation>
      <d3p1:JsonPatchOperation>
        <d3p1:FromPath>sample string 1</d3p1:FromPath>
        <d3p1:Operation>add</d3p1:Operation>
        <d3p1:ParsedFromPath xmlns:d5p1="http://schemas.datacontract.org/2004/07/JsonPatch.Paths.Components" i:nil="true" />
        <d3p1:ParsedPath xmlns:d5p1="http://schemas.datacontract.org/2004/07/JsonPatch.Paths.Components" i:nil="true" />
        <d3p1:Path>sample string 2</d3p1:Path>
        <d3p1:Value />
      </d3p1:JsonPatchOperation>
    </Operations>
    <ExternalId>sample string 1</ExternalId>
    <Id>1</Id>
  </CustomerImportPost>
  <CustomerImportPost>
    <Operations xmlns:d3p1="http://schemas.datacontract.org/2004/07/JsonPatch" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
      <d3p1:JsonPatchOperation>
        <d3p1:FromPath>sample string 1</d3p1:FromPath>
        <d3p1:Operation>add</d3p1:Operation>
        <d3p1:ParsedFromPath xmlns:d5p1="http://schemas.datacontract.org/2004/07/JsonPatch.Paths.Components" i:nil="true" />
        <d3p1:ParsedPath xmlns:d5p1="http://schemas.datacontract.org/2004/07/JsonPatch.Paths.Components" i:nil="true" />
        <d3p1:Path>sample string 2</d3p1:Path>
        <d3p1:Value />
      </d3p1:JsonPatchOperation>
      <d3p1:JsonPatchOperation>
        <d3p1:FromPath>sample string 1</d3p1:FromPath>
        <d3p1:Operation>add</d3p1:Operation>
        <d3p1:ParsedFromPath xmlns:d5p1="http://schemas.datacontract.org/2004/07/JsonPatch.Paths.Components" i:nil="true" />
        <d3p1:ParsedPath xmlns:d5p1="http://schemas.datacontract.org/2004/07/JsonPatch.Paths.Components" i:nil="true" />
        <d3p1:Path>sample string 2</d3p1:Path>
        <d3p1:Value />
      </d3p1:JsonPatchOperation>
    </Operations>
    <ExternalId>sample string 1</ExternalId>
    <Id>1</Id>
  </CustomerImportPost>
</ArrayOfCustomerImportPost>

Response Information

Resource Description

IHttpActionResult

None.