Skip to main content
POST
/
workspace
/
{workspace_id}
/
convert
/
fromXS
Convert from XanoScript to JSON
curl --request POST \
  --url https://your-xano-instance.xano.io/api:meta/workspace/{workspace_id}/convert/fromXS \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: text/x-xanoscript' \
  --data 'var $x1 {
  value = 1
}
'
{}

Authorizations

Authorization
string
header
required

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

Path Parameters

workspace_id
integer<int64>
required

Query Parameters

branch
string
default:""

Body

text/x-xanoscript

The body is of type string.

Example:

"var $x1 {\n value = 1\n}\n"

Response

Success!