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!


Publish a Library

Only approved libraries may be published to production.

To publish a Library to production, ensure a production environment has been added to the Library, then create a Build.

Definition

POST  /libraries/:library_id/builds

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/libraries/:library_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 POST
  

Example Response

201 Created
{
  "data": {
    "id": "BLa54e708cc6a146859b27258ef8f9b832",
    "type": "builds",
    "attributes": {
      "created_at": "2018-07-26T15:04:25.173Z",
      "status": "pending",
      "updated_at": "2018-07-26T15:04:25.173Z"
    },
    "relationships": {
      "data_elements": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/builds/BLa54e708cc6a146859b27258ef8f9b832/data_elements"
        }
      },
      "extensions": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/builds/BLa54e708cc6a146859b27258ef8f9b832/extensions"
        }
      },
      "rules": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/builds/BLa54e708cc6a146859b27258ef8f9b832/rules"
        }
      },
      "environment": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/builds/BLa54e708cc6a146859b27258ef8f9b832/environment"
        },
        "data": {
          "type": "environments",
          "id": "EN209eadf7538b4db0bd728509cecb242c"
        }
      },
      "library": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/builds/BLa54e708cc6a146859b27258ef8f9b832/library"
        },
        "data": {
          "type": "libraries",
          "id": "LBfd08abea9ce54ef1943a17a45e798a80"
        }
      },
      "property": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/builds/BLa54e708cc6a146859b27258ef8f9b832/property"
        },
        "data": {
          "type": "properties",
          "id": "PR409fdb6818d044c8bc3a1c5a05fdf4b4"
        }
      }
    },
    "links": {
      "environment": "https://mc-api-activation-reactor-qe.adobe.io/environments/EN209eadf7538b4db0bd728509cecb242c",
      "library": "https://mc-api-activation-reactor-qe.adobe.io/libraries/LBfd08abea9ce54ef1943a17a45e798a80",
      "self": "https://mc-api-activation-reactor-qe.adobe.io/builds/BLa54e708cc6a146859b27258ef8f9b832"
    },
    "meta": {
      "artifact_url": "//assets.adobedtm.com/staging/launch-EN209eadf7538b4db0bd728509cecb242c-development.min.js"
    }
  }
}