Libraries must progress through the publishing workflow to be properly tested
and approved for publishing. This is achieved by transitioning the library state
via an action
supplied in the meta
of a request.
development
The Library is editable.
Available actions: submit
, approve
submitted
The Library has been submitted for review.
Available actions: approve
, reject
approved
The Library has been approved for publishing.
Available actions: reject
rejected
The Library was rejected. Rejected libraries may be transitioned back to
development
for additional changes and submitted for another review.
Available actions: develop
published
The Library has been published.
PATCH /libraries/:id
curl https://reactor.adobe.io/libraries/:id \
-H "Accept: application/vnd.api+json;revision=1" \
-H "Content-Type: application/vnd.api+json" \
-H "Authorization: Bearer [TOKEN]" \
-H "X-Api-Key: [KEY]" \
-H "X-Gw-Ims-Org-Id: [ORG_ID]" \
-X PATCH \
-d \
'
{
"data": {
"id": "LB2dbe44cd22dc433ebb4023f07533ed6d",
"type": "libraries",
"meta": {
"action": "submit"
}
}
}'
{
"data": {
"id": "LB2dbe44cd22dc433ebb4023f07533ed6d",
"type": "libraries",
"attributes": {
"created_at": "2023-04-21T23:02:05.861Z",
"name": "My Library",
"published_at": null,
"state": "submitted",
"updated_at": "2023-04-21T23:02:11.217Z",
"created_by_email": "ciltaru@adobe.com",
"created_by_display_name": "George Ciltaru",
"updated_by_email": "ciltaru@adobe.com",
"updated_by_display_name": "George Ciltaru",
"build_required": false
},
"relationships": {
"builds": {
"links": {
"related": "https://reactor.adobe.io/libraries/LB2dbe44cd22dc433ebb4023f07533ed6d/builds"
}
},
"environment": {
"links": {
"self": "https://reactor.adobe.io/libraries/LB2dbe44cd22dc433ebb4023f07533ed6d/relationships/environment"
},
"data": null
},
"data_elements": {
"links": {
"related": "https://reactor.adobe.io/libraries/LB2dbe44cd22dc433ebb4023f07533ed6d/data_elements",
"self": "https://reactor.adobe.io/libraries/LB2dbe44cd22dc433ebb4023f07533ed6d/relationships/data_elements"
}
},
"extensions": {
"links": {
"related": "https://reactor.adobe.io/libraries/LB2dbe44cd22dc433ebb4023f07533ed6d/extensions",
"self": "https://reactor.adobe.io/libraries/LB2dbe44cd22dc433ebb4023f07533ed6d/relationships/extensions"
}
},
"notes": {
"links": {
"related": "https://reactor.adobe.io/libraries/LB2dbe44cd22dc433ebb4023f07533ed6d/notes"
}
},
"rules": {
"links": {
"related": "https://reactor.adobe.io/libraries/LB2dbe44cd22dc433ebb4023f07533ed6d/rules",
"self": "https://reactor.adobe.io/libraries/LB2dbe44cd22dc433ebb4023f07533ed6d/relationships/rules"
}
},
"upstream_library": {
"data": null
},
"property": {
"links": {
"related": "https://reactor.adobe.io/libraries/LB2dbe44cd22dc433ebb4023f07533ed6d/property"
},
"data": {
"id": "PRd4c8f729db1d4e3abd74dd1014b75aad",
"type": "properties"
}
},
"last_build": {
"links": {
"related": "https://reactor.adobe.io/libraries/LB2dbe44cd22dc433ebb4023f07533ed6d/last_build"
},
"data": {
"id": "BL22ad91810f964061a3724b0c74042a5b",
"type": "builds"
}
}
},
"links": {
"property": "https://reactor.adobe.io/properties/PRd4c8f729db1d4e3abd74dd1014b75aad",
"self": "https://reactor.adobe.io/libraries/LB2dbe44cd22dc433ebb4023f07533ed6d"
},
"meta": {
"build_status": null
}
}
}