Query schema history.
https://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/schema/history
Query the branch its schema history.
Expected Parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
db_branch_name | The DBBranchName matches the pattern `{db_name}:{branch_name}`. | path | ✅ | string |
Query Schema History.
POSThttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/schema/history
Request Body Type Definition
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
type GetBranchSchemaHistory = { page?: { /* * Query the next page that follow the cursor. */ after?: string; /* * Query the previous page before the cursor. */ before?: string; /* * Set page size. If the size is missing it is read from the cursor. If no cursor is given xata will choose the default page size. * * @default 20 */ size?: number; }; /* * Report only migrations that have been added since the given Migration ID. */ since?: string; };
Status Code | Description | Example Response/Type Definition |
---|---|---|
200 | OK |
|
400 | Bad Request |
|
401 | Authentication Error |
|
404 | Example response |
|
5XX | Unexpected Error |