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": "LBdc2d00f923e84abea5f67d52555f6927",
    "type": "libraries",
    "attributes": {
      "created_at": "2018-08-31T16:48:48.676Z",
      "name": "My Library",
      "published_at": null,
      "state": "development",
      "updated_at": "2018-08-31T16:48:48.676Z",
      "build_required": true
    },
    "relationships": {
      "builds": {
        "links": {
          "related": "http://localhost:9010/libraries/LBdc2d00f923e84abea5f67d52555f6927/builds"
        }
      },
      "environment": {
        "links": {
          "self": "http://localhost:9010/libraries/LBdc2d00f923e84abea5f67d52555f6927/relationships/environment"
        },
        "data": null
      },
      "resources": {
        "links": {
          "related": "http://localhost:9010/libraries/LBdc2d00f923e84abea5f67d52555f6927/resources",
          "self": "http://localhost:9010/libraries/LBdc2d00f923e84abea5f67d52555f6927/relationships/resources"
        },
        "data": [

        ]
      },
      "upstream_library": {
        "data": null
      },
      "property": {
        "links": {
          "related": "http://localhost:9010/libraries/LBdc2d00f923e84abea5f67d52555f6927/property"
        },
        "data": {
          "id": "PRc81fb2f3ecf84146bac481ec5e956354",
          "type": "properties"
        }
      }
    },
    "links": {
      "property": "http://localhost:9010/properties/PRc81fb2f3ecf84146bac481ec5e956354",
      "self": "http://localhost:9010/libraries/LBdc2d00f923e84abea5f67d52555f6927"
    },
    "meta": {
      "build_status": null,
      "build_required_detail": "No build found since last state change"
    }
  }
}