There is Swagger documentation available for this service
https://api.papirfly.app/dam/swagger-ui/index.html
Swagger URL for SSO login (replace [com_id] with your company ID): https://api.papirfly.app/login?state=%2Fdam%2Fswagger-ui%2Findex.html&p_com_id=[com_id]
Swagger URL for non-SSO login (replace [com_id] with your company ID twice):
https://api.papirfly.app/mars/external.access?p_url=%2Flogin%3Fstate%3D%252Fdam%252Fswagger-ui%252Findex.html%26p_com_id%3D[com_id]&p_com_id=[com_id]
DAM API is used to update and get detailed information about Place assets. Also use it to get available archives, light boxes, business areas and transcodings.
Listing archives
Lists archives for the company you are logged into and which you have proper rights to.
GET https://api.papirfly.app/dam/v3/archives?laeId=2
Listing business areas
Lists business areas for specific archive. It’s based on otyId (archiveId) and ptlId (portal ID)
GET https://api.papirfly.app/dam/v3/archives/{otyId}/business-areas?laeId=2&ptlId=<portalId>
Listing transcodings
Gets transcodings for given Place archive (portal and archive combination)
GET https://api.papirfly.app/dam/v3/transcodings?ptlId=<portalId>&otyId=<archiveId>
Listing lightboxes
Gets light boxes for specified archiveId and portal ID
GET https://api.papirfly.app/dam/v3/light-boxes?otyId=<archiveId>&ptlId=<portalId>
Updating asset
Updates attributes of asset
PUT https://api.papirfly.app/dam/v3/assets/{assetId}
{
"validTo": "2020-10-11T12:00:04Z",
"publishDate": "2020-10-07T11:03:04Z"
}
Update asset texts
Updates language-specific values of asset
PUT https://api.papirfly.app/dam/v3/assets/{assetId}/texts?laeId=2
{
"title": "Test Title"
}
Uploading asset
Uploades asset file based on otyId, ptlId and bussinesArea
Upload limit is 5 GB.
POST https://api.papirfly.app/dam/v3/assets/upload?businessArea={businessAreaName}&otyId={archiveId}&ptlId=<portalId>
{
file in multipart/form-data (the name of file should be in form name.extension EXAMPLE: picture.png)
}
Uploading asset version
Uploades new version of asset file based on assetId
Upload limit is 5 GB.
PUT https://api.papirfly.app/dam/v3/assets/{assetId}/versions
{
file in multipart/form-data (the name of file should be in form name.extension EXAMPLE: picture.png)
}
Deleting asset
Updates asset status to deleted based on assedId
DELETE https://api.papirfly.app/dam/v3/assets/{assetId}
Creating lightbox
Creates a lightbox for an archive specified by comId, ptlId and otyId combination.
POST https://api.papirfly.app/dam/v3/light-boxes?otyId={archiveId}&ptlId=<portalId>
{
“comId”: 10930,
“ptlId”: 13225,
“otyId”: 80753,
“publicLightBox”: true
}
Updating lightbox
Updates lightbox
PUT https://api.papirfly.app/dam/v3/light-boxes/{lightboxID}
{
“title”: “example title”,
“description”: “example description”
}
Deleting lightbox
Deletes lightbox
DELETE https://api.papirfly.app/dam/v3/light-boxes/{lightboxID}
Comments
0 comments
Please sign in to leave a comment.