Update file metadata content_item
Updates the content_item information for a file's metadata
put/files/{path}
Request
- Base URLhttp://localhost:26900
- AuthAPI key in header Authorization
Path parameters
pathstring required
path of required file
Request body
Example request
{
"content_item": {
"dataset_id": "cpih01",
"edition": "time-series",
"version": "1"
}
}Response
File metadata
Example response
{
"path": "images/meme.jpg",
"is_publishable": true,
"collection_id": "1234-asdfg-54321-qwerty",
"bundle_id": "bundle-789-xyz",
"title": "The latest Meme",
"size_in_bytes": 14794,
"type": "image/jpeg",
"licence": "OGL v3",
"licence_url": "http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/",
"etag": "1234567890asdfghjk",
"state": "UPLOADED",
"content_item": {
"dataset_id": "cpih01",
"edition": "time-series",
"version": "1"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.