{
  "opencollection": "1.0.0",
  "info": {
    "name": "Unity Build Automation API",
    "version": "v1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Build Targets",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Build Targets",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://build-api.cloud.unity3d.com/api/v1/orgs/:orgid/projects/:projectid/buildtargets",
            "params": [
              {
                "name": "orgid",
                "value": "",
                "type": "path"
              },
              {
                "name": "projectid",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns all configured build targets for the specified project."
        },
        {
          "info": {
            "name": "Create Build Target",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://build-api.cloud.unity3d.com/api/v1/orgs/:orgid/projects/:projectid/buildtargets",
            "params": [
              {
                "name": "orgid",
                "value": "",
                "type": "path"
              },
              {
                "name": "projectid",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new build target for a specific platform and configuration."
        },
        {
          "info": {
            "name": "Get Build Target",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://build-api.cloud.unity3d.com/api/v1/orgs/:orgid/projects/:projectid/buildtargets/:buildtargetid",
            "params": [
              {
                "name": "orgid",
                "value": "",
                "type": "path"
              },
              {
                "name": "projectid",
                "value": "",
                "type": "path"
              },
              {
                "name": "buildtargetid",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns the configuration for a specific build target."
        },
        {
          "info": {
            "name": "Update Build Target",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://build-api.cloud.unity3d.com/api/v1/orgs/:orgid/projects/:projectid/buildtargets/:buildtargetid",
            "params": [
              {
                "name": "orgid",
                "value": "",
                "type": "path"
              },
              {
                "name": "projectid",
                "value": "",
                "type": "path"
              },
              {
                "name": "buildtargetid",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the configuration of an existing build target."
        },
        {
          "info": {
            "name": "Delete Build Target",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://build-api.cloud.unity3d.com/api/v1/orgs/:orgid/projects/:projectid/buildtargets/:buildtargetid",
            "params": [
              {
                "name": "orgid",
                "value": "",
                "type": "path"
              },
              {
                "name": "projectid",
                "value": "",
                "type": "path"
              },
              {
                "name": "buildtargetid",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Deletes a build target configuration."
        }
      ]
    },
    {
      "info": {
        "name": "Builds",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Builds",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://build-api.cloud.unity3d.com/api/v1/orgs/:orgid/projects/:projectid/buildtargets/:buildtargetid/builds",
            "params": [
              {
                "name": "orgid",
                "value": "",
                "type": "path"
              },
              {
                "name": "projectid",
                "value": "",
                "type": "path"
              },
              {
                "name": "buildtargetid",
                "value": "",
                "type": "path"
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns the build history for a build target."
        },
        {
          "info": {
            "name": "Start Build",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://build-api.cloud.unity3d.com/api/v1/orgs/:orgid/projects/:projectid/buildtargets/:buildtargetid/builds",
            "params": [
              {
                "name": "orgid",
                "value": "",
                "type": "path"
              },
              {
                "name": "projectid",
                "value": "",
                "type": "path"
              },
              {
                "name": "buildtargetid",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Triggers a new build for the specified build target."
        },
        {
          "info": {
            "name": "Get Build",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://build-api.cloud.unity3d.com/api/v1/orgs/:orgid/projects/:projectid/buildtargets/:buildtargetid/builds/:number",
            "params": [
              {
                "name": "orgid",
                "value": "",
                "type": "path"
              },
              {
                "name": "projectid",
                "value": "",
                "type": "path"
              },
              {
                "name": "buildtargetid",
                "value": "",
                "type": "path"
              },
              {
                "name": "number",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns details for a specific build including status, artifacts, and logs."
        },
        {
          "info": {
            "name": "Cancel Build",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://build-api.cloud.unity3d.com/api/v1/orgs/:orgid/projects/:projectid/buildtargets/:buildtargetid/builds/:number",
            "params": [
              {
                "name": "orgid",
                "value": "",
                "type": "path"
              },
              {
                "name": "projectid",
                "value": "",
                "type": "path"
              },
              {
                "name": "buildtargetid",
                "value": "",
                "type": "path"
              },
              {
                "name": "number",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Cancels an in-progress build."
        }
      ]
    }
  ],
  "bundled": true
}