{
  "opencollection": "1.0.0",
  "info": {
    "name": "Wrike Access Roles Webhooks API",
    "version": "4.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://www.wrike.com/oauth2/authorize",
      "accessTokenUrl": "https://www.wrike.com/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Webhooks",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Webhooks",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.wrike.com/api/v4/accounts/:accountId/webhooks",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns all webhooks defined in the account."
        },
        {
          "info": {
            "name": "Create Webhook",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://www.wrike.com/api/v4/accounts/:accountId/webhooks",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "hookUrl",
                  "value": ""
                },
                {
                  "name": "events",
                  "value": ""
                },
                {
                  "name": "secretKey",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Creates a new webhook subscription for account-wide events."
        },
        {
          "info": {
            "name": "Update Webhook",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://www.wrike.com/api/v4/webhooks/:webhookId",
            "params": [
              {
                "name": "webhookId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "hookUrl",
                  "value": ""
                },
                {
                  "name": "status",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Updates an existing webhook."
        },
        {
          "info": {
            "name": "Delete Webhook",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://www.wrike.com/api/v4/webhooks/:webhookId",
            "params": [
              {
                "name": "webhookId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Deletes a webhook subscription."
        }
      ]
    }
  ],
  "bundled": true
}