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

Clones an existing metadata matrix, optionally including its data and structure.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
source

The title or ID of the matrix to clone.

string

Required

matrixTitle

The title of the new matrix to be created.

string

Required

cloneMatrixData

If true, clones all data from the source matrix. Default is false.

boolean

Default value is False

Body Parameters

Optional list of values to insert into the new matrix if `cloneMatrixData` is false.

Collection of Collection of string

Request Formats

application/json, text/json, application/scim+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

On success: HTTP 200 OK with the new matrix ID in the response body. On failure: HTTP 400 Bad Request with a message indicating the error.

IHttpActionResult

None.

Response Formats

application/json, text/json, application/scim+json

Sample:

Sample not available.