Update API endpoint code, settings, and authentication rules
Authentication: required
curl --request PUT \
--url https://your-xano-instance.xano.io/api:meta/workspace/{workspace_id}/apigroup/{apigroup_id}/api/{api_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/x-xanoscript' \
--data 'query foo verb=GET {
input {
int score
}
stack {
var $x1 {
value = $input.score + 1
}
}
response = $x1
}
'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The body is of type string.
"query foo verb=GET {\n input {\n int score\n }\n stack {\n var $x1 {\n value = $input.score + 1\n }\n }\n response = $x1\n}\n"
Success!
Was this page helpful?
curl --request PUT \
--url https://your-xano-instance.xano.io/api:meta/workspace/{workspace_id}/apigroup/{apigroup_id}/api/{api_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/x-xanoscript' \
--data 'query foo verb=GET {
input {
int score
}
stack {
var $x1 {
value = $input.score + 1
}
}
response = $x1
}
'{}