You are here

Updating the contents of a document

You can replace the contents of a specific document in the repository by using its id. The format of the URl and the parameters that you can use are detailed in the service document.

URL format

Here is an example of a URL to update the contents of a specific document in an Alfresco Content Services on-premise instance:


Request Header

The request Content-Type must be of the same mime-type as the target document. In this example, we are updating a plain text document.

Content-Type: text/plain; charset=utf-8

Request body

The request body is the new content of the document.

Some updated text.


If the request is successful an HTTP CREATED response (status 201) is returned.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.