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!


Create a Library

Attributes

name
string - optional

Definition

POST  /properties/:property_id/libraries

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/properties/:property_id/libraries \
  -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 \
  -d \
'
{
  "data": {
    "attributes": {
      "name": "My Library"
    },
    "type": "libraries"
  }
}'

Example Response

201 Created
{
  "data": {
    "id": "LBbda5484c2f4042fcaa6a8c58e5bcca58",
    "type": "libraries",
    "attributes": {
      "created_at": "2018-07-26T15:01:19.283Z",
      "name": "My Library",
      "published_at": null,
      "state": "development",
      "updated_at": "2018-07-26T15:01:19.283Z",
      "build_required": true
    },
    "relationships": {
      "builds": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/libraries/LBbda5484c2f4042fcaa6a8c58e5bcca58/builds"
        }
      },
      "environment": {
        "links": {
          "self": "https://mc-api-activation-reactor-qe.adobe.io/libraries/LBbda5484c2f4042fcaa6a8c58e5bcca58/relationships/environment"
        },
        "data": null
      },
      "resources": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/libraries/LBbda5484c2f4042fcaa6a8c58e5bcca58/resources",
          "self": "https://mc-api-activation-reactor-qe.adobe.io/libraries/LBbda5484c2f4042fcaa6a8c58e5bcca58/relationships/resources"
        },
        "data": [

        ]
      },
      "upstream_library": {
        "data": null
      },
      "property": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/libraries/LBbda5484c2f4042fcaa6a8c58e5bcca58/property"
        },
        "data": {
          "type": "properties",
          "id": "PR9aa9412edbbd48cf9cb8e093bfa45625"
        }
      }
    },
    "links": {
      "property": "https://mc-api-activation-reactor-qe.adobe.io/properties/PR9aa9412edbbd48cf9cb8e093bfa45625",
      "self": "https://mc-api-activation-reactor-qe.adobe.io/libraries/LBbda5484c2f4042fcaa6a8c58e5bcca58"
    },
    "meta": {
      "build_status": null,
      "build_required_detail": "No build found since last state change"
    }
  }
}