メインコンテンツまでスキップ

get-asset

restish dci get-asset id

Returns the full details of an asset specified by the asset id.

Responses

200 (application/json)

OK - Asset details returned.

{
"type": "object",
"description": "Detailed information about a single asset.",
"properties": {
"createTime": {
"type": "integer",
"description": "The time when the asset was created, in milliseconds since the epoch.",
"format": "int64"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"quantity": {
"type": "integer",
"format": "int64"
},
"type": {
"type": "string"
},
"url": {
"type": "string"
}
}
}

400 (application/json)

Bad Request - The server cannot process the request, often due to a malformed request.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

401 (application/json)

Unauthorized - Invalid API key.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

403 (application/json)

Forbidden - The client is not authorized to perform the request.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

404 (application/json)

Not Found - The requested resource does not exist.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

500 (application/json)

Internal Server Error - Something went wrong with the DoiT API server.

{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

Aliases: get-asset, getasset