Create a folder

post

/api/20210901/catalog/folders

Create a folder.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Match All
Show Source
Nested Schema : CatalogItemRef
Match One Schema
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : CatalogItemIdRef
Type: object
Show Source
Nested Schema : CatalogItemParentIdNameRef
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : CatalogFolderItem
Match All
Show Source
Nested Schema : CatalogItem
Match All
Show Source
Nested Schema : Discriminator: type
Type: object
Show Source
Nested Schema : CatalogItemIdRef
Type: object
Show Source
Nested Schema : CatalogItemParentIdNameRef
Type: object
Show Source
Nested Schema : CatalogFolderItem-allOf[1]
Type: object
Show Source
Nested Schema : CatalogItems
Type: array
Show Source

400 Response

Bad Request (invalid query parameters, malformed headers, and so on).
Body ()
Root Schema : Error
Type: object
Show Source

401 Response

Unauthorized (missing or expired credentials, and so on).
Body ()
Root Schema : Error
Type: object
Show Source

403 Response

Forbidden (missing permissions for operation, request denied for unspecified reason, and so on).
Body ()
Root Schema : Error
Type: object
Show Source

404 Response

Not Found. The requested resource was not found.
Body ()
Root Schema : Error
Type: object
Show Source

500 Response

Internal Server Error. The server encountered an unexpected condition preventing fulfilment of the request.
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top

Examples

In this example, you create a folder with the full path /@Catalog/shared/Sales/2024 in the catalog for your Oracle Analytics instance. In this case, the intermediate folder Sales will be created as it doesn't exist yet.

cURL Example

First, Base64URL-safe encode the full path of the folder you want to create, that is /@Catalog/shared/Sales/2024. In this case, the Base64URL-safe encoded id value is L0BDYXRhbG9nL3NoYXJlZC9TYWxlcy8yMDI0

Run the cURL command with the required id and request that intermediate folders are created if required:

curl -i \
 --header 'Authorization: Bearer <token>' \
 --header 'Content-Type: application/json' \
 --request POST 'https://<hostname>/api/20210901/catalog/folders' \
 --data '{"createIntermediateFolders": true, \
          "id": "L0BDYXRhbG9nL3NoYXJlZC9TYWxlcy8yMDI0"}'

Example of Response Header

Not applicable.

Example of Response Body

Status 200:
Back to Top