PUT api/matrix/{id}/row?sheet={sheet}&version={version}&enableRow={enableRow}&sortByColumnType={sortByColumnType}

Adds a row of data to a matrix sheet, when a matrix has a unique identifier set on a column the row will be updated if it already exists.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The unique matrix id

integer

Required

sheet

The sheet name to update, unless specified the first sheet will be updated.

string

None.

version

What version to update, unless specified the default version will be updated.

string

None.

enableRow

If true, any previously disabled row with the specified values will be enabled.

boolean

Default value is False

sortByColumnType

If a ColumnType is supplied, will re-sort the matrix after update on that column. If the column type is invalid, no sort is performed.

string

Default value is

Body Parameters

An array of values to add to the row, the number of values must match the number of columns in the sheet.

Collection of string

Request Formats

application/json, text/json

Sample:
[
  "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

MatrixListDTO

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.