Skip to content

Instantly share code, notes, and snippets.

@mjlassila
Created May 3, 2018 07:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mjlassila/fb2f18609aa7996ecc6959981b1dc615 to your computer and use it in GitHub Desktop.
Example JSON payload for attaching HTML media to existing items in Omeka-S
{
"o:renderer": "html",
"o:is_public": true,
"@type": "cnt:ContentAsText",
"cnt:characterEncoding": "UTF-8",
"o:ingester": "html",
"o:item": {
"@id": "http://omekas:8888/api/items/5500",
"o:id": 5500
},
"data": {
"html": "<p>Tämä on hyödyllinen testi!</p>\r\n\r\n"
},
"dcterms:title": [{
"property_id": 1,
"@value": "transcription",
"type": "literal",
"property_label": "Title"
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment