{
  "opencollection": "1.0.0",
  "info": {
    "name": "Phrase Strings API Reference Accounts Release Triggers API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Release Triggers",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List release triggers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.phrase.com/v2/accounts/:account_id/distributions/:distribution_id/release_triggers",
            "headers": [
              {
                "name": "X-PhraseApp-OTP",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "Account ID"
              },
              {
                "name": "distribution_id",
                "value": "",
                "type": "path",
                "description": "Distribution ID"
              }
            ]
          },
          "docs": "List all release triggers for the given distribution.\n\nNote: Currently only one release trigger can exist per distribution.\n"
        },
        {
          "info": {
            "name": "Create a release trigger",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.phrase.com/v2/accounts/:account_id/distributions/:distribution_id/release_triggers",
            "headers": [
              {
                "name": "X-PhraseApp-OTP",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "Account ID"
              },
              {
                "name": "distribution_id",
                "value": "",
                "type": "path",
                "description": "Distribution ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new recurring release. New releases will be published automatically, based on the cron schedule provided. Currently, only one release trigger can exist per distribution."
        },
        {
          "info": {
            "name": "Get a single release trigger",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.phrase.com/v2/accounts/:account_id/distributions/:distribution_id/release_triggers/:id",
            "headers": [
              {
                "name": "X-PhraseApp-OTP",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "Account ID"
              },
              {
                "name": "distribution_id",
                "value": "",
                "type": "path",
                "description": "Distribution ID"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID"
              }
            ]
          },
          "docs": "Get details of a single release trigger."
        },
        {
          "info": {
            "name": "Update a release trigger",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.phrase.com/v2/accounts/:account_id/distributions/:distribution_id/release_triggers/:id",
            "headers": [
              {
                "name": "X-PhraseApp-OTP",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "Account ID"
              },
              {
                "name": "distribution_id",
                "value": "",
                "type": "path",
                "description": "Distribution ID"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a recurring release."
        },
        {
          "info": {
            "name": "Delete a single release trigger",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.phrase.com/v2/accounts/:account_id/distributions/:distribution_id/release_triggers/:id",
            "headers": [
              {
                "name": "X-PhraseApp-OTP",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "Account ID"
              },
              {
                "name": "distribution_id",
                "value": "",
                "type": "path",
                "description": "Distribution ID"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID"
              }
            ]
          },
          "docs": "Delete a single release trigger."
        }
      ]
    }
  ],
  "bundled": true
}