Function: update with HTTP-POST multipart/form-data

Use

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.

Default

One or more components are stored in the content repository. The security level is set according to the standard specified on the server.

Access Mode

change (u)

Client -> Server

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

Server -> Client

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.