Documentation > Access API > AssetController > accessapi/Asset/Create
accessapi/Asset/Create
Creates a new file or folder within the CMS.
POST
https://cms.crownpeak.com/[Your Instance]/cpt_webservice/accessapi/Asset/CreateRequest Information
URI Parameters
None.
Body Parameters
The parameters sent as post data.
AssetCreateRequest
Name | Description | Type |
---|---|---|
destinationFolderId | System.Int32 | |
devTemplateLanguage | System.Int32 | |
modelId | System.Int32 | |
newName | System.String | |
subtype | System.Int32 | |
templateId | System.Int32 | |
type | System.Int32 | |
workflowId | System.Int32 |
Request Formats
application/json
Sample:
{ "newName": "test new folder asset", "destinationFolderId": 0, "modelId": 2264, "type": 4 }
Response Information
Resource Description
AssetCreateResponse
Name | Description | Type |
---|---|---|
asset | CrownPeakApp.Model.WorklistAsset | |
ResultCode | eResultCodes | |
ErrorMessage | System.String | |
InternalCode | System.Int32 | |
IsSuccessful | System.Boolean |
Response Formats
application/json
Sample:
{ "asset": { "fullPath": null, "iconType": "Folder", "isFlagged": false, "iconTypeValue": null, "isWcoIntegrated": false, "permissionList": null, "hasCSharpInput": false, "id": 8413, "taskCount": 0, "error_code": 0, "branchId": -2, "label": "test new folder asset", "type": 4, "folder_id": 0, "workflow_id": 0, "workflow_step": 1, "version_id": null, "status_user_id": 11, "status": 0, "status_date": "2014-10-28T22:35:15.57", "owner_user_id": 0, "creator_user_id": 11, "storage_id": null, "extension": "", "create_date": "2014-10-28T22:35:15.57", "modified_user_id": 11, "modified_date": "2014-10-28T22:35:15.57", "checkout_user_id": null, "checkout_date": null, "error_msg": null, "size": 0, "template_id": 0, "template_label": null, "acl_id": 692, "change_date": "2014-10-28T22:35:15.57", "change_user_id": 11, "child_id": 8413, "base_model_id": 2264, "model_id": null, "deploy_id": 0, "is_deleted": null, "is_hidden": null, "publish_date": null, "publish_user_id": null, "template_language": 0, "subtype": null, "statusName": "", "statusColor": "", "ownedBy": null, "createdBy": "CrownPeak Admin", "modifiedBy": "CrownPeak Admin", "lastPublishedBy": null, "statusChangedBy": "CrownPeak Admin", "changedBy": "CrownPeak Admin", "checkedOutBy": null, "templateSubType": null, "isQueued": false, "hasPeriodicSchedule": false, "hasWorkflowSchedule": false, "approvedWorkflowFilters": null }, "resultCode": "conWS_Success", "errorMessage": null, "internalCode": 0 }