Skip to content

Create or change an object (admin)​

PUT
/api/v1/config/{kind}/{id}

The body has the same structure as the object in config.yaml. The response shows each secret as ***. If you send ***, pvmon keeps the stored secret.

Authorizations​

session
Type
API Key (cookie: pvmon_session)
or
token

API token pvm_<id>_<secret>.

Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"connection": "lan-solis",
  
"unit": 1,
  
"profile": "solis/s6-hybrid"
}

Responses​

The stored object.

application/json
JSON
{
  
"config_rev": 0,
  
"object": {
  
  
"kind": "connection",
  
  
"id": "string",
  
  
"locked": true,
  
  
"body": {
  
  
  
"additionalProperties": "string"
  
  
},
  
  
"updated_at": "2024-01-01T00:00:00Z",
  
  
"updated_by": "string",
  
  
"unreadable": [
  
  
  
"string"
  
  
]
  
}
}

Samples​

Version 0.4.0-66c93c2. MIT license.