{
  "opencollection": "1.0.0",
  "info": {
    "name": "Mention Shares API",
    "version": "1.21"
  },
  "items": [
    {
      "info": {
        "name": "Shares",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Fetch all shares of an alert",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mention.net/api/accounts/:account_id/alerts/:alert_id/shares",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "alert_id",
                "value": "",
                "type": "path"
              }
            ],
            "headers": [
              {
                "name": "Authorization",
                "value": "Bearer {{access_token}}"
              },
              {
                "name": "Accept-Version",
                "value": "{{apiVersion}}"
              }
            ]
          },
          "docs": "Lists every share object on the alert \u2014 that is, every account the alert is shared with."
        },
        {
          "info": {
            "name": "Create a share",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.mention.net/api/accounts/:account_id/alerts/:alert_id/shares",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "alert_id",
                "value": "",
                "type": "path"
              }
            ],
            "headers": [
              {
                "name": "Authorization",
                "value": "Bearer {{access_token}}"
              },
              {
                "name": "Accept-Version",
                "value": "{{apiVersion}}"
              },
              {
                "name": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "type": "json",
              "data": {
                "account_id": "12345_69gjjsg4itgkcco040okwsck700o4w8gsco0k4kco0s4scw8o0"
              }
            }
          },
          "docs": "Creates a share object linking another account to this alert. The account_id in the body is the public id of the account the alert is shared with."
        },
        {
          "info": {
            "name": "Fetch a share",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mention.net/api/accounts/:account_id/alerts/:alert_id/shares/:share_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "alert_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "share_id",
                "value": "",
                "type": "path"
              }
            ],
            "headers": [
              {
                "name": "Authorization",
                "value": "Bearer {{access_token}}"
              },
              {
                "name": "Accept-Version",
                "value": "{{apiVersion}}"
              }
            ]
          },
          "docs": "Retrieves a single share object on an alert."
        },
        {
          "info": {
            "name": "Update a share",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.mention.net/api/accounts/:account_id/alerts/:alert_id/shares/:share_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "alert_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "share_id",
                "value": "",
                "type": "path"
              }
            ],
            "headers": [
              {
                "name": "Authorization",
                "value": "Bearer {{access_token}}"
              },
              {
                "name": "Accept-Version",
                "value": "{{apiVersion}}"
              },
              {
                "name": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "type": "json",
              "data": {
                "blocked": false
              }
            }
          },
          "docs": "Updates an existing share, typically to block an account's access to the alert."
        },
        {
          "info": {
            "name": "Delete a share",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.mention.net/api/accounts/:account_id/alerts/:alert_id/shares/:share_id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "alert_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "share_id",
                "value": "",
                "type": "path"
              }
            ],
            "headers": [
              {
                "name": "Authorization",
                "value": "Bearer {{access_token}}"
              },
              {
                "name": "Accept-Version",
                "value": "{{apiVersion}}"
              }
            ]
          },
          "docs": "Deletes the share object linking an account to an alert. Team admin rights are required to delete someone else's share. There is no delete-alert operation: when the last share on an alert is deleted, the alert itself is deleted."
        }
      ]
    }
  ]
}