Canonical · Schema

Notice

A notice recorded by snapd, such as a warning or change update.

CanonicalCloudLinuxOpen SourceUbuntuContainersBare MetalCharmsIdentity

Properties

Name Type Description
id string The unique ID of the notice.
user-id integernull The UID of the user who may view the notice, or null if public.
type object
key string An identifier which differentiates notices of this type. Notices recorded with the type and key of an existing notice count as an occurrence of that notice. Notice keys can take the form of the follow
first-occurred string The timestamp of the first time this notice occurred (RFC3339 UTC format).
last-occurred string The timestamp of the last time this notice occurred (RFC3339 UTC format).
last-repeated string The timestamp of the last time this notice was repeated (RFC3339 UTC format).
occurrences integer The number of times this notice has occurred.
last-data object Additional data captured from the last occurrence.
repeat-after string A duration string after which the notice may be repeated (optional).
expire-after string A duration string after which the notice may be deleted.
View JSON Schema on GitHub

JSON Schema

canonical-notice-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/canonical/main/json-schema/canonical-notice-schema.json",
  "title": "Notice",
  "description": "A notice recorded by snapd, such as a warning or change update.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canonical-notices-api-openapi.yml#/components/schemas/Notice",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique ID of the notice."
    },
    "user-id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The UID of the user who may view the notice, or null if public."
    },
    "type": {
      "$ref": "#/$defs/NoticeType"
    },
    "key": {
      "type": "string",
      "description": "An identifier which differentiates notices of this type. Notices recorded\nwith the type and key of an existing notice count as an occurrence of that\nnotice. Notice keys can take the form of the following:\n\n- 63\n- '-'\n- 'libreoffice'\n- 'ABCDABCDABCDABCD'"
    },
    "first-occurred": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of the first time this notice occurred (RFC3339 UTC format)."
    },
    "last-occurred": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of the last time this notice occurred (RFC3339 UTC format)."
    },
    "last-repeated": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of the last time this notice was repeated (RFC3339 UTC\nformat)."
    },
    "occurrences": {
      "type": "integer",
      "description": "The number of times this notice has occurred."
    },
    "last-data": {
      "type": "object",
      "description": "Additional data captured from the last occurrence.",
      "additionalProperties": true
    },
    "repeat-after": {
      "type": "string",
      "description": "A duration string after which the notice may be repeated (optional)."
    },
    "expire-after": {
      "type": "string",
      "description": "A duration string after which the notice may be deleted."
    }
  },
  "$defs": {
    "NoticeType": {
      "type": "string",
      "description": "The type of the notice.",
      "enum": [
        "change-update",
        "warning",
        "refresh-inhibit",
        "snap-run-inhibit",
        "interfaces-requests-prompt",
        "interfaces-requests-rule-update"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/canonical-notice"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.