Delete Embedded Links
The Embedded Links are only available for the spaces on the paid Pro or higher plan in AITable Cloud as well as Enterprise self-hosted edition.
Example
Here is an example of calling API to delete an embedded link of a datasheet.
To delete an embedded link of a datasheet in the space, follow the steps below:
Obtain your API token. (how to)
Obtain the spaceId. (how to)
Obtain the datasheetId. (how to)
Obtain the ID of embedded link. (how to)
Open your system terminal, copy and paste following code on it and make a request to AITable server (the example space ID here is
spcjXzqVrjaP3
, datasheetId isdstWUHwzTHd2YQaXEE
, and linkId isembb90a52cfc02a4f83
)- cURL
- Javascript SDK
- Python SDK
curl -X DELETE \
"https://api.apitable.cn/fusion/v1/spaces/spcjXzqVrjaP3/nodes/dstWUHwzTHd2YQaXEE/embedlinks/embb90a52cfc02a4f83" \
-H "Authorization: Bearer {Your API Token}"Note: Need to Download and initialize Javascript SDK first, and then execute the following command.
import { APITable } from 'apitable';
const apitable = new APITable({
token: 'Your API Token',
});
try {
const res = await apitable.space('spcjXzqVrjaP3').datasheet('dstWUHwzTHd2YQaXEE').deleteEmbedLink('embb90a52cfc02a4f83');
if (res.success) {
// TODO
}
} catch (error) {
// TODO: handle error
}Note: You need to download and initialize the Python SDK first, and then execute the following command.
from apitable import Apitable
apitable = Apitable("Your API Token")
try:
isDeleted = apitable.space('spcjXzqVrjaP3').datasheet('dstWUHwzTHd2YQaXEE').delete_embed_link('embb90a52cfc02a4f83')
print(isDeleted)
except Exception:
# handle error
passThe response result:
{
"code": 200,
"success": true,
"message": "SUCCESS"
}tipFor the meaning of each parameter in the response result above, please check the API Reference。