WARNING

WARNING: These APIs are currently in an 'alpha' state and are likely to change over time. We recommend you not use them in a production setting at this time!


List Builds for an Environment

Retrieve the Builds that use the specified Environment.

Definition

GET  /environments/:environment_id/builds

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/environments/:environment_id/builds \
  -H "Accept: application/vnd.api+json;revision=1" \
  -H "Content-Type: application/vnd.api+json" \
  -H "Authorization: Bearer [TOKEN]" \
  -H "X-Api-Key: [KEY]" \
  -X GET
  

Example Response

200 OK
{
  "data": [
    {
      "id": "BL6750d05c3fb24044ba91269ce460d8ff",
      "type": "builds",
      "attributes": {
        "created_at": "2018-08-31T16:48:57.215Z",
        "status": "pending",
        "updated_at": "2018-08-31T16:48:57.215Z"
      },
      "relationships": {
        "data_elements": {
          "links": {
            "related": "http://localhost:9010/builds/BL6750d05c3fb24044ba91269ce460d8ff/data_elements"
          }
        },
        "extensions": {
          "links": {
            "related": "http://localhost:9010/builds/BL6750d05c3fb24044ba91269ce460d8ff/extensions"
          }
        },
        "rules": {
          "links": {
            "related": "http://localhost:9010/builds/BL6750d05c3fb24044ba91269ce460d8ff/rules"
          }
        },
        "environment": {
          "links": {
            "related": "http://localhost:9010/builds/BL6750d05c3fb24044ba91269ce460d8ff/environment"
          },
          "data": {
            "id": "ENfd239dabaecb4337b0b20af15e3dbc27",
            "type": "environments"
          }
        },
        "library": {
          "links": {
            "related": "http://localhost:9010/builds/BL6750d05c3fb24044ba91269ce460d8ff/library"
          },
          "data": {
            "id": "LB0313bbab9ed54d8f8da5358e5ad0295f",
            "type": "libraries"
          }
        },
        "property": {
          "links": {
            "related": "http://localhost:9010/builds/BL6750d05c3fb24044ba91269ce460d8ff/property"
          },
          "data": {
            "id": "PR6e87cfbbaee043699868ef8c7650c030",
            "type": "properties"
          }
        }
      },
      "links": {
        "environment": "http://localhost:9010/environments/ENfd239dabaecb4337b0b20af15e3dbc27",
        "library": "http://localhost:9010/libraries/LB0313bbab9ed54d8f8da5358e5ad0295f",
        "self": "http://localhost:9010/builds/BL6750d05c3fb24044ba91269ce460d8ff"
      },
      "meta": {
        "artifact_url": "//assets.adobedtm.com/staging/launch-ENfd239dabaecb4337b0b20af15e3dbc27-development.min.js"
      }
    }
  ],
  "meta": {
    "pagination": {
      "current_page": 1,
      "next_page": null,
      "prev_page": null,
      "total_pages": 1,
      "total_count": 1
    }
  }
}