Lark Base icon

Lark Base

Interact with LarkBase API

Field → Create Field

AI-generated

Overview

This node operation allows users to create a new field in a specified table within a LarkBase base. It is useful for dynamically adding fields to tables in LarkBase, such as adding a new text, number, or other type of field to a database table. For example, a user can create a new text field named "Text" in a table by providing the base ID, table ID, and field data in JSON format.

Use Case Examples

  1. Creating a new text field in a LarkBase table to store additional information.
  2. Adding a custom field to a project management table to track specific attributes.

Properties

Name Meaning
Base ID The identifier of the LarkBase base where the table resides. Required to specify the context for the field creation.
Table ID The identifier of the table within the base where the new field will be created. Required to specify the target table.
Field Data A JSON object describing the field to be created, including properties like field name and type. Required to define the new field's characteristics.

Output

JSON

  • json - The JSON response from the LarkBase API containing details of the created field.

Dependencies

  • LarkBase API access with valid app ID and app secret credentials

Troubleshooting

  • Ensure that the Base ID and Table ID are correct and correspond to existing resources in LarkBase.
  • Verify that the field data JSON is correctly formatted and includes all required properties such as field_name and type.
  • Check that the API credentials (app ID and app secret) are valid and have the necessary permissions to create fields.
  • Common error messages include 'Get tenant_token failed' indicating authentication issues, or 'Unknown operation' if the operation parameter is incorrect. These can be resolved by verifying credentials and input parameters.

Discussion