Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Response
Success!
curl --request PUT \
--url https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/table/{table_id}/schema \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"schema": [
{
"name": "id",
"type": "int",
"description": "",
"nullable": false,
"default": "",
"required": true,
"access": "public",
"sensitive": false,
"style": "single"
},
{
"name": "created_at",
"type": "timestamp",
"description": "",
"nullable": false,
"default": "",
"required": true,
"access": "public",
"sensitive": false,
"style": "single"
},
{
"name": "name",
"type": "text",
"description": "",
"nullable": false,
"default": "",
"required": true,
"access": "public",
"sensitive": false,
"style": "single"
}
]
}'
{}
Replace the entire schema definition for a database table
curl --request PUT \
--url https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/table/{table_id}/schema \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"schema": [
{
"name": "id",
"type": "int",
"description": "",
"nullable": false,
"default": "",
"required": true,
"access": "public",
"sensitive": false,
"style": "single"
},
{
"name": "created_at",
"type": "timestamp",
"description": "",
"nullable": false,
"default": "",
"required": true,
"access": "public",
"sensitive": false,
"style": "single"
},
{
"name": "name",
"type": "text",
"description": "",
"nullable": false,
"default": "",
"required": true,
"access": "public",
"sensitive": false,
"style": "single"
}
]
}'
{}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Show child attributes
Success!
Was this page helpful?