Upload a file

put/sessions/{sessionId}/filerefs/{fileref}/content

Uploads a physical file that is associated with a fileref.

Request Samples

1

Response Samples

1Not Available

Path Parameters

NameTypeRequiredDescription
fileref
string
true

Specifies the fileref name. The name must be eight or fewer characters.

sessionId
string<object-id>
true

Specifies the ID of the session.

Header Parameters

NameTypeRequiredDescription
If-Match
string
true

Specifies the ETag of the fileref that you are updating.

Request Body

Specifies the data to upload to the fileref.

Responses

StatusMeaningDescription
201Created

The file content was created.

Headers
400Bad Request

The request was invalid.

Schema
404Not Found

No resource exists at the requested path.

Schema
412Precondition Failed

The If-Match request header did not match the resource's entity tag, or the If-Unmodified-Since request header did not match the resources last modified timestamp.

Schema
428Precondition Required

The request headers did not include an If-Match or If-Unmodified-Since precondition.

Schema