Skip to content

Create State

Creates a new state.

Request

HTTP Request

POST /node/api/states

Permissions

manage-configuration

Path parameters

No parameters required.

Body parameters

See the State model.

Request body

The request body is empty.

Response

See the State model.

Examples

Request examples

login=<...>
password=<...>
saymon_hostname=<...>
url=https://$saymon_hostname/node/api/states

curl -X POST $url -u $login:$password \
    -H "Content-Type: application/json" \
    -d @- <<EOF
{
    "name": "New state"
}
EOF

Response example

Work in Progress

This topic is a work in progress and may be incomplete.