Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Endpoint ID:

9202
Method:

Status
colourGreen
titlePOST

URL:

/user/dp-key/{entityID}/documents

/user/ext-key/{externalRelationID}/{externalRelationType}/documents



entityID

dialogportalâ„¢ master key that uniquely identifies account to return data for


externalRelationID

External key that uniquely identifies account to return data for


externalRelationType

Type of external key

Request body:None
Code Block
titleExample Request
{
	"content": "This is some content",
	"compressed": true,
	"createdBy": "John Doe",
	"description": "Description of the document",
	"expiryDate": "31-12-2016 23:59:59",
	"mimeType": "image",
	"name": "Test Document",
	"sizeCompressed": 500,
	"sizeOriginal": 1500,
	"srid": 12345,
	"updatedBy": "John Doe"
}
Span
stylewhite-space:pre
Response body:

The content contain the DocumentID of the created document

{ "content": 123456 }
Code Block
titleExample Request
Response
123456
Status codes:201

Document created with success