v1

latestOpenAPI 3.0.0Open Government Licence v3.02026-07-23111218.0 KB
Patch metadata state

PATCH metadata state for a file, (i.e. when an upload has completed)

patch/files/{path}

Path parameters

pathstring required

path of required file

Request body

statestring

New state for the file: UPLOADED, PUBLISHED or MOVED

collection_idstring

Set the collection ID when linking a file to a collection

bundle_idstring

Set the bundle ID when linking a file to a bundle

etagstring

The etag for the file

Example request

{
  "state": "UPLOADED",
  "etag": "194577a7e20bdcc7afbb718f502c134c"
}

Response

OK