Upload Resource (Binary) [DEPRECATED]

Upload the binary content for a resource that has already been registered in Doshii. If a binary resource has already been uploaded for a given resource-id, the existing binary resource will be replaced with the new content.

POST ~/resources/:resource-id

Headers

Parameters

Response Headers

Response

Examples

Response

{
    "id": "lLf2X0k6",
    "name": "pizza.png",
    "mimeType": "image/png",
    "context": "logo",
    "type": "doshii-uri",
    "resource": "https://sandbox.pos.doshii.co/v3/resources/lLf2X0k6",
    "createdAt": "2018-08-20T03:14:39.374Z",
    "relations": {
        "apps": [123],
        "locations": ["2X3b8q"],
        "menuProducts": [{
            "locationId": "2X3b8q",
            "posId": "pizza"
        }],
        "vendors": [456]
    }
}