Turn a personal table into a workspace table with the Inbound API
Apply a reviewed access plan, verify ownership and permissions, and check the table’s Agent triggers.
Start with a review of how members’ access would change. Use a personal test table and an API key whose acting user has Manage Database and unrestricted access to the table. The ownership change is permanent.
Prepare a proposal from the reviewed choices
Save the JSON response from the permission review as promotion-review.json. The response includes data.choices and data.reviewHash. Keep both values from the same review. Replace 123 in this example with the reviewed table ID. Use the base URL from API Access and load the API key from your secret manager.
Use jq to create the proposal body. The command checks that the review belongs to the table you intend to change.
jq -e --argjson tableId 123 '
.data | select(.entityId == $tableId and .scope == "table_permissions")
| {operation: {kind: "promote_table", entityId, choices, reviewHash}}
' promotion-review.json > promotion-proposal.json &&
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-binary @promotion-proposal.json
In the HTTP 201 response, check that data.status is ready and review data.issues. In data.operations, confirm the intended table changes from PERSONAL to WORKSPACE and the promotion contains the reviewed access choices.
Apply and verify the change
Set NIXA_PROPOSAL_ID and NIXA_PROPOSAL_HASH from the reviewed proposal. Set NIXA_APPLICATION_KEY to a unique value for this application. Keep all three values so you can retry the same apply if the response is interrupted.
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}"
- Save
data.application.applicationIdand readGET /schema-changes/applications/{applicationId}untildata.statusisverified. If the application fails or the review became stale, inspect the application and refresh the permission review before starting another proposal. - Using a key that retains read access, call
GET /entities/{entityId}with the same table ID. Check thatdata.ownershipTypeisWORKSPACEanddata.ownerIdisnull. Ask a member whose access changed to try the action they need on a known record. - The conversion pauses the table’s Agent triggers. Review their actions and execution permissions before enabling the triggers again.
You can also perform the conversion 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 assistantCopy 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?