Rename a table with the Inbound API

Change a table’s display name and verify it using the same table ID.

Use an active test table whose schema the API key’s acting user can manage. This workflow changes the display name that people see. Integrations can continue to use the table ID.

Propose the new display name

Read GET /entities/{entityId} and check data.tableCapabilities.canManageSchema. Note the table’s current data.name and data.displayName. Copy data.updatedAt exactly into NIXA_TABLE_UPDATED_AT so the proposal is prepared against the version you reviewed.

Use the base URL from API Access and load the key from your secret manager. Replace 123 with the table ID.

curl --silent --show-error --fail-with-body \
  --request POST "${NIXA_API_BASE_URL}/schema-changes/proposals" \
  -H "X-API-Key: ${NIXA_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data "{\"operation\":{\"kind\":\"configure_table\",\"entityId\":123,\"expectedSchemaVersion\":\"${NIXA_TABLE_UPDATED_AT}\",\"changes\":{\"displayName\":\"Reading backlog\"}}}"

In the HTTP 201 response, check data.status is ready and review data.issues. In data.operations, find the update_table operation and compare its before.displayName and after.displayName. If the table version changed, read the schema again and review the latest name before preparing another proposal.

Apply the rename and confirm it by ID

Set NIXA_PROPOSAL_ID and NIXA_PROPOSAL_HASH from the reviewed data.proposalId and data.proposalHash. Choose a unique NIXA_APPLICATION_KEY for this rename.

curl --silent --show-error --fail-with-body \
  --request POST "${NIXA_API_BASE_URL}/schema-changes/proposals/${NIXA_PROPOSAL_ID}/apply" \
  -H "X-API-Key: ${NIXA_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data "{\"proposalHash\":\"${NIXA_PROPOSAL_HASH}\",\"idempotencyKey\":\"${NIXA_APPLICATION_KEY}\",\"confirmDestructive\":false}"
  1. Save data.application.applicationId. Check GET /schema-changes/applications/{applicationId} and wait for data.status to reach verified. If it reports failed or recovery_required, inspect the application before trying again.
  2. Read GET /entities/{entityId} using the same ID. Check data.displayName shows Reading backlog and data.name matches the earlier schema.

If the apply response is interrupted, check the table before preparing another rename. To retry the original apply request, reuse the proposal ID, hash, application key, and confirmation value. You can also rename the table in Mainbase.

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy a question to get started

  • How do I create a Kanban view?
  • How do I invite a teammate?
  • Why is a record missing from this view?