{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/auth/v1/create-client-request.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Properties to create a client.\n",
  "properties": {
    "deleteOnExpiration": {
      "default": false,
      "description": "If `true`, the service may delete this client after it has expired.  If\n`false` (the default), the client will remain after expiration, although\nit cannot be used for authentication in that state.\n",
      "type": "boolean"
    },
    "description": {
      "description": "Description of what these credentials are used for in markdown.\nShould include who is the owner, point of contact.\n",
      "maxLength": 10240,
      "type": "string"
    },
    "expires": {
      "description": "Date and time where the clients access is set to expire\n",
      "format": "date-time",
      "type": "string"
    },
    "scopes": {
      "description": "List of scopes the client has (unexpanded).\n",
      "items": {
        "description": "A single scope. A scope must be composed of\nprintable ASCII characters and spaces.  Scopes ending in more than\none `*` character are forbidden.\n",
        "pattern": "^[ -~]*$",
        "title": "Scope",
        "type": "string"
      },
      "type": "array",
      "uniqueItems": true
    }
  },
  "required": [
    "expires",
    "description"
  ],
  "title": "Create Client Request",
  "type": "object"
}