{
  "service": "webvizio",
  "displayName": "Webvizio",
  "categories": [
    "Productivity",
    "Developer Tools"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "Personal Access Token",
      "placeholder": "WEBVIZIO_API_TOKEN",
      "description": "Webvizio personal access token used with the Authorization: Bearer header for the Webvizio REST Hook API.",
      "extraFields": []
    }
  ],
  "homepageUrl": "https://webvizio.com",
  "actions": [
    {
      "id": "webvizio.create_rest_hook_subscription",
      "service": "webvizio",
      "name": "create_rest_hook_subscription",
      "description": "Subscribe a callback URL to one Webvizio REST Hook event so Webvizio can send outbound event notifications to your service.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The callback URL that Webvizio should call when the event fires.",
            "format": "uri"
          },
          "event": {
            "type": "string",
            "enum": [
              "project.created",
              "project.updated",
              "project.deleted",
              "task.created",
              "task.updated",
              "task.deleted",
              "comment.created",
              "comment.deleted"
            ],
            "description": "The Webvizio event type to subscribe to."
          }
        },
        "additionalProperties": false,
        "required": [
          "url",
          "event"
        ],
        "description": "The input payload for creating one Webvizio REST Hook subscription."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "description": "The Webvizio webhook subscription ID."
          },
          "event": {
            "type": "string",
            "enum": [
              "project.created",
              "project.updated",
              "project.deleted",
              "task.created",
              "task.updated",
              "task.deleted",
              "comment.created",
              "comment.deleted"
            ],
            "description": "The Webvizio event type to subscribe to."
          },
          "url": {
            "type": "string",
            "description": "The callback URL that was subscribed.",
            "format": "uri"
          }
        },
        "additionalProperties": false,
        "required": [
          "id",
          "event",
          "url"
        ],
        "description": "The response returned after creating a Webvizio REST Hook subscription."
      }
    },
    {
      "id": "webvizio.delete_rest_hook_subscription",
      "service": "webvizio",
      "name": "delete_rest_hook_subscription",
      "description": "Unsubscribe one Webvizio REST Hook event subscription by its Webvizio webhook ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "description": "The Webvizio webhook subscription ID."
          }
        },
        "additionalProperties": false,
        "required": [
          "id"
        ],
        "description": "The input payload for deleting one Webvizio REST Hook subscription."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "deleted": {
            "type": "boolean",
            "description": "Whether the Webvizio REST Hook subscription was deleted."
          },
          "id": {
            "type": "integer",
            "minimum": 1,
            "description": "The Webvizio webhook subscription ID."
          }
        },
        "additionalProperties": false,
        "required": [
          "deleted",
          "id"
        ],
        "description": "The response returned after deleting a Webvizio REST Hook subscription."
      }
    }
  ]
}
