Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
ON THIS PAGE
|
...
...
...
Upload Workflow
Webpages
These steps outline how to upload a webpage (i.e. an HTML file and associated asset files)
...
- The response body includes a token for the webpage-upload session, as well as an upload token for each file that is part of the webpage.
...
...
...
...
...
...
...
...
...
Note | ||
---|---|---|
| ||
All files must be specified in the initial POST call to the |
Individual Files
These steps outline how to upload a single, independent file (such as a content file or plugin script).
...
...
...
...
...
- The response body includes an upload token for the file.
...
Note | ||
---|---|---|
| ||
Unlike other endpoints, the |
/sessions/
GET
Retrieves currently active webpage-upload sessions.
URL Parameters
marker
: A value specifying which page to retrieve. This value is useful if theisTruncated
entry in the response body of the previous GET call indicates that the number of WebpageUploadStatus instances exceeds thepageSize
.filter
: An expression for filtering search results.pageSize
: The maximum number of WebpageUploadStatus instances that can be contained in the response body
Headers
Accept: application/vnd.bsn.webpage.upload.status.pagedlist.201701+json
Response Body
...
"unknown"
"queued"
"started"
"uploading"
"stopped"
"uploaded"
"verified"
"cancelled"
"corrupted"
"collected"
"terminated"
"completed"
...
[int] count
: The number of chunks with the specifiedlength
andstate
. A zero value is used for the section of the file that has not been uploaded/queued yet.[int] length
: The byte length of the chunk(s)[string] state
: The upload 6545163 of the chunk(s)
...
POST
Creates a new webpage-upload session for the webpage and its asset files. This operation returns a token for the entire webpage-upload session, as well as a token for each asset-file upload.
Headers
Content-Type: application/vnd.bsn.start.webpage.upload.arguments.201701+json
-or- application/vnd.bsn.start.webpage.update.arguments.201701+json
Accept: application/vnd.bsn.webpage.upload.status.201701+json, application/vnd.bsn.error+json
Request Body
...
"Auto"
"Text"
"Image"
"Video"
"Audio"
"Webpage"
"DeviceWebpage"
...
Response Body
...
...
...
...
...
...
[int] count
: The order of the chunk in the sequence[int] length
: The length (in bytes) of the chunk[string] state
: The upload 6545163 of the chunk.
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
/sessions/{sessionToken}/
GET
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
[int] count
: The number of chunks with the specifiedlength
andstate
. A zero value is used for the section of the file that has not been uploaded/queued yet.[int] length
: The byte length of the chunk(s)[string] state
: The upload 6545163 of the chunk(s)
...
...
Request Bobdy
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Response Body
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
GET
...
...
...
...
Headers
Accept: application/vnd.bsn.content.upload.status.201701+json
Response Body
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
PUT
...
...
...
...
...
...
...
Request Body
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Accept: application/vnd.bsn.upload.content.chunk.status.list.201701+json
Response Body
...
...
...
...
...
...
...
POST
...
...
...
...