{
  "opencollection": "1.0.0",
  "info": {
    "name": "APIs.io Engineering Platform Amazon API Gateway 2014 11 13 Forks API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Forks",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "APIs.io Engineering Platform Create a fork",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://apigateway.{region}.amazonaws.com/collections/fork/:collectionId",
            "params": [
              {
                "name": "collectionId",
                "value": "",
                "type": "path",
                "description": "The collection's ID."
              },
              {
                "name": "workspace",
                "value": "",
                "type": "query",
                "description": "The workspace ID in which to create the fork."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a [fork](https://learning.postman.com/docs/collaborating-in-postman/version-control/#creating-a-fork) from an existing collection into a workspace."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Merge a fork",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://apigateway.{region}.amazonaws.com/collections/merge",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Merges a forked collection back into its parent collection. You must have the [Editor role](https://learning.postman.com/docs/collaborating-in-postman/roles-and-permissions/#collection-roles) for the collection to merge a fork."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Get all forked collections",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://apigateway.{region}.amazonaws.com/collections/:collectionId/collection-forks",
            "params": [
              {
                "name": "collectionId",
                "value": "",
                "type": "path",
                "description": "The collection's ID."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "The pointer to the first record of the set of paginated results. To view the next response, use the `nextCursor` value for this parameter."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The maximum number of rows to return in the response."
              },
              {
                "name": "direction",
                "value": "",
                "type": "query",
                "description": "Sort the results by creation date in ascending (`asc`) or descending (`desc`) order."
              }
            ]
          },
          "docs": "Gets a list of all the authenticated user's forked collections."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Get a collection's forks",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://apigateway.{region}.amazonaws.com/collections/:collectionId/forks",
            "params": [
              {
                "name": "collectionId",
                "value": "",
                "type": "path",
                "description": "The collection's ID."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "The pointer to the first record of the set of paginated results. To view the next response, use the `nextCursor` value for this parameter."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The maximum number of rows to return in the response."
              },
              {
                "name": "direction",
                "value": "",
                "type": "query",
                "description": "Sort the results by creation date in ascending (`asc`) or descending (`desc`) order."
              }
            ]
          },
          "docs": "Gets a collection's forked collections. The response returns data for each fork, such as the fork's ID, the user who forked it, and the fork's creation date."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Pull source changes",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "http://apigateway.{region}.amazonaws.com/collections/:collectionId/pulls",
            "params": [
              {
                "name": "collectionId",
                "value": "",
                "type": "path",
                "description": "The collection's ID."
              }
            ]
          },
          "docs": "Pulls the changes from a parent (source) collection into the forked collection. In the endpoint's response:\n\n- The `destinationId` is the ID of the forked collection.\n- The `sourceId` is the ID of the source collection.\n"
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Get source collection's status",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://apigateway.{region}.amazonaws.com/collections/:collectionId/source-status",
            "params": [
              {
                "name": "collectionId",
                "value": "",
                "type": "path",
                "description": "The collection's ID."
              }
            ]
          },
          "docs": "Checks whether there is a change between the forked collection and its parent (source) collection.\n\nIf the value of the `isSourceAhead` property is `true` in the response, then there is a difference between the forked collection and its source collection.\n\n**Note:**\n\nThis endpoint may take a few minutes to return an updated `isSourceAhead` status.\n"
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Get an environment's forks",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://apigateway.{region}.amazonaws.com/environments/:environmentId/forks",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path",
                "description": "The environment's unique ID."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "The pointer to the first record of the set of paginated results. To view the next response, use the `nextCursor` value for this parameter."
              },
              {
                "name": "direction",
                "value": "",
                "type": "query",
                "description": "Sort results in ascending (`asc`) or descending (`desc`) order."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The maximum number of rows to return in the response."
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Sort the results by the date and time of creation."
              }
            ]
          },
          "docs": "Gets all of an environment's forked environments."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Create a fork",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://apigateway.{region}.amazonaws.com/environments/:environmentId/forks",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path",
                "description": "The environment's unique ID."
              },
              {
                "name": "workspaceId",
                "value": "",
                "type": "query",
                "description": "The workspace's ID."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a [fork](https://learning.postman.com/docs/collaborating-in-postman/using-version-control/forking-elements/) of an existing environment."
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Merge a fork",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://apigateway.{region}.amazonaws.com/environments/:environmentId/merges",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path",
                "description": "The environment's unique ID."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "[Merges](https://learning.postman.com/docs/collaborating-in-postman/using-version-control/forking-elements/#merge-changes-from-a-fork) a forked environment back into its parent environment.\n"
        },
        {
          "info": {
            "name": "APIs.io Engineering Platform Pull source changes",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://apigateway.{region}.amazonaws.com/environments/:environmentId/pulls",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path",
                "description": "The environment's unique ID."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "[Pulls](https://learning.postman.com/docs/collaborating-in-postman/using-version-control/forking-elements/#pull-updates-from-a-parent-element) the changes from a parent (source) environment into the forked environment.\n"
        }
      ]
    }
  ],
  "bundled": true
}