Function: update with
Similarly to the
create function, this variant of the function is used to replace a complete document with all its components in the content repository at once. Document components not already in the content repository are created if necessary. Components in the content repository that are not transferred when the update function is executed are considered obsolete and deleted.One or more components are stored in the content repository. The security level is set according to the standard specified on the server.
change (u)
The following parameters are possible:
|
Parameter |
Optional/ mandatory |
Default |
Position |
Sign |
|
contRep |
mandatory |
URL |
X |
|
|
compId |
mandatory |
body |
||
|
docId |
mandatory |
URL |
X |
|
|
pVersion |
mandatory |
URL |
||
|
Content-Type |
optional |
body |
||
|
charset |
optional |
body |
||
|
version |
optional |
body |
||
|
Content-Length |
mandatory |
body |
||
|
accessMode |
s-mandatory |
URL |
X |
|
|
authId |
s-mandatory |
URL |
X |
|
|
expiration |
s-mandatory |
URL |
X |
|
|
secKey |
optional |
URL |
![]()
s-mandatory means that this parameter need only be specified if the URL is signed.
The server answers the request with a response. The response status code indicates the outcome of the call.
|
HTTP Status Code |
Meaning |
|
200 (OK) |
OK, document(s)/component(s) changed |
|
400 (bad request) |
Unknown function or unknown parameter |
|
401 (unauthorized) |
Security breach |
|
404 (not found) |
Document or component not found |
|
409 (conflict) |
Document or component inaccessible |
|
500 (Internal Server Error) |
Internal error on Content Server |
The content server must set the dates (
dateM, compDateM and compDateC) and the times (timeM, compTimeM and compTimeC)) for changing components and the document.
