Skip to main content
PUT
/
workspace
/
{workspace_id}
/
table
/
{table_id}
update workspace table
curl --request PUT \
  --url https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/table/{table_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: text/x-xanoscript' \
  --data 'table book {
  schema {
    int id
    text title
    text description
  }
  index = [
    {type: "primary", field: [{name: "id"}]}
  ]
}
'
{
  "id": 1,
  "created_at": "2023-04-19 21:01:32+0000",
  "updated_at": "2023-04-19 21:01:32+0000",
  "name": "Test Database",
  "description": "My test database description",
  "docs": "Documentation",
  "guid": "YE1fwVhQ-enRlc6Sb42Gqru58-0",
  "auth": true,
  "tag": [
    "example tag"
  ],
  "xanoscript": {
    "status": "ok",
    "value": "<string>",
    "message": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace_id
integer
required
table_id
integer
required

Body

The body is of type string.

Example:

"table book {\n schema {\n int id\n text title\n text description\n }\n index = [\n {type: \"primary\", field: [{name: \"id\"}]}\n ]\n}\n"

Response

Success!

id
integer
default:1
created_at
string<timestamptz>
default:2023-04-19 21:01:32+0000
updated_at
string<timestamptz>
default:2023-04-19 21:01:32+0000
name
string
default:Test Database
description
string
default:My test database description
docs
string
default:Documentation
guid
string
default:YE1fwVhQ-enRlc6Sb42Gqru58-0
auth
boolean
default:true
tag
string[]
xanoscript
object
I