Status change
This endpoint allows you to change artifact status depending on artifact related file upload result.
Endpoint: /v1/upload/complete
Method: POST
Request Body
Media Type: application/json
Body:
{
"fileId": "UUID",
"status": "enum",
"metadata": [
{
"string": "string"
}
]
}
fileId (required): The identifier for uploaded file. status (required): Status to set for file upload result. metadata (required): Metadata of the upload result.
Responses
200 (OK) The request was successful, and the server has created artifact.
Body:
[
{
"status": "enum",
"message": "string",
"metadata": {
"string" : "string"
},
"data": {
"fileId": "UUID",
"fileName": "string",
"fileType": "string",
"uploadDate": "date"
}
}
]
401 (Unauthorized) This response is returned if the request is not authorized.
Body:
{
"status": "enum",
"message": "string",
"metadata": {
"string": "string"
},
"data": "object"
}
404 (Not Found) This response is returned if the required resources are not found.
Body:
{
"status": "enum",
"message": "string",
"metadata": {
"string": "string"
},
"data": "object"
}
412 (Precondition Failed) This response is returned if a precondition is not met.
Body:
{
"status": "enum",
"message": "string",
"metadata": {
"string": "string"
},
"data": "object"
}
500 (Internal Server Error) This response is returned if an unexpected internal server error occurs.
Body:
{
"status": "enum",
"message": "string",
"metadata": {
"string": "string"
},
"data": "object"
}