Versions Compared

Key

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


Excerpt

Update a document for an account. This endpoint may also be used to move a document to another entity, by setting the moveToEntityID property.


Endpoint ID:

9205
Method:

Status
colourGreen
titlePUT

URL:

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

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



entityID

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


externalRelationID

External key that uniquely identifies an account to return data for


externalRelationType

Type of external key

documentID

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


Note

All properties are optional, only the properties that are included in the request will be updated.


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


Response body:

None


Status codes:200204

Document updated with success


404

Account was not found, or the document was not found for the account.

The following sub codes may be returned:

404.1User not found
404.2External user could not be found