{
  "opencollection": "1.0.0",
  "info": {
    "name": "Pipedrive API v1 Activities OrganizationRelationships API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "OrganizationRelationships",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get all relationships for organization",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.pipedrive.com/v1/organizationRelationships",
            "params": [
              {
                "name": "org_id",
                "value": "",
                "type": "query",
                "description": "The ID of the organization to get relationships for"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-api-token",
              "value": "{{x-api-token}}",
              "placement": "header"
            }
          },
          "docs": "Gets all of the relationships for a supplied organization ID."
        },
        {
          "info": {
            "name": "Create an organization relationship",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.pipedrive.com/v1/organizationRelationships",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-api-token",
              "value": "{{x-api-token}}",
              "placement": "header"
            }
          },
          "docs": "Creates and returns an organization relationship."
        },
        {
          "info": {
            "name": "Get one organization relationship",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.pipedrive.com/v1/organizationRelationships/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the organization relationship"
              },
              {
                "name": "org_id",
                "value": "",
                "type": "query",
                "description": "The ID of the base organization for the returned calculated values"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-api-token",
              "value": "{{x-api-token}}",
              "placement": "header"
            }
          },
          "docs": "Finds and returns an organization relationship from its ID."
        },
        {
          "info": {
            "name": "Update an organization relationship",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.pipedrive.com/v1/organizationRelationships/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the organization relationship"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-api-token",
              "value": "{{x-api-token}}",
              "placement": "header"
            }
          },
          "docs": "Updates and returns an organization relationship."
        },
        {
          "info": {
            "name": "Delete an organization relationship",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.pipedrive.com/v1/organizationRelationships/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the organization relationship"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-api-token",
              "value": "{{x-api-token}}",
              "placement": "header"
            }
          },
          "docs": "Deletes an organization relationship and returns the deleted ID."
        }
      ]
    }
  ],
  "bundled": true
}