Create State

POST /node/api/states

Creates a new state.
Permissions: manage-configuration.

Request parameters

Body parameters

See the State model.

Response description

See the State model.

Examples

Request examples

1
login=<...>
2
password=<...>
3
saymon_hostname=<...>
4
url=https://$saymon_hostname/node/api/states
5
6
curl -X POST $url -u $login:$password \
7
-H "Content-Type: application/json" \
8
-d @- <<EOF
9
{
10
"name": "New state"
11
}
12
EOF
Copied!

Response example

1
Copied!