{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/worker-manager/v1/update-worker-pool-request.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Fields that are defined by a user for a worker pool.\nUsed to modify worker-pool definitions.\n\nThe `workerPoolId`, `created`, and `lastModified` fields are optional and\nallowed only to ease the common practice of getting a worker pool definition\nwith `workerPool(..)`, modifying it, and writing it back with\n`updateWorkerPool(..).  `workerPoolId` must be correct if\nsupplied, and the values of `created` and `lastModified` are ignored.\n",
  "properties": {
    "config": {
      "$ref": "worker-pool-full.json#/properties/config"
    },
    "created": {
      "description": "Ignored on update",
      "format": "date-time",
      "title": "Created",
      "type": "string"
    },
    "description": {
      "$ref": "worker-pool-full.json#/properties/description"
    },
    "emailOnError": {
      "$ref": "worker-pool-full.json#/properties/emailOnError"
    },
    "lastModified": {
      "description": "Ignored on update",
      "format": "date-time",
      "title": "Last Modified",
      "type": "string"
    },
    "owner": {
      "$ref": "worker-pool-full.json#/properties/owner"
    },
    "providerId": {
      "$ref": "worker-pool-full.json#/properties/providerId"
    },
    "workerPoolId": {
      "pattern": "^[a-zA-Z0-9-_]{1,38}/[a-z]([-a-z0-9]{0,36}[a-z0-9])?$",
      "title": "Worker Pool ID",
      "type": "string"
    }
  },
  "required": [
    "providerId",
    "description",
    "config",
    "owner",
    "emailOnError"
  ],
  "title": "Worker Pool Definition",
  "type": "object"
}