Create a new library item that refers to the pending file upload. POST http://192.168.2.149/rest-api/v1/libraryitems Sending data: {"data":{"apiTest":"true","label":"File upload"},"resources":[{"data":{"createdMillis":1547134881481,"pendingId":"example-58135800"},"type":"pending"}],"type":"libraryitem"} Server returned response code: 201 Received: { "type" : "libraryitem", "id" : "0163ED7F589806", "data" : { "createdMillis" : "1547063773302", "modifiedMillis" : "1547063773302", "apiTest" : "true", "label" : "File upload" }, "storageOp" : "CREATE", "resources" : [ { "type" : "pending", "data" : { "createdMillis" : "1547134881481", "pendingId" : "example-58135800" } } ] } Perform the upload. Connecting to http://192.168.2.149/upload to upload data. Headers: {X-ItemId=[0163ED7F589806], X-PendingId=[example-58135800], X-ItemType=[libraryitem], X-UploadType=[raw], X-FileName=[car.jpg], Content-Type=[content/unknown]} 65,536 bytes uploaded. 262,532 bytes uploaded. Server returned response code: 200 Fetch the library item to check it has the uploaded resource. GET http://192.168.2.149/rest-api/v1/libraryitem/0163ED7F589806 Server returned response code: 200 Received: { "type" : "libraryitem", "id" : "0163ED7F589806", "data" : { "createdMillis" : "1547063773302", "modifiedMillis" : "1547063774328", "apiTest" : "true", "label" : "File upload" }, "resources" : [ { "type" : "static", "data" : { "createdMillis" : "1547134881481", "modifiedMillis" : "1547063773354", "pendingId" : "example-58135800", "blobId" : "9170A60FCC7C77F16FA3E4EAA22E2B49-352423", "width" : "1820", "contentLength" : "352423", "contentType" : "image/jpeg", "height" : "1138" } }, { "type" : "static", "data" : { "createdMillis" : "1547134881481", "modifiedMillis" : "1547063773354", "pendingId" : "example-58135800", "blobId" : "371D5C3755646C78962A4D0866DA3763-391230", "width" : "1920", "contentLength" : "391230", "contentType" : "image/jpeg", "height" : "1200" } }, { "type" : "static", "data" : { "createdMillis" : "1547134881481", "modifiedMillis" : "1547063773354", "pendingId" : "example-58135800", "blobId" : "1F4946555327788DBF1B400CCDF461ED-91174", "width" : "894", "contentLength" : "91174", "contentType" : "image/jpeg", "height" : "559" } }, { "type" : "static", "data" : { "createdMillis" : "1547134881481", "modifiedMillis" : "1547063773354", "pendingId" : "example-58135800", "blobId" : "93D0530E95B0127BC08649D9B976A7D4-3892", "width" : "100", "contentLength" : "3892", "contentType" : "image/jpeg", "enabled" : "false", "height" : "62" } } ] } Create a new library item that refers to the pending static import. POST http://192.168.2.149/rest-api/v1/libraryitems Sending data: {"data":{"apiTest":"true","label":"Static import"},"resources":[{"data":{"createdMillis":1547134882696,"pendingId":"example-946794846"},"type":"pending"}],"type":"libraryitem"} Server returned response code: 201 Received: { "type" : "libraryitem", "id" : "0130094A724BCA", "data" : { "createdMillis" : "1547063774338", "modifiedMillis" : "1547063774338", "apiTest" : "true", "label" : "Static import" }, "storageOp" : "CREATE", "resources" : [ { "type" : "pending", "data" : { "createdMillis" : "1547134882696", "pendingId" : "example-946794846" } } ] } Perform the static import. Connecting to http://192.168.2.149/upload to start import. Headers: {X-ItemId=[0130094A724BCA], X-PendingId=[example-946794846], X-ItemType=[libraryitem], X-UploadType=[static-url], Content-Type=[text/plain]} Server returned response code: 200 Create a new library item that refers to the pending static import. POST http://192.168.2.149/rest-api/v1/libraryitems Sending data: {"data":{"apiTest":"true","dynamic":true,"label":"Dynamic import"},"resources":[{"data":{"createdMillis":1547134882721,"pendingId":"example-493248365"},"type":"pending"}],"type":"libraryitem"} Server returned response code: 201 Received: { "type" : "libraryitem", "id" : "01EAF9A1C28E9A", "data" : { "createdMillis" : "1547063774363", "modifiedMillis" : "1547063774363", "apiTest" : "true", "dynamic" : "true", "label" : "Dynamic import" }, "storageOp" : "CREATE", "resources" : [ { "type" : "pending", "data" : { "createdMillis" : "1547134882721", "pendingId" : "example-493248365" } } ] } Perform the dynamic import. Connecting to http://192.168.2.149/upload to start import. Headers: {X-ItemId=[01EAF9A1C28E9A], X-PendingId=[example-493248365], X-ItemType=[libraryitem], X-UploadType=[dynamic-url], Content-Type=[text/plain]} Server returned response code: 200