Create a new file or folder artifact
post
/epm/rest/v1/artifacts
Request
Query Parameters
-
overwrite: boolean
Overwrite an existing file artifact (default = false). This does not apply to folder artifacts.
Supported Media Types
- application/json
Root Schema : schema
Type:
objectNarrative Reporting Library Artifact
Show Source
-
description: string
The file or folder description.
-
file: string
When creating a file artifact, the file being added to the Library must be uploaded using Files REST API or by the EPMAutomate uploadFile command. * If the file was uploaded using the Files REST API, provide the File ID as the value for this parameter. * If the file was uploaded using EPMAutomate, provide the file name that was used to upload the file.
-
mimeType: string
Allowed Values:
[ "application/zip", "application/x-zip-compressed", "text/plain", "text/csv", "font/ttf", "application/pdf", "application/vnd.ms-excel", "application/vnd.ms-word", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.openxmlformats-officedocument.presentationml.presentation" ] -
name: string
The file or folder name.
-
systemPath: string
The Library folder where the new file or folder will be created. * When creating a folder, any parent folders specified in the systemPath will also be created. * This parameter is optional when creating a folder. If this parameter isn't specified, the folder will be created at the root of the Library. * This parameter is required when creating a file.
-
type: string
Allowed Values:
[ "FileResourceType", "FolderResourceType" ]
Response
Supported Media Types
- application/json
201 Response
The artifact was created.
Root Schema : Artifact
Type:
objectNarrative Reporting Library Artifact
Show Source
-
artifactId: string
Read Only:
true -
artifactImage: string
Read Only:
true -
children: object
ItemCollectionArtifact
-
createdBy: string
Read Only:
true -
creationDate: string
(date-time)
Read Only:
true -
description: string
-
favorite: boolean
Read Only:
true -
lastAccessed: string
(date-time)
Read Only:
true -
links: array
links
Read Only:
true -
mimeType: string
Read Only:
true -
modifiedBy: string
Read Only:
true -
modifiedDate: string
(date-time)
Read Only:
true -
name: string
-
ordinal: integer
(int32)
Read Only:
trueAn artifact's ordinal represents the artifact's display position to the other artifacts in the given folder (e.g. favorites). The position is set by the end user. If the ordinal is -1, there is no position set by the end user. -
pathName: string
-
systemPath: string
-
type: string
-
typeID: string
Read Only:
true -
typeLabel: string
Read Only:
true
Nested Schema : ItemCollectionArtifact
Type:
Show Source
object-
count: integer
(int32)
Read Only:
true -
hasMore: boolean
Read Only:
true -
items: array
items
Read Only:
true -
limit: integer
(int32)
-
links: array
links
Read Only:
true -
offset: integer
(int32)
Read Only:
true -
totalResults: integer
(int32)
Nested Schema : items
Type:
arrayRead Only:
Show Source
true-
Array of:
object Artifact
Narrative Reporting Library Artifact
Nested Schema : Link
Type:
Show Source
object-
href: string
-
rel: string
Allowed Values:
[ "self", "next", "prev", "first", "canonical", "parent" ]
400 Response
Invalid parameter
Root Schema : ExceptionDetail
Type:
objectDetailed exception information.
Show Source
-
detail: string
Human-readable description specific to this occurrence of the problem.
-
status: integer
HTTP status code for this occurrence of the problem, set by the origin server.
-
title: string
Short, human-readable summary of the problem.
-
type: string
Absolute URI [RFC3986] that identifies the problem type.
500 Response
Service Error
Root Schema : ExceptionDetail
Type:
objectDetailed exception information.
Show Source
-
detail: string
Human-readable description specific to this occurrence of the problem.
-
status: integer
HTTP status code for this occurrence of the problem, set by the origin server.
-
title: string
Short, human-readable summary of the problem.
-
type: string
Absolute URI [RFC3986] that identifies the problem type.