Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Use /entity routing instead of /user

...

Endpoint ID:

9202
Method:

Status
colourGreen
titlePOST

URL:

/userentity/dp-keyid/{entityID}/documents

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


entityID

dialogportalâ„¢ master key Rubiq entity ID that uniquely identifies the account to return data create the document for


externalRelationID

External key that uniquely identifies the account to return data create the document for


externalRelationType

Type of external key

Request body:None


Code Block
titleExample Request
{
	   "content": "Thisbase64 isencoded some contenttext",
	   "compressed": true,
	"createdBy": "John Doe", 	"description": "Description of the document",
	   "expiryDate": "31-12-2016 232016T23:59:59",
	   "mimeType": "image",
   	"name": "Test Document",
	   "sizeCompressed": 500,
	"sizeOriginal":
1500, 	"srid": 12345, 	"updatedBysizeOriginal": "John Doe"1500
}
Span
stylewhite-space:pre


Response body:


The content contain the DocumentID A JSON object containing the "documentID" of the newly created document.

Code Block
titleExample Response
{
   "documentID": 123456
}


Status codes:201

Document created with success


404

Account was not found

The following sub codes may be returned:

404.1User not found
404.2External user could not be found