Create a file

post/project/{projectName}/files

Creates a file within the specified subfolder in a project package.

Request Samples

1

Response Samples

1{
2 "id": "UHJvamVjdDEvMC4xL2hvbWUvYW5hbHl0aWNzL2E=",
3 "name": "/home/analytics/astore",
4 "type": "file",
5 "version": 2
6}

Path Parameters

NameTypeRequiredDescription
projectName
string
true

The project name.

Query Parameters

NameTypeRequiredDescription
chunk
integer<int32>
false

The index of the partial file chunk that is being transferred.

Default:
-1
chunks
integer<int32>
false

The total number of chunks.

Default:
-1
path
string
true

The path to the file. Example: /test_files/my.csv.

Request Body

Responses

StatusMeaningDescription
201Created

The request succeeded.

HeadersSchema
400Bad Request

The request was invalid. Additional information is available in the application logs if the environment variable LOGGING_LEVEL_ORG_SPRINGFRAMEWORK is set to DEBUG.

Schema
409Conflict

The request could not be completed due to a conflict with the current state of the resource.

Schema