Image - Upload
Starts an asynchronous operation to upload the provided image.
POST https://prod.core.sphere.azure.net/v2/tenants/{tenantId}/images
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
tenant
|
path | True |
string uuid |
The Azure Sphere tenant ID. |
Request Body
Media Types: "application/octet-stream"
Name | Type | Description |
---|---|---|
body |
byte[] |
The image data, in the form of a byte array. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
An object with operation details. |
|
400 Bad Request |
A collection of error details. |
|
404 Not Found |
A collection of error details. |
|
500 Internal Server Error |
A collection of error details. |
Definitions
Name | Description |
---|---|
Error |
|
Operation | |
Public |
ErrorResponse
Name | Type | Description |
---|---|---|
Code |
enum:
|
Gets the code. |
Message |
string |
Gets the human readable error message. |
Operation
Name | Type | Description |
---|---|---|
CompletedDateUTC |
string |
Gets the date in UTC that the operation completed. |
CreatedDateUTC |
string |
Gets the operation creation date in UTC. |
DetailsLocation |
string |
Gets the location for getting details of the operation. |
Error | ||
OperationId |
string |
Gets the unique operation identifier. |
OperationType |
enum:
|
Gets the operation type identifier. |
ResourceLocation |
string |
Gets the location of resources created during the execution of the operation. |
StartedDateUTC |
string |
Gets the date in UTC that the operation started processing. |
State |
enum:
|
Gets the state of the operation. |
TenantId |
string |
Gets the tenant identifier. |
PublicApiErrorDetails
Name | Type | Description |
---|---|---|
Detail |
string |
A human-readable explanation specific to this occurrence of the problem. |
ErrorCode |
string |
A string representation of PublicApiErrorCode defining the error. |
Extensions |
|
Gets the Dictionary for extension members.Problem type definitions MAY extend the problem details object with additional members. Extension members appear in the same namespace as other members of a problem type. |
Instance |
string |
A URI reference that identifies the specific occurrence of the problem.It mayor may not yield further information if dereferenced. |
Status |
integer |
The HTTP status code([RFC7231], Section 6) generated by the origin server forthis occurrence of the problem. |
Title |
string |
A short, human-readable summary of the problem type.It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization(e.g.,using proactive content negotiation; see[RFC7231], Section 3.4). |
Type |
string |
A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be blank. |