Skip to main content
POST
/
stack
/
update
Update Stack
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
}

Authorizations

authToken
string
cookie
required

Cookie-based authentication using userId and authToken cookies

Body

application/json
stackId
string
required

MongoDB ObjectId

stackDiff
object
required

Fields to update

Response

Stack updated successfully

success
boolean
required
Example:

true