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
OR

Changes

Changed in 4 of the 6 revisions of this API.516

  • f3396317d932114See the full diff
    • removed the required property oneOf[ButtonFieldField]/error from the response with the 200 status

      response-required-property-removed

    • removed the optional property oneOf[ButtonFieldField]/url_formula from the response with the 200 status

      response-optional-property-removed

    • the response property oneOf[CreatedOnFieldField]/name became required for the status 200

      response-property-became-required

    • the response property oneOf[DateFieldField]/name became required for the status 200

      response-property-became-required

    • the response property oneOf[LastModifiedFieldField]/name became required for the status 200

      response-property-became-required

    • added the required property oneOf[ButtonFieldField]/has_workflow_actions to the response with the 200 status

      response-required-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added ButtonFieldField to the response body oneOf list for the response status 200

      response-body-one-of-added

    • added button mapping keys to the response discriminator for the response status 200

      response-body-discriminator-mapping-added

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the response property oneOf[CreatedOnFieldField]/name became optional for the status 200

      response-property-became-optional

    • the response property oneOf[DateFieldField]/name became optional for the status 200

      response-property-became-optional

    • the response property oneOf[LastModifiedFieldField]/name became optional for the status 200

      response-property-became-optional

    • added the required property oneOf[AIFieldField]/error to the response with the 200 status

      response-required-property-added