---
updatedAt: 2025-09-22T23:14:18.000Z
agentTools:
  projectIndex: https://docs.budibase.com/llms.txt
---

# Create a row

Creates a row within the specified table.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Budibase API",
    "description": "The public API for Budibase apps and its services.",
    "version": "3.3.0"
  },
  "servers": [
    {
      "url": "https://budibase.app/api/public/v1",
      "description": "Budibase Cloud API",
      "variables": {
        "apiKey": {
          "default": "<user API key>",
          "description": "The API key of the user to assume for API call."
        },
        "appId": {
          "default": "<App ID>",
          "description": "The ID of the app the calls will be executed within the context of, this should start with app_ (production) or app_dev (development)."
        }
      }
    }
  ],
  "components": {
    "parameters": {
      "appId": {
        "in": "header",
        "name": "x-budibase-app-id",
        "required": true,
        "description": "The ID of the app which this request is targeting.",
        "schema": {
          "default": "{{appId}}",
          "type": "string"
        }
      },
      "tableId": {
        "in": "path",
        "name": "tableId",
        "required": true,
        "description": "The ID of the table which this request is targeting.",
        "schema": {
          "type": "string"
        }
      }
    },
    "examples": {
      "inputRow": {
        "value": {
          "_id": "ro_ta_5b1649e42a5b41dea4ef7742a36a7a70_e6dc7e38cf1343b2b56760265201cda4",
          "type": "row",
          "tableId": "ta_5b1649e42a5b41dea4ef7742a36a7a70",
          "name": "Mike",
          "age": 30,
          "relationship": [
            "ro_ta_..."
          ]
        }
      },
      "row": {
        "value": {
          "data": {
            "_id": "ro_ta_5b1649e42a5b41dea4ef7742a36a7a70_e6dc7e38cf1343b2b56760265201cda4",
            "type": "row",
            "tableId": "ta_5b1649e42a5b41dea4ef7742a36a7a70",
            "name": "Mike",
            "age": 30,
            "relationship": [
              {
                "primaryDisplay": "Joe",
                "_id": "ro_ta_..."
              }
            ]
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-budibase-api-key",
        "description": "Your individual API key, this will provide access based on the configured RBAC settings of your user."
      }
    },
    "schemas": {
      "row": {
        "description": "The row to be created/updated, based on the table schema.",
        "type": "object",
        "additionalProperties": {
          "description": "Key value properties of any type, depending on the table schema."
        }
      },
      "rowOutput": {
        "type": "object",
        "properties": {
          "data": {
            "description": "The row to be created/updated, based on the table schema.",
            "type": "object",
            "additionalProperties": {
              "description": "Key value properties of any type, depending on the table schema."
            },
            "properties": {
              "_id": {
                "description": "The ID of the row.",
                "type": "string"
              },
              "tableId": {
                "description": "The ID of the table this row comes from.",
                "type": "string"
              }
            },
            "required": [
              "tableId",
              "_id"
            ]
          }
        },
        "required": [
          "data"
        ]
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/tables/{tableId}/rows": {
      "post": {
        "operationId": "rowCreate",
        "summary": "Create a row",
        "description": "Creates a row within the specified table.",
        "tags": [
          "rows"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/tableId"
          },
          {
            "$ref": "#/components/parameters/appId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/row"
              },
              "examples": {
                "row": {
                  "$ref": "#/components/examples/inputRow"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the created row, including the ID which has been generated for it. This can be found in the Budibase portal, viewed under the developer information.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rowOutput"
                },
                "examples": {
                  "row": {
                    "$ref": "#/components/examples/row"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```