PUT api/Account/{accountNumber}/SetCustomData

Sets the custom data on an account

Request Information

URI Parameters

NameDescriptionTypeAdditional information
accountNumber

The account number

string

Required

Body Parameters

The custom data object

CustomDataDto
NameDescriptionTypeAdditional information
CustomCode

One or more custom codes

Collection of string

None.

CustomValue

One or more custom values

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomCode": [
    "sample string 1",
    "sample string 2"
  ],
  "CustomValue": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<CustomDataDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RestAPI.Models">
  <CustomCode xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </CustomCode>
  <CustomValue xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </CustomValue>
</CustomDataDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

A boolean indicating success

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.