younifyd
Menu

Create Rows

Create rows

POST/api/v1/cms/databases/{cmsId}/tables/{tableIdentifier}/rows

Use it in a workflow

  1. Add a step and choose the Plasmic connector.
  2. Pick the Create Rows action (under Rows).
  3. Fill in the fields below, then reference the result from later steps as {{createRows.response.data}}.

Request

Path parameters

cmsIdstringrequired

ID of the CMS database.

tableIdentifierstringrequired

Identifier of the CMS model (table).

Query parameters

publishboolean

Set to 1 to publish the row immediately.

Request body

Enter the body as JSON in the step's Body field.

rowsarray<object>required
identifierstring

Optional unique identifier of the row.

dataobject

Field values. Localized fields are objects keyed by locale tag, with an empty string key for the default locale. Null clears a field.

json
{
  "rows": [
    {
      "identifier": "string",
      "data": {}
    }
  ]
}

Response

Returns 200 with an object. Read it in later steps with {{createRows.response.data.<field>}}.

rowsarray<object>
idstring
tableIdstring
createdAtstring
updatedAtstring
identifierstring
dataobject

Published field values.

draftDataobject

Draft field values.

json
{
  "rows": [
    {
      "id": "string",
      "tableId": "string",
      "createdAt": "string",
      "updatedAt": "string",
      "identifier": "string",
      "data": {},
      "draftData": {}
    }
  ]
}

Need more? See the Plasmic guide for connection setup and behaviour shared by every action.

Was this page helpful?