Blob - Upload

Upload a stream of data without completing the upload.

PATCH {url}/{nextBlobUuidLink}

URI Parameters

Name In Required Type Description
nextBlobUuidLink
path True

string

Link acquired from upload start or previous chunk. Note, do not include initial / (must do substring(1) )

url
path True

string

Registry login URL

Request Body

Media Types: "application/octet-stream"

Name Type Description
value

object

Raw data of blob

Responses

Name Type Description
202 Accepted

The stream of data has been accepted and the current progress is available in the range header. The updated upload location is available in the Location header.

Headers

  • Location: string
  • Range: string
  • Docker-Upload-UUID: string
Other Status Codes

AcrErrors

ACR error response describing why the operation failed.

Security

registry_auth

Type: basic

Examples

Upload Blob

Sample request

PATCH acrapi.azurecr-test.io/v2/blobland/blobs/uploads/2b28c60d-d296-44b7-b2b4-1f01c63195c6?_nouploadcache=false&_state=VYABvUSCNW2yY5e5VabLHppXqwU0K7cvT0YUdq57KBt7Ik5hbWUiOiJibG9ibGFuZCIsIlVVSUQiOiIyYjI4YzYwZC1kMjk2LTQ0YjctYjJiNC0xZjAxYzYzMTk1YzYiLCJPZmZzZXQiOjAsIlN0YXJ0ZWRBdCI6IjIwMTktMDgtMjdUMjM6NTI6NDcuMDUzNjU2Mjg1WiJ9

"U29tZXRoaW5nRWxzZQ=="

Sample response

Location: /v2/blobland/blobs/uploads/f6d3451c-3352-43ff-b67c-fd0cfc793066?_nouploadcache=false&_state=9G2t2KQOw-ANeo5TrnwVb5OeAUIe0NaEJ2jxwLT6Y1J7Ik5hbWUiOiJibG9ibGFuZCIsIlVVSUQiOiJmNmQzNDUxYy0zMzUyLTQzZmYtYjY3Yy1mZDBjZmM3OTMwNjYiLCJPZmZzZXQiOjEzLCJTdGFydGVkQXQiOiIyMDE5LTA4LTI3VDIzOjUyOjU0WiJ9
Range: 0-12
Docker-Upload-Uuid: f6d3451c-3352-43ff-b67c-fd0cfc793066

Definitions

Name Description
AcrErrorInfo

Error information

AcrErrors

Acr error response describing why the operation failed

AcrErrorInfo

Error information

Name Type Description
code

string

Error code

detail

object

Error details

message

string

Error message

AcrErrors

Acr error response describing why the operation failed

Name Type Description
errors

AcrErrorInfo[]

Array of detailed error