IRPCClientScript.UploadScriptApplicationFileBlock

View as Markdown

Vault API / standard write session idempotent

Uploads and installs an application package. Same as UploadScriptApplicationFileBlockEx without the list of outdated dependencies.

ServiceClient scripts and UI extension applications MFiles.IRPCClientScript
gRPC method/MFiles.IRPCClientScript/UploadScriptApplicationFileBlock
HTTP (mf-http-grpc)POST /grpc/v1/upload-script-application-file-block
RequestUploadScriptApplicationFileBlockRequest
ResponseUploadScriptApplicationFileBlockResponse
Book and levelVault API, standard
Kindwrite
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentyes
Returns metadata structure versionno
Streamingnone (unary)

Remarks

Request: UploadScriptApplicationFileBlockRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
upload_idint320 in the first call; then the upload_idret it returned.
total_size_in_bytesint64The total size of the file in bytes.
offsetint64Starting position. NOTE: Always use multiples of 4096 bytes.
databytesThe file block to append.
readyboolTrue on the last block, to install the uploaded package.

Response: UploadScriptApplicationFileBlockResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
upload_idretint32The ID of the upload, for the next blocks.