latestOpenAPI 3.0.02026-08-137192110.1 KB

75294f591cc2

Transforms

List transform versions

List the SQL revision history for a transform, ordered by most recent first.

get/transforms/{id}/versions

Path parameters

idstring required
Example:OoORhGXUVjsqFG

The ID of the transform.

Query parameters

starting_afterstring
Example:ewK8sDoLNI4CFR

The cursor to use in pagination. Use the value of the next_cursor field from the response of a previous list request.

limitinteger

The number of items to return in a single page.

Response

has_moreboolean required

Indicates whether there are more items to be fetched in the subsequent pages.

next_cursorstring

The cursor to use in pagination. Use this value as starting_after to get the next page.

Example response

{
  "has_more": true,
  "next_cursor": "VeN1GjhVIq1D9h",
  "data": [
    {
      "id": "sqlq_abc123",
      "sql_template": "SELECT * FROM {{raw.stripe.payments}}",
      "parameters": [
        {
          "weld_tag": "raw.stripe.payments",
          "type": "raw_view",
          "dw_item_id": "stripe_schema.payments"
        }
      ],
      "is_published": true,
      "user_id": "user_123",
      "created_at": "2020-01-01T00:00:00.000Z"
    }
  ]
}