{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "projectId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "project ID from create/list."
    },
    "watchId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "watch ID from create/list."
    },
    "contactId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "description": "contact ID from create/list."
    },
    "revision": {
      "anyOf": [
        {
          "type": "number",
          "const": 0,
          "description": "Current association revision from list_contacts; 0 creates the first association."
        },
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
          "description": "Current association revision from list_contacts; 0 creates the first association."
        }
      ],
      "description": "Current association revision from list_contacts; 0 creates the first association."
    }
  },
  "required": [
    "projectId",
    "watchId",
    "contactId",
    "revision"
  ],
  "additionalProperties": false
}
