Skip to main content
DELETE
/
notions
/
{id}
Python
import os
from qaip import Qaip

client = Qaip(
    api_key=os.environ.get("QAIP_API_KEY"),  # This is the default and can be omitted
)
notion = client.notions.delete(
    "id",
)
print(notion.id)
{
  "id": "<string>",
  "name": "<string>",
  "page_id": "<string>",
  "status": "unknown",
  "ingestion_setting_id": "<string>",
  "creation_time": 123,
  "start_time": 123,
  "end_time": 123,
  "error": {
    "title": "<string>",
    "message": "<string>"
  },
  "metadata": {
    "records": [
      {
        "key": "<string>",
        "val": "<string>",
        "type": "string"
      }
    ]
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication

Path Parameters

id
string
required

Notion data source ID

Response

Successfully deleted Notion data source

id
string
required

Notion data source ID

name
string
required

Name of the Notion ingestion setting

page_id
string
required

Notion page ID

status
enum<string>
required

Job status

Available options:
unknown,
queued,
not_started,
managed,
starting,
started,
success,
failure,
canceling,
canceled,
deleting,
delete_job_failure
ingestion_setting_id
string

Notion ingestion setting ID

creation_time
integer<int64>

Creation time (Unix timestamp in seconds)

start_time
integer<int64>

Job start time (Unix timestamp in seconds)

end_time
integer<int64>

Job end time (Unix timestamp in seconds)

error
object
metadata
object

(reserved for future use) Additional metadata for the Notion data source