Folders endpoint
https://experience.adobe.io
.Folders are a capability that let you better organize your business objects for easier navigability and categorization.
This guide provides information to help you better understand folders and includes sample API calls for performing basic actions using the API.
Getting started
Before continuing, please review the getting started guide for important information that you need to know in order to successfully make calls to the API, including required headers and how to read example API calls.
Retrieve a list of folders list
You can retrieve a list of folders that belong to your organization by making a GET request to the /folder
endpoint and specifying the folder type and the parent folder ID.
API format
GET /folders/{FOLDER_TYPE}/{PARENT_FOLDER_ID}/subfolders
{FOLDER_TYPE}
segment
and dataset
.{PARENT_FOLDER_ID}
root
.Request
code language-shell |
---|
|
Response
A successful response returns HTTP status 200 with a list of all top-level folders for dataset in your organization.
code language-json |
---|
|
Create a new folder create
You can create a new folder by making a POST request to the /folder
endpoint and specifying the folder type.
API format
POST /folders/{FOLDER_TYPE}
{FOLDER_TYPE}
segment
and dataset
.Request
code language-shell |
---|
|
table 0-row-2 1-row-2 2-row-2 | |
---|---|
Property | Description |
name |
The name of the folder you want to create. |
parentId |
The ID of the parent folder. |
Response
A successful response returns HTTP status 200 with details of your newly created folder.
code language-json |
---|
|
table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2 5-row-2 | |
---|---|
Property | Description |
id |
The ID of the newly created folder. |
createdBy |
The ID of the user who created the folder. |
createdAt |
The timestamp of when the folder was created. |
modifiedBy |
The ID of the user who last modified the folder. |
modifiedAt |
The timestamp of when the folder was last updated. |
Retrieve a specific folder get
You can retrieve a specific folder that belongs to your organization by making a GET request to the /folder
endpoint and specifying the folder type and the folder’s ID.
API format
GET /folders/{FOLDER_TYPE}/{FOLDER_ID}
{FOLDER_TYPE}
segment
and dataset
.{FOLDER_ID}
Request
code language-shell |
---|
|
Response
A successful response returns HTTP status 200 with details of the requested folder.
code language-json |
---|
|
table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2 5-row-2 6-row-2 7-row-2 8-row-2 | |
---|---|
Property | Description |
id |
The ID of the requested folder. |
name |
The name of the requested folder. |
parentId |
The ID of the parent folder. |
createdBy |
The ID of the user who created the folder. |
createdAt |
The timestamp of when the folder was created. |
modifiedBy |
The ID of the user who last updated the folder. |
modifiedAt |
The timestamp of when the folder was last updated. |
status |
The status of the requested folder. Supported values include IN_USE and ARCHIVED . |
Validate a specified folder validate
You can validate if a folder is eligible to have objects in it by making a GET request to the /folder/{FOLDER_TYPE}/{FOLDER_ID}/validate
endpoint, and provide both the folder type and ID.
API format
GET /folders/{FOLDER_TYPE}/{FOLDER_ID}/validate
{FOLDER_TYPE}
segment
and dataset
.{FOLDER_ID}
Request
code language-shell |
---|
|
Response
A successful status returns HTTP status 200 with details of the folder you are validating.
code language-json |
---|
|
Update a specific folder update
You can update the details of a specific folder that belongs to your organization by making a PATCH request to the /folder
endpoint and specifying the folder type and the folder’s ID.
API format
PATCH /folders/{FOLDER_TYPE}/{FOLDER_ID}
{FOLDER_TYPE}
segment
and dataset
.{FOLDER_ID}
Request
code language-shell |
---|
|
Response
A successful response returns HTTP status 200 with information about your newly updated folder.
{
"id": "eafab5bf-3457-4b7f-b366-3c5399bd98f1",
"name": "RenamedSampleFolder",
"noun": "dataset",
"parentFolderId": null,
"imsOrg": "{ORG_ID}",
"sandboxId": "{SANDBOX_ID}",
"sandboxName": "prod",
"createdBy": "183807A65A0F5D180A494004@AdobeID",
"createdAt": "2024-03-05T01:42:36.910+00:00",
"modifiedBy": "183807A65A0F5D180A494004@AdobeID",
"modifiedAt": "2024-03-05T01:45:54.740+00:00",
"status": "IN_USE",
"_links": {
"self": {
"href": "/folders/dataset/eafab5bf-3457-4b7f-b366-3c5399bd98f1"
}
},
"namespace": null
}
Delete a specific folder delete
You can delete a specific folder that belongs to your organization by making a DELETE request to the /folder
and specifying the folder type and folder’s ID.
*API format
DELETE /folders/{FOLDER_TYPE}/{FOLDER_ID}
{FOLDER_TYPE}
segment
and dataset
.{FOLDER_ID}
Request
code language-shell |
---|
|
Response
A successful response returns HTTP status 200 with a message body informing you of the folder’s deletion.
{
"message": "delete request accepted successfully"
}
Next steps
After reading this guide, you now have a better understanding of how to create, manage, and delete folders using the Adobe Experience Platform API.