Versions Compared

Key

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

...

Excerpt

Retrieves documents for an account.


style

Response body:

Endpoint ID:

10619201
Method:
Status
colourGreen
titleGET
URL:

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

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


entityID

dialogportal™ master key Rubiq entity ID that uniquely identifies account an account to return data for


externalRelationID

External key that uniquely identifies an account to return data for


externalRelationType

Type of external key

Request body:None
Span

white-space:pre

JSON data with properties corresponding to the fields in the documents.

Please note that fields with null value is not returned by this end point.

Code Block
titleExample Response
[
   	{
		
      "content": 123456,
		 "base64 encoded text",
      "compressed": "John Doe",
		false,
      "createdBy": "mailbox@mailserver.com",
		
      "createdDate": "01-01-2016 122016T12:00:00",
		
      "description": "Description of the document",
		      "documentID": 1,
		
      "expiryDate": "31-12-2016 232016T23:59:59",
		
      "mimeType": "image",
		
      "name": "Test Document",
		
      "sizeCompressed": 500,
		      "sizeOriginal": 1500,
		"srid": 12345,
		
      "updatedBy": "mailbox@mailserver.com",
		      "updatedDate": "01-03-2016 122016T12:00:00"
	   }
]


Status codes:200

Documents found with success


404

Account /document was not found

The following sub codes may be returned:

404.1User not found
404.2External user could not be found


...