Create a folder
/api/20210901/catalog/folders
Request
There are no request parameters for this operation.
- application/json
object
-
createIntermediateFolders: boolean
Create all intermediate folders if any folder in the parent folder hierarchy doesn't currently exist.
object
-
name: string
Catalog item name
-
parentId: string
Catalog parent item identifier (if catalog item has a parent)
Response
- application/json
200 Response
-
object
CatalogItemIdRef
-
object
CatalogItemParentIdNameRef
-
object
Discriminator: type
Discriminator:
{ "propertyName":"type" }
object
-
description: string
Catalog item description, if any
-
lastModified: string
(date-time)
Catalog item last modified date and time
-
owner: string
Catalog item owner
-
type:
type
object
-
name: string
Catalog item name
-
parentId: string
Catalog parent item identifier (if catalog item has a parent)
400 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
401 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
403 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
404 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
500 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
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: