Create Resource Links [DEPRECATED]

Links entities to a given resource

POST ~/resources/:resource-id/relations

Headers

Parameters

Parameters

Response

Examples

Request: Link a location to a resource

{
	"relations": {
		"locations": ["2X3b8q"]
	}
}

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]
    }
}