Create a new repository container
post/repository/items/{itemId}/children
Create a new repository context or folder.
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": 1026}
Name | Type | Required | Description |
---|---|---|---|
itemId | string | true | The unique identifier for the repository item. Examples: "d6eefec9-dcc2-4574-8af8-69897038d9c5" |
Name | Type | Required | Description |
---|---|---|---|
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 |
Status | Meaning | Description | ||
---|---|---|---|---|
201 | Created | Created - the repository item was created successfully. | Schema | |
400 | Bad Request | Bad Request | ||
404 | Not Found | A repository item with the specified identifier could not be found. | ||
409 | Conflict | A repository item with the same name already exists at the specified location. |