v3

latestOpenAPI 3.0.3MIT2026-07-313881,2455.6 MB
Database table fields

Changes the primary field of a table to the one provided in the body payload.

post/api/database/fields/table/{table_id}/change-primary-field/

Path parameters

table_idinteger required

The table where to update the primary field in.

Headers

ClientSessionIdstring uuid

An optional header that marks the action performed by this request as having occurred in a particular client session. Then using the undo/redo endpoints with the same ClientSessionId header this action can be undone/redone.

ClientUndoRedoActionGroupIdstring uuid

An optional header that marks the action performed by this request as having occurred in a particular action group.Then calling the undo/redo endpoint with the same ClientSessionId header, all the actions belonging to the same action group can be undone/redone together in a single API call.

Request body

new_primary_field_idinteger required

The ID of the new primary field.

Response

OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR