API Keys
Update API keys
Changed onUpdate API keys. Attributes you do not send keep their value, regen_key replaces the key value with a new random one. Service keys from mailcow.conf cannot be changed (api_key_service_locked).
post/api/v1/edit/api-key
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header X-API-Key
Request body
Example request
{
"items": [
"3"
],
"attr": {
"description": "provisioning",
"access": "ro",
"allow_from": "192.0.2.10",
"skip_ip_check": "0",
"active": "1",
"regen_key": "0"
}
}Response
OK
Changes
- info
endpoint added
- info