diff --git a/api/reference/1.0/app_configurations/list.md b/api/reference/1.0/app_configurations/list.md index 4104d01..b7e0981 100644 --- a/api/reference/1.0/app_configurations/list.md +++ b/api/reference/1.0/app_configurations/list.md @@ -8,7 +8,7 @@ labels: {% labels %} -Retrieve the App Configurations owned by the specified Company. +Retrieve the App Configurations owned by the specified Company. Icons can be included with a query parameter `?include=icon` {% filters app_configuration %} diff --git a/api/reference/1.0/app_configurations/relationships/icon/create.md b/api/reference/1.0/app_configurations/relationships/icon/create.md new file mode 100644 index 0000000..bbebef9 --- /dev/null +++ b/api/reference/1.0/app_configurations/relationships/icon/create.md @@ -0,0 +1,147 @@ +--- +title: Create +labels: + - unstable +--- + +# Create an Icon for an AppConfiguration + +{% labels %} + +Icons are processed asynchronously and have a `status` attribute representing the current status of the Icon. + +{% alert info, Note %} +This endpoint expects multipart requests. Icons must be 4 Mb or less. +{% endalert %} + +
file
+ POST app_configurations/:app_configuration_id/icon
+ curl https://reactor.adobe.io/app_configurations/:app_configuration_id/icon \
+ -H "Accept: application/vnd.api+json;revision=1" \
+ -H "Content-Type: multipart/form-data" \
+ -H "Authorization: Bearer [TOKEN]" \
+ -H "X-Api-Key: [KEY]" \
+ -H "X-Gw-Ims-Org-Id: [ORG_ID]" \
+ -F "file"="@[PATH]"
+
+ {
+ "data": {
+ "id": "ICd1de2829fd4743c5bc45b98d9d01a396",
+ "type": "icons",
+ "attributes": {
+ "url": "https://assets.adobedtm.com/icons/17e0df72ece8/ICd1de2829fd4743c5bc45b98d9d01a396.png",
+ "status": "pending",
+ "created_at": "2022-02-04T21:14:23.483Z",
+ "updated_at": "2022-02-04T21:14:23.483Z"
+ },
+ "relationships": {
+ "resource": {
+ "links": {
+ "related": "https://reactor.adobe.io/app_configurations/AC082ee39971a9444fb133e7610ae1e9f7"
+ },
+ "data": {
+ "id": "AC082ee39971a9444fb133e7610ae1e9f7",
+ "type": "app_configurations"
+ }
+ }
+ },
+ "links": {
+ "resource": "https://reactor.adobe.io/app_configurations/AC082ee39971a9444fb133e7610ae1e9f7",
+ "self": "https://reactor.adobe.io/icons/ICd1de2829fd4743c5bc45b98d9d01a396"
+ }
+ }
+}
+ file
+ POST app_surfaces/:app_surface_id/icon
+ curl https://reactor.adobe.io/app_surfaces/:app_surface_id/icon \
+ -H "Accept: application/vnd.api+json;revision=1" \
+ -H "Content-Type: multipart/form-data" \
+ -H "Authorization: Bearer [TOKEN]" \
+ -H "X-Api-Key: [KEY]" \
+ -H "X-Gw-Ims-Org-Id: [ORG_ID]" \
+ -F "file"="@[PATH]"
+
+ {
+ "data": {
+ "id": "ICf76b9de5b229435bb76802427a88464b",
+ "type": "icons",
+ "attributes": {
+ "url": "https://assets.adobedtm.com/icons/17e0df72ece8/ICf76b9de5b229435bb76802427a88464b.png",
+ "status": "pending",
+ "created_at": "2022-02-04T21:14:23.483Z",
+ "updated_at": "2022-02-04T21:14:23.483Z"
+ },
+ "relationships": {
+ "resource": {
+ "links": {
+ "related": "https://reactor.adobe.io/app_surfaces/ASb763e208e4f64c86a4ce6445604355ce"
+ },
+ "data": {
+ "id": "ASb763e208e4f64c86a4ce6445604355ce",
+ "type": "app_surfaces"
+ }
+ }
+ },
+ "links": {
+ "resource": "https://reactor.adobe.io/app_surfaces/ASb763e208e4f64c86a4ce6445604355ce",
+ "self": "https://reactor.adobe.io/icons/ICf76b9de5b229435bb76802427a88464b"
+ }
+ }
+}
+ file
- file
- file
+ PATCH icons/icon_id
+ curl https://reactor.adobe.io/icons/:icon_id \
+ -H "Accept: application/vnd.api+json;revision=1" \
+ -H "Content-Type: multipart/form-data" \
+ -H "Authorization: Bearer [TOKEN]" \
+ -H "X-Api-Key: [KEY]" \
+ -H "X-Gw-Ims-Org-Id: [ORG_ID]" \
+ -F "file"="@[PATH]"
+
+ {
+ "data": {
+ "id": "ICf76b9de5b229435bb76802427a88464b",
+ "type": "icons",
+ "attributes": {
+ "url": "https://assets.adobedtm.com/icons/17e0df72ece8/ICf76b9de5b229435bb76802427a88464b.png",
+ "status": "pending",
+ "created_at": "2022-02-04T21:14:23.483Z",
+ "updated_at": "2022-02-04T21:14:23.483Z"
+ },
+ "relationships": {
+ "resource": {
+ "links": {
+ "related": "https://reactor.adobe.io/app_surfaces/ASb763e208e4f64c86a4ce6445604355ce"
+ },
+ "data": {
+ "id": "ASb763e208e4f64c86a4ce6445604355ce",
+ "type": "app_surfaces"
+ }
+ }
+ },
+ "links": {
+ "resource": "https://reactor.adobe.io/app_surfaces/ASb763e208e4f64c86a4ce6445604355ce",
+ "self": "https://reactor.adobe.io/icons/ICf76b9de5b229435bb76802427a88464b"
+ }
+ }
+}
+