POST api/matrix/clone/{source}?matrixTitle={matrixTitle}&cloneMatrixData={cloneMatrixData}

Clones an existing matrix / ratecard, optionally updating the tagging, and optionally retaining the existing data.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
source

The title or numeric ID of the matrix/ratecard to be cloned.

string

Required

matrixTitle

The title of the new matrix/ratecard (must be unique).

string

Required

cloneMatrixData

If true, the data in the source matrix/ratecard is also copied. If not, the data my be specified in the values array (see above).

boolean

Default value is False

Body Parameters

An array rows, each of which is an array of column values. All columns must be populated.

Collection of Collection of string

Request Formats

application/json, text/json

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

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.