Create Resources [DEPRECATED]

Create a resource

POST ~/resources

Headers

Parameters

Response Headers

Response

Examples

Request: Create a new resource hosted by Doshii

{
	"name": "logo.png",
	"mimeType": "image/png",
	"context": "logo",
	"type": "doshii-uri",
	"private": false,
	"relations": {
		"locations": ["2X3b8q"]
	}
}

Response

{
  "id":"lLf2X0k6",
  "uploadUri":"https://sandbox.pos.doshii.co/v3/resources/lLf2X0k6",
  "createdAt": "2018-08-24T04:58:38.485Z"
}

Request: Create a new resource externally hosted

{
	"name": "logo.png",
	"mimeType": "image/png",
	"context": "logo",
	"type": "external-uri",
	"resource": "https://some.external.host/images/logo.png",
	"private": false,
	"relations": {
		"locations": ["2X3b8q"]
	}
}

Response

{
  "id":"lLf2X0k6",
  "createdAt": "2018-08-24T04:58:38.485Z"
}