Versions Compared

Key

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

...

Excerpt

Created a new document for an account.


Endpoint ID:

10629202
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

documentID

The ID of the document to be retrieved
Request body:None


white-space:pre
Code Block
titleExample Request
{
	   "content": 123456, 	"compressed": "John Doebase64 encoded text",
	   "createdBycompressed": "mailbox@mailserver.com",
	true,
   "description": "Description of the document",
   	"expiryDate": "31-12-2016 232016T23:59:59",
	   "mimeType": "image",
	   "name": "Test Document",
	   "sizeCompressed": 500,
	"sizeOriginal": 1500, 	"srid": 12345, 	"updatedBysizeOriginal": "mailbox@mailserver.com"1500
}
Span
style


Response body:


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

Code Block
titleExample RequestResponse
{
   	"contentdocumentID": 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