PIMS Buckets Management API
POST/pim/manage/buckets
- Requires Data Editor ApiKey permissions.
- Example URI: https://instancename.piminto.com/api/en-us/pim/manage/buckets
The buckets API is designed to simplify the organization and management of assets within PIMS. It allows listing assets in a specific bucket, fetching trees of public and private buckets, creating new buckets, and deleting existing ones. Additionally, assets can be efficiently organized by placing them into specific buckets, providing a structured way to manage and categorize digital resources.
To use this API, send a POST request body JSON. ✔The description of JSON keys is provided in the Example Value and Schema.
Set the action key in the JSON body to one of the following values:
listAssetsInBucket: List Assets in a Bucket.Method for listing assets in a specified bucket, providing convenience for organizing assets.
moveAssetToBucket: Move Asset to Bucket. Method for initially placing an asset in a bucket or relocating it to a different bucket.
getPublicBucketsTree: Get Public Buckets Tree. Method for obtaining a tree of public buckets that can be viewed and modified by everyone.
getMyBucketsTree: Get My Buckets Tree.Method for obtaining a tree of private buckets owned by a specific owner (ApiUser or ApiKey).
addBucket: Add New Bucket.Method for creating a new bucket with specified characteristics (type, name, parent bucket, order).✔The type parameter can be either "global" or "personal."
editBucket: Edit Bucket Metadata.Method for editing bucket metadata, such as parent bucket, name, and order.
deleteBucket: Delete Bucket.Method for deleting a bucket. All assets are moved to the parent bucket, and only the owner of the bucket or if the bucket is public can perform this operation.
Request
- application/json
Body
required
- List Assets in a Bucket
- Move Asset to Bucket
- Get Public Buckets Tree
- Get My Buckets Tree
- Add New Bucket
- Edit Bucket Metadata
- Delete Bucket
Possible values: [listAssetsInBucket
]
Possible values: [moveAssetToBucket
]
Possible values: [getPublicBucketsTree
]
Possible values: [getMyBucketsTree
]
Possible values: [addBucket
]
Possible values: [global
, personal
]
data objectrequired
Possible values: [editBucket
]
data objectrequired
Possible values: [deleteBucket
]
Responses
- 200
- default
success
- application/json
- Schema
- Example (from schema)
- List Assets in a Bucket
- Move Asset to Bucket
- Get Public/My Buckets Tree
- Add/Edit Bucket
- Delete Bucket
Schema
- List Assets in a Bucket
- Move Asset to Bucket
- Get Public/My Buckets Tree
- Add/Edit Bucket
- Delete Bucket
- Array [
- ]
- Array [
- Array [
- ]
- ]
assets object[]required
data objectrequired
Metadata. Extendable.
data objectrequired
publicBucketsTree object[]required
children object[]required
data objectrequired
{}
{
"status": "OK",
"assets": [
{
"data": {
"url": "https://instancename.piminto.com/api/a/fe34e84xxxxxxxxxxxxxxxxxxxxxxxxx/image.png",
"filename": "image.png",
"type": "image",
"tags": [
"tag1",
"tag2",
"tag3"
],
"keywords": [
"keyword1",
"keyword2",
"keyword3"
],
"description": "A generic assets description with some key features",
"size": "3224"
},
"asset": "fe34e84xxxxxxxxxxxxxxxxxxxxxxxxx"
}
]
}
{
"status": "OK",
"asset_code": "fe34e84xxxxxxxxxxxxxxxxxxxxxxxxx",
"bucket_id": "1000"
}
{
"data": {
"publicBucketsTree": [
{
"buc_path": "Bucket-1 Name",
"buc_parent_id": 0,
"buc_order": 0,
"buc_path_id": "1",
"children": [
{
"buc_parent_id": 1,
"buc_path": "Bucket-1 Name > Bucket-2 Name",
"children": [],
"buc_order": 1,
"buc_path_id": "1 > 2",
"buc_name": "Bucket-2 Name",
"id": 2
}
],
"id": 1,
"buc_name": "Bucket-1 Name"
}
]
},
"status": "OK"
}
{
"status": "OK",
"data": {
"parent_id": 1000,
"name": "NameMyBucket",
"order": 0
}
}
{
"status": "OK"
}
The reason for the error is included in the response body
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [Error
]
The status of the API request. A value of "Error" indicates that the request was not successfully sent or processed.
Provides a message that describes the reason for the error that occurred while processing the API request.
{
"status": "Error",
"status_message": "string"
}