简体中文
Generate calculation plan for converting the field
cURL
curl --request PUT \ --url https://app.teable.cn/api/table/%7BtableId%7D/field/%7BfieldId%7D/plan \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \ --header 'content-type: application/json' \ --data '{"type":"singleSelect","name":"Tags","unique":true,"notNull":true,"dbFieldName":"string","isLookup":true,"description":"this is a summary","lookupOptions":{"foreignTableId":"string","lookupFieldId":"string","linkFieldId":"string","filter":{}},"options":{"expression":"countall({values})","timeZone":"string","formatting":{"date":"string","time":"HH:mm","timeZone":"string"},"showAs":{"type":"url"}},"aiConfig":{"modelKey":"string","isAutoFill":true,"attachPrompt":"string","type":"extraction","sourceFieldId":"string"}}'
{ "estimateTime": 123, "graph": { "nodes": [ { "id": "<string>", "label": "<string>", "comboId": "<string>" } ], "edges": [ { "source": "<string>", "target": "<string>", "label": "<string>" } ], "combos": [ { "id": "<string>", "label": "<string>" } ] }, "updateCellCount": 123, "linkFieldCount": 123, "skip": true }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Returns the calculation plan
The response is of type object.
object