Create or update instance with holdings and items, based on incoming HRIDs on all three record types.
| X-Okapi-Tenant | string Okapi Tenant |
| X-Okapi-Token | string Okapi Token |
| X-Okapi-Url | string Okapi URL |
required | object (instance-with-hrid) An instance record in compliance with the schema of the given version of the underlying | ||||||||
| |||||||||
Array of objects (holdings-record-with-hrid) Collection of holdings of the instance, each holdings record with embedded items. | |||||||||
Array
| |||||||||
object Different types of instance-to-instance relationships to create or update. | |||||||||
| |||||||||
object (processing-upsert) An object holding supporting pieces of data and/or processing instructions for Inventory update processing. | |||||||||
| |||||||||
{- "instance": {
- "hrid": "string"
}, - "holdingsRecords": [
- {
- "hrid": "string",
- "items": [
- {
- "hrid": "string"
}
]
}
], - "instanceRelations": {
- "parentInstances": [
- {
- "instanceIdentifier": {
- "hrid": "string"
}, - "provisionalInstance": {
- "title": "string",
- "source": "string",
- "instanceTypeId": "string"
}, - "instanceRelationShipTypeId": "string"
}
], - "childInstances": [
- {
- "instanceIdentifier": {
- "hrid": "string"
}, - "provisionalInstance": {
- "title": "string",
- "source": "string",
- "instanceTypeId": "string"
}, - "instanceRelationShipTypeId": "string"
}
], - "precedingTitles": [
- {
- "instanceIdentifier": {
- "hrid": "string"
}, - "provisionalInstance": {
- "title": "string",
- "source": "string",
- "instanceTypeId": "string"
}
}
], - "succeedingTitles": [
- {
- "instanceIdentifier": {
- "hrid": "string"
}, - "provisionalInstance": {
- "title": "string",
- "source": "string",
- "instanceTypeId": "string"
}
}
]
}, - "processing": {
- "item": {
- "retainOmittedRecord": {
- "ifField": "string",
- "matchesPattern": "string"
}, - "retainExistingValues": {
- "forOmittedProperties": null,
- "forTheseProperties": [
- "string"
]
}, - "status": { },
- "statisticalCoding": [
- {
- "if": "deleteSkipped",
- "becauseOf": "ITEM_STATUS",
- "setCode": "string"
}
]
}, - "holdingsRecord": {
- "retainExistingValues": {
- "forOmittedProperties": null,
- "forTheseProperties": [
- "string"
]
}, - "statisticalCoding": [
- {
- "if": "deleteSkipped",
- "becauseOf": "ITEM_STATUS",
- "setCode": "string"
}
]
}, - "instance": {
- "retainExistingValues": {
- "forOmittedProperties": null,
- "forTheseProperties": [
- "string"
]
}, - "statisticalCoding": [
- {
- "if": "deleteSkipped",
- "becauseOf": "ITEM_STATUS",
- "setCode": "string"
}
]
}
}
}{- "instance": { },
- "holdingsRecords": [
- {
- "items": [
- { }
]
}
], - "instanceRelations": {
- "parentInstances": [
- {
- "subInstanceId": "string",
- "superInstanceId": "string",
- "instanceRelationshipTypeId": "string",
- "CREATE_PROVISIONAL_INSTANCE": { }
}
], - "childInstances": [
- {
- "subInstanceId": "string",
- "superInstanceId": "string",
- "instanceRelationshipTypeId": "string",
- "CREATE_PROVISIONAL_INSTANCE": { }
}
], - "precedingTitles": [
- {
- "succeedingInstanceId": "string",
- "precedingInstanceId": "string",
- "CREATE_PROVISIONAL_INSTANCE": { }
}
], - "succeedingTitles": [
- {
- "succeedingInstanceId": "string",
- "precedingInstanceId": "string",
- "CREATE_PROVISIONAL_INSTANCE": { }
}
]
}, - "metrics": {
- "INSTANCE": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "UPDATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "HOLDINGS_RECORD": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "UPDATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "ITEM": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "UPDATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "INSTANCE_RELATION_SHIP": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "PROVISIONAL_INSTANCE": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "INSTANCE_TITLE_SUCCESSION": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "PROVISIONAL_INSTANCE": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}
}, - "errors": [
- {
- "category": "string",
- "statusCode": "string",
- "message": "string",
- "shortMessage": "string",
- "entityType": "string",
- "transaction": "string",
- "entity": { },
- "details": { }
}
]
}Deletes a single record set (instance, holdings, items) by instance HRID.
| X-Okapi-Tenant | string Okapi Tenant |
| X-Okapi-Token | string Okapi Token |
| X-Okapi-Url | string Okapi URL |
| hrid | string The legacy ID for the bibliographic record, as stored in the HRID of the Instance to be deleted. | ||||||
object (processing-deletion) An object holding supporting pieces of data and/or processing instructions for instance delete processing. | |||||||
| |||||||
{- "hrid": "string",
- "processing": {
- "item": {
- "blockDeletion": {
- "ifField": "string",
- "matchesPattern": "string"
}, - "status": {
- "policy": "retain",
- "ifStatusWas": [
- {
- "name": "Aged to lost"
}
]
}, - "statisticalCoding": [
- {
- "if": "deleteSkipped",
- "becauseOf": "ITEM_STATUS",
- "setCode": "string"
}
]
}, - "holdingsRecord": {
- "blockDeletion": {
- "ifField": "string",
- "matchesPattern": "string"
}, - "statisticalCoding": [
- {
- "if": "deleteSkipped",
- "becauseOf": "ITEM_STATUS",
- "setCode": "string"
}
]
}, - "instance": {
- "blockDeletion": {
- "ifField": "string",
- "matchesPattern": "string"
}, - "statisticalCoding": [
- {
- "if": "deleteSkipped",
- "becauseOf": "ITEM_STATUS",
- "setCode": "string"
}
]
}
}
}{- "instance": { },
- "holdingsRecords": [
- {
- "items": [
- { }
]
}
], - "instanceRelations": {
- "parentInstances": [
- {
- "subInstanceId": "string",
- "superInstanceId": "string",
- "instanceRelationshipTypeId": "string",
- "CREATE_PROVISIONAL_INSTANCE": { }
}
], - "childInstances": [
- {
- "subInstanceId": "string",
- "superInstanceId": "string",
- "instanceRelationshipTypeId": "string",
- "CREATE_PROVISIONAL_INSTANCE": { }
}
], - "precedingTitles": [
- {
- "succeedingInstanceId": "string",
- "precedingInstanceId": "string",
- "CREATE_PROVISIONAL_INSTANCE": { }
}
], - "succeedingTitles": [
- {
- "succeedingInstanceId": "string",
- "precedingInstanceId": "string",
- "CREATE_PROVISIONAL_INSTANCE": { }
}
]
}, - "metrics": {
- "INSTANCE": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "UPDATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "HOLDINGS_RECORD": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "UPDATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "ITEM": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "UPDATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "INSTANCE_RELATION_SHIP": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "PROVISIONAL_INSTANCE": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "INSTANCE_TITLE_SUCCESSION": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "PROVISIONAL_INSTANCE": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}
}, - "errors": [
- {
- "category": "string",
- "statusCode": "string",
- "message": "string",
- "shortMessage": "string",
- "entityType": "string",
- "transaction": "string",
- "entity": { },
- "details": { }
}
]
}| X-Okapi-Tenant | string Okapi Tenant |
| X-Okapi-Token | string Okapi Token |
| X-Okapi-Url | string Okapi URL |
required | Array of objects (inventory-record-set-with-hrids) List of inventory record sets. | ||||||||
Array
| |||||||||
{- "inventoryRecordSets": [
- {
- "instance": {
- "hrid": "string"
}, - "holdingsRecords": [
- {
- "hrid": "string",
- "items": [
- {
- "hrid": "string"
}
]
}
], - "instanceRelations": {
- "parentInstances": [
- {
- "instanceIdentifier": {
- "hrid": "string"
}, - "provisionalInstance": {
- "title": "string",
- "source": "string",
- "instanceTypeId": "string"
}, - "instanceRelationShipTypeId": "string"
}
], - "childInstances": [
- {
- "instanceIdentifier": {
- "hrid": "string"
}, - "provisionalInstance": {
- "title": "string",
- "source": "string",
- "instanceTypeId": "string"
}, - "instanceRelationShipTypeId": "string"
}
], - "precedingTitles": [
- {
- "instanceIdentifier": {
- "hrid": "string"
}, - "provisionalInstance": {
- "title": "string",
- "source": "string",
- "instanceTypeId": "string"
}
}
], - "succeedingTitles": [
- {
- "instanceIdentifier": {
- "hrid": "string"
}, - "provisionalInstance": {
- "title": "string",
- "source": "string",
- "instanceTypeId": "string"
}
}
]
}, - "processing": {
- "item": {
- "retainOmittedRecord": {
- "ifField": "string",
- "matchesPattern": "string"
}, - "retainExistingValues": {
- "forOmittedProperties": null,
- "forTheseProperties": [
- "string"
]
}, - "status": { },
- "statisticalCoding": [
- {
- "if": "deleteSkipped",
- "becauseOf": "ITEM_STATUS",
- "setCode": "string"
}
]
}, - "holdingsRecord": {
- "retainExistingValues": {
- "forOmittedProperties": null,
- "forTheseProperties": [
- "string"
]
}, - "statisticalCoding": [
- {
- "if": "deleteSkipped",
- "becauseOf": "ITEM_STATUS",
- "setCode": "string"
}
]
}, - "instance": {
- "retainExistingValues": {
- "forOmittedProperties": null,
- "forTheseProperties": [
- "string"
]
}, - "statisticalCoding": [
- {
- "if": "deleteSkipped",
- "becauseOf": "ITEM_STATUS",
- "setCode": "string"
}
]
}
}
}
]
}{- "INSTANCE": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "UPDATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "HOLDINGS_RECORD": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "UPDATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "ITEM": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "UPDATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "INSTANCE_RELATION_SHIP": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "PROVISIONAL_INSTANCE": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "INSTANCE_TITLE_SUCCESSION": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "PROVISIONAL_INSTANCE": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}
}| id required | string Instance UUID or HRID. |
| X-Okapi-Tenant | string Okapi Tenant |
| X-Okapi-Token | string Okapi Token |
| X-Okapi-Url | string Okapi URL |
{- "instance": { },
- "holdingsRecords": [
- {
- "items": [
- { }
]
}
], - "instanceRelations": {
- "parentInstances": [
- {
- "subInstanceId": "string",
- "superInstanceId": "string",
- "instanceRelationshipTypeId": "string"
}
], - "childInstances": [
- {
- "subInstanceId": "string",
- "superInstanceId": "string",
- "instanceRelationshipTypeId": "string"
}
], - "precedingTitles": [
- {
- "succeedingInstanceId": "string",
- "precedingInstanceId": "string"
}
], - "succeedingTitles": [
- {
- "succeedingInstanceId": "string",
- "precedingInstanceId": "string"
}
]
}
}| X-Okapi-Tenant | string Okapi Tenant |
| X-Okapi-Token | string Okapi Token |
| X-Okapi-Url | string Okapi URL |
| instance | object (instance) An instance record in compliance with the schema of the given version of the underlying | ||||||
Array of objects (holdings-record) Collection of holdings of the instance, each holdings record with embedded items. | |||||||
Array
| |||||||
object An object holding supporting pieces of data and/or processing instructions for Inventory update processing. | |||||||
| |||||||
{- "instance": { },
- "holdingsRecords": [
- {
- "items": [
- { }
]
}
], - "processing": {
- "institutionId": "string",
- "localIdentifier": "string",
- "identifierTypeId": "string"
}
}{- "instance": { },
- "holdingsRecords": [
- {
- "items": [
- { }
]
}
], - "instanceRelations": {
- "parentInstances": [
- {
- "subInstanceId": "string",
- "superInstanceId": "string",
- "instanceRelationshipTypeId": "string",
- "CREATE_PROVISIONAL_INSTANCE": { }
}
], - "childInstances": [
- {
- "subInstanceId": "string",
- "superInstanceId": "string",
- "instanceRelationshipTypeId": "string",
- "CREATE_PROVISIONAL_INSTANCE": { }
}
], - "precedingTitles": [
- {
- "succeedingInstanceId": "string",
- "precedingInstanceId": "string",
- "CREATE_PROVISIONAL_INSTANCE": { }
}
], - "succeedingTitles": [
- {
- "succeedingInstanceId": "string",
- "precedingInstanceId": "string",
- "CREATE_PROVISIONAL_INSTANCE": { }
}
]
}, - "metrics": {
- "INSTANCE": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "UPDATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "HOLDINGS_RECORD": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "UPDATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "ITEM": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "UPDATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "INSTANCE_RELATION_SHIP": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "PROVISIONAL_INSTANCE": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "INSTANCE_TITLE_SUCCESSION": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "PROVISIONAL_INSTANCE": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}
}, - "errors": [
- {
- "category": "string",
- "statusCode": "string",
- "message": "string",
- "shortMessage": "string",
- "entityType": "string",
- "transaction": "string",
- "entity": { },
- "details": { }
}
]
}| X-Okapi-Tenant | string Okapi Tenant |
| X-Okapi-Token | string Okapi Token |
| X-Okapi-Url | string Okapi URL |
Array of objects (inventory-record-set) List of inventory record sets | |||||||
Array
| |||||||
{- "inventoryRecordSets": [
- {
- "instance": { },
- "holdingsRecords": [
- {
- "items": [
- { }
]
}
], - "processing": {
- "institutionId": "string",
- "localIdentifier": "string",
- "identifierTypeId": "string"
}
}
]
}{- "INSTANCE": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "UPDATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "HOLDINGS_RECORD": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "UPDATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "ITEM": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "UPDATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "INSTANCE_RELATION_SHIP": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "PROVISIONAL_INSTANCE": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}, - "INSTANCE_TITLE_SUCCESSION": {
- "CREATED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "DELETED": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}, - "PROVISIONAL_INSTANCE": {
- "COMPLETED": 0,
- "FAILED": 0,
- "SKIPPED": 0,
- "PENDING": 0
}
}
}