Contact Free trial Login

Manage Asset Portal Resources

You can upload up to 100 resources to an asset portal. Each image is one resource. Attempting to add more will result in an error. You can delete resources to reduce the number and then add more up to the limit.

These examples show how to list, retrieve, and delete resources from an asset portal with the Exchange Experience API.

Authentication

Login to the Anypoint Platform and get an authentication token. Make every request with the header Authorization: bearer ACCESS_TOKEN.

ACCESS_TOKEN=$(curl https://anypoint.mulesoft.com/accounts/login \
-XPOST -d "username=YOUR_USERNAME&password=YOUR_PASSWORD" | \
jq -r ".access_token")

Using the API

To list all resources:

curl https://anypoint.mulesoft.com/exchange/api/v2/assets/:groupId/:assetId/:version/portal/draft/resources \
  -H 'Authorization: bearer YOUR_ACCESS_TOKEN'

To get a specific resource:

curl https://anypoint.mulesoft.com/exchange/api/v2/assets/:groupId/:assetId/:version/portal/draft/resources/:resourceId \
  -H 'Authorization: bearer YOUR_ACCESS_TOKEN'

To delete a specific resource:

 curl -X DELETE \
  https://anypoint.mulesoft.com/exchange/api/v2/assets/:groupId/:assetId/:version/portal/draft/resources/:resourceId \
  -H 'Authorization: bearer YOUR_ACCESS_TOKEN'

With:

groupId: The asset's groupId
assetId: The asset's assetId
version: The asset's version
resourceId: The image file name.

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.