younifyd
Menu

Query Rows

Query rows

GET/api/v1/cms/databases/{cmsId}/tables/{tableIdentifier}/query

Use it in a workflow

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

Request

Path parameters

cmsIdstringrequired

ID of the CMS database.

tableIdentifierstringrequired

Identifier of the CMS model (table).

Query parameters

qstring

URL-encoded JSON object with where (filters), limit (default 100) and offset (default 0), for example {"where":{"slug":"home"},"limit":10}.

draftboolean

Set to 1 to load draft (unpublished) content. Requires the secret token.

localestring

Locale tag of the localized version to load, for example ar-JO.

Response

Returns 200 with an object. Read it in later steps with {{queryRows.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?