Skip to content

Instantly share code, notes, and snippets.

@stefankeidel
Created October 19, 2012 11:52
Show Gist options
  • Save stefankeidel/3917836 to your computer and use it in GitHub Desktop.
Save stefankeidel/3917836 to your computer and use it in GitHub Desktop.
CollectiveAccess providence web service example request for editing an existing item
{
"intrinsic_fields" : {
"idno" : "NEWTEST-456",
},
"remove_all_labels" : true,
"preferred_labels" : [
{
"locale" : "en_US",
"forename" : "Walter",
"middlename" : "H.",
"surname" : "White"
}
],
"nonpreferred_labels" : [
{
"locale" : "en_US",
"forename" : "Werner",
"surname" : "Heisenberg"
}
],
"remove_attributes" : ["notes", "entity_address"],
"attributes" : {
"notes" : [
{
"locale" : "en_US",
"notes" : "Cool note!"
},
{
"locale" : "en_US",
"notes" : "Another cool note"
}
],
"entity_address" : [
{
"timespan" : "2008-2009",
"street" : "Highway To Hell",
"number" : "666",
"zip_code" : "10002",
"city" : "New York",
"state" : "NY"
}
]
},
"remove_relationships" : ["ca_entities"],
"related" : {
"ca_entities" : [
{
"entity_id" : 286,
"type_id" : 30,
"effective_date" : "2008-2009",
"source_info" : "No source, I just know!"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment