Endpoints
PUT /documents/{documentId}
Update an existing document with new content or metadata. This endpoint allows you to modify document properties, replace content entirely, or make incremental changes. You can update title, description, tags, and visibility settings while preserving version history for audit purposes.
curl -X PUT "https://api.manudocs.com/v1/documents/{documentId}" \
-H "Content-Type: application/json"
import requests
import json
url = "https://api.manudocs.com/v1/documents/{documentId}"
headers = {
"Content-Type": "application/json"
}
response = requests.put(url, headers=headers)
print(response.json())
const response = await fetch("https://api.manudocs.com/v1/documents/{documentId}", {
method: "PUT",
headers: {
"Content-Type": "application/json"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
)
func main() {
req, err := http.NewRequest("PUT", "https://api.manudocs.com/v1/documents/{documentId}", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.manudocs.com/v1/documents/{documentId}')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Put.new(uri)
request['Content-Type'] = 'application/json'
response = http.request(request)
puts response.body
{}
{}
PUT
/documents/{documentId}PUT
Request Preview
Response
Response will appear here after sending the request
Responses
Document updated successfully
Was this page helpful?
Built with Documentation.AI
Last updated 6 days ago