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

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

Servers

Path parameters

Name Type Required Description
table_id Integer Yes

The table where to update the primary field in.

Request headers

Name Type Required Description
ClientSessionId String No

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.

Content-Type String Yes The media type of the request body.

Default value: "application/json"

ClientUndoRedoActionGroupId String No

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 fields

Name Type Required Description
new_primary_field_id Integer Yes

The ID of the new primary field.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.