Upload file
Upload file
Header Parameters |
---|
organization-id uuid — REQUIREDID of organization context this request belongs to. |
Request Body |
---|
categoryId uuidHas to set if upload a document for a category => [(productId != null && consumerId == null && folderId == null) || (consumerId != null && productId == null && folderId == null) || (productId == null && consumerId == null && folderId == null)]. |
consumerId uuidHas to set if upload a document for a consumer => [category-id != null && productId == null && folderId == null]. |
file binary — REQUIRED |
folderId uuidHas to set if upload a document into a folder => [category-id == null && productId == null && consumerId == null]. |
productId uuidHas to set if upload a document for a product => [category-id != null && consumerId == null && folderId == null]. |
Responses | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
201 File successfully updated
| |||||||||||||||
400 Bad Request (e.g. element not found or resource conflict).
| |||||||||||||||
403 Missing permission
| |||||||||||||||
500 Internal server error (Internal service communication or process error).
|