curl --request POST \
--url https://api.stax.ai/stack/update \
--header 'Content-Type: application/json' \
--cookie authToken= \
--data '
{
"stackId": "<string>",
"stackDiff": {
"path": "<string>",
"restrict": true,
"access": [
"<string>"
],
"pinned": true,
"hideHint": true,
"enabled": true,
"keys": [
"<string>"
],
"dataTypes": [
{
"key": "<string>",
"dataType": "text"
}
],
"rules": {
"enabled": true,
"match": {
"mode": "all",
"source": [
"<string>"
],
"name": [
"<string>"
],
"phrases": [
"<string>"
]
}
},
"trainer": {
"manualTrigger": true,
"isTraining": true,
"lastTrained": "2023-11-07T05:31:56Z"
},
"forms": [
"<string>"
],
"tags": [
"<string>"
]
}
}
'{
"success": true
}Update stack properties
curl --request POST \
--url https://api.stax.ai/stack/update \
--header 'Content-Type: application/json' \
--cookie authToken= \
--data '
{
"stackId": "<string>",
"stackDiff": {
"path": "<string>",
"restrict": true,
"access": [
"<string>"
],
"pinned": true,
"hideHint": true,
"enabled": true,
"keys": [
"<string>"
],
"dataTypes": [
{
"key": "<string>",
"dataType": "text"
}
],
"rules": {
"enabled": true,
"match": {
"mode": "all",
"source": [
"<string>"
],
"name": [
"<string>"
],
"phrases": [
"<string>"
]
}
},
"trainer": {
"manualTrigger": true,
"isTraining": true,
"lastTrained": "2023-11-07T05:31:56Z"
},
"forms": [
"<string>"
],
"tags": [
"<string>"
]
}
}
'{
"success": true
}Cookie-based authentication using userId and authToken cookies
MongoDB ObjectId
Fields to update
Show child attributes
MongoDB ObjectId
MongoDB ObjectId
Stack updated successfully
true