Update a maintenance policy

Updates the specified maintenance policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

PATCH/v3/maintenance-policies/{id}
JWT
maintenancePolicy:write

Parameters

NameTypeInDescription
id*stringpathUnique identifier for the maintenance policy.

Request Body Schema

PropertyTypeDescriptionConstraints
namestringName of the maintenance policy.min: 1, max: 256
allowMajorVersionUpdatesbooleanAllow major version updates.
allowMinorVersionUpdatesbooleanAllow minor version updates.

Request Example

{
  "name": "string",
  "allowMajorVersionUpdates": true,
  "allowMinorVersionUpdates": true
}
Triggers webhook: maintenancePolicy.updated
POST <your-webhook-url>
{
  "event": "maintenancePolicy.updated",
  "data": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "validity": 0,
    "expirationStrategy": "immediate",
    "subscriptionInterval": "string",
    "subscriptionStartTrigger": "license-creation",
    "allowMajorVersionUpdates": true,
    "allowMinorVersionUpdates": true
  },
  "triggeredAt": "string"
}

Responses

200 OK
{
  "id": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "name": "string",
  "validity": 0,
  "expirationStrategy": "immediate",
  "subscriptionInterval": "string",
  "subscriptionStartTrigger": "license-creation",
  "allowMajorVersionUpdates": true,
  "allowMinorVersionUpdates": true
}