{
  "opencollection": "1.0.0",
  "info": {
    "name": "API Key accounts files API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "files",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Project Files",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.coperniq.io/v1/projects/:projectId/files",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "Project identifier"
              }
            ]
          },
          "docs": "Retrieve all files associated with a project"
        },
        {
          "info": {
            "name": "Create Project File (from URL)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.coperniq.io/v1/projects/:projectId/files",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "Project identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Upload a file to a project by providing its URL"
        },
        {
          "info": {
            "name": "Get Opportunity Files",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.coperniq.io/v1/opportunities/:opportunityId/files",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "opportunityId",
                "value": "",
                "type": "path",
                "description": "Opportunity identifier"
              }
            ]
          },
          "docs": "Retrieve all files associated with an opportunity\n\n**Note:** The `/requests` path is an alias for `/opportunities` and will continue to work until users are individually notified and migrated.\n"
        },
        {
          "info": {
            "name": "Create Opportunity File (from URL)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.coperniq.io/v1/opportunities/:opportunityId/files",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "opportunityId",
                "value": "",
                "type": "path",
                "description": "Opportunity identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Upload a file to an opportunity by providing its URL\n\n**Note:** The `/requests` path is an alias for `/opportunities` and will continue to work until users are individually notified and migrated.\n"
        },
        {
          "info": {
            "name": "Get Project File",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.coperniq.io/v1/projects/:projectId/files/:fileId",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "Project identifier"
              },
              {
                "name": "fileId",
                "value": "",
                "type": "path",
                "description": "File identifier"
              }
            ]
          },
          "docs": "Retrieve a specific file associated with a project"
        },
        {
          "info": {
            "name": "Delete Project File",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.coperniq.io/v1/projects/:projectId/files/:fileId",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "Project identifier"
              },
              {
                "name": "fileId",
                "value": "",
                "type": "path",
                "description": "File identifier"
              }
            ]
          },
          "docs": "Delete a file from a project"
        },
        {
          "info": {
            "name": "Get Opportunity File",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.coperniq.io/v1/opportunities/:opportunityId/files/:fileId",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "opportunityId",
                "value": "",
                "type": "path",
                "description": "Opportunity identifier"
              },
              {
                "name": "fileId",
                "value": "",
                "type": "path",
                "description": "File identifier"
              }
            ]
          },
          "docs": "Retrieve a specific file associated with an opportunity\n\n**Note:** The `/requests` path is an alias for `/opportunities` and will continue to work until users are individually notified and migrated.\n"
        },
        {
          "info": {
            "name": "Delete Opportunity File",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.coperniq.io/v1/opportunities/:opportunityId/files/:fileId",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "opportunityId",
                "value": "",
                "type": "path",
                "description": "Opportunity identifier"
              },
              {
                "name": "fileId",
                "value": "",
                "type": "path",
                "description": "File identifier"
              }
            ]
          },
          "docs": "Delete a file from an opportunity\n\n**Note:** The `/requests` path is an alias for `/opportunities` and will continue to work until users are individually notified and migrated.\n"
        },
        {
          "info": {
            "name": "Create Project File (stream)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.coperniq.io/v1/projects/:projectId/files/upload",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path"
              },
              {
                "name": "name",
                "value": "",
                "type": "query",
                "description": "Optional file name to store"
              },
              {
                "name": "content_type",
                "value": "",
                "type": "query",
                "description": "Optional MIME type to associate with the file"
              },
              {
                "name": "phase_instance_id",
                "value": "",
                "type": "query",
                "description": "Optional phase instance id to associate with the file"
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "file",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Upload a file to a project using multipart/form-data"
        },
        {
          "info": {
            "name": "Create Opportunity File (stream)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.coperniq.io/v1/opportunities/:opportunityId/files/upload",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "opportunityId",
                "value": "",
                "type": "path"
              },
              {
                "name": "name",
                "value": "",
                "type": "query",
                "description": "Optional file name to store"
              },
              {
                "name": "content_type",
                "value": "",
                "type": "query",
                "description": "Optional MIME type to associate with the file"
              },
              {
                "name": "phase_instance_id",
                "value": "",
                "type": "query",
                "description": "Optional phase instance id to associate with the file"
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "file",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Upload a file to an opportunity using multipart/form-data\n\n**Note:** The `/requests` path is an alias for `/opportunities` and will continue to work until users are individually notified and migrated.\n"
        }
      ]
    }
  ],
  "bundled": true
}