Create a new repository container

post/repository/items/{itemId}/children
Internal-Use Only

Create a new repository context or folder.

Request Samples

1

Response Samples

1{
2 "version": 1,
3 "createdBy": "sastest1",
4 "creationTimeStamp": "2023-08-29T12:23:24Z",
5 "modifiedBy": "sastest1",
6 "modifiedTimeStamp": "2023-09-19T19:01:21Z",
7 "id": "cac68a83-2f9b-4e45-859f-1163581edf1e",
8 "typeId": "businessunit",
9 "createdByDisplayName": "SAS Test User 1 (sastest1)",
10 "modifiedByDisplayName": "SAS Test User 1 (sastest1)",
11 "primaryType": "CONTEXT",
12 "name": "BU",
13 "location": "/",
14 "path": "/BU",
15 "size": 5318049,
16 "propertiesModifiedTimeStamp": "2023-08-29T12:23:24Z",
17 "propertiesModifiedBy": "sastest1",
18 "propertiesModifiedByDisplayName": "SAS Test User 1 (sastest1)",
19 "state": "ACTIVE",
20 "owner": "sastest1",
21 "ownerDisplayName": "SAS Test User 1 (sastest1)",
22 "defaultOwner": "sastest1",
23 "defaultOwnerDisplayName": "SAS Test User 1 (sastest1)",
24 "defaultMajorVersionLimit": 5,
25 "defaultMinorVersionLimit": 10
26}

Path Parameters

NameTypeRequiredDescription
itemId
string
true

The unique identifier for the repository item.

Examples:
"d6eefec9-dcc2-4574-8af8-69897038d9c5"

Query Parameters

NameTypeRequiredDescription
description
string
false

The description for the newly created item.

Examples:
"Project for ad hoc reporting."
owner
string
false

The owner to set for the newly created context. By default, the default permission's owner is used to set the new owner. However, this behavior can be overwritten by explicitly setting the owner with this parameter. This can be set only for contexts, this parameter is ignored when creating folders.

Examples:
"sastest"
typeId
string
false

The type identifier of the context to be created. This parameter is required when a context is being created. For folder primary types this parameter will be ignored.

Examples:
"project"
name
string
true

The name of the new item to be created.

Examples:
"MyProject"
type
string
true

The primary type of the new item to be created.

Allowed values:
CONTEXTFOLDER

Responses

StatusMeaningDescription
201CreatedCreated - the repository item was created successfully.Schema
400Bad RequestBad Request
404Not FoundA repository item with the specified identifier could not be found.
409ConflictA repository item with the same name already exists at the specified location.