Storage for instances in the inventory
Storage for instances in the inventory
Collection of instance-relationship items.
Retrieve a list of instance-relationship items.
Used to send a valid JWT token.
Example:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
A query expressed as a CQL string (see dev.folio.org/doc/glossary#cql) using valid searchable fields. The first example below shows the general form of a full CQL query, but those fields might not be relevant in this context.
by parent ID or by child ID (using CQL)
Example:(username=="ab*" or personal.firstName=="ab*" or personal.lastName=="ab*") and active=="true" sortby personal.lastName personal.firstName barcode
subInstanceId==83a50dc6-b887-43d9-93ee-28b2c4cd11f8superInstanceId==30fcc8e7-a019-43f4-b642-2edc389f4501instanceRelationshipTypeId==758f13db-ffb4-440e-bb10-8a364aa6cb4a AND superInstanceId=30fcc8e7-a019-43f4-b642-2edc389f4501
2147483647
Skip over a number of elements by specifying an offset value for the query
10
Maximum:
2147483647
Limit the number of elements returned in the response
Example:10
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
Returns a list of instance-relationship items
{
"instanceRelationships": [
{
"id": "4b8093b8-8de9-41be-ad9a-0fbccb99052b",
"superInstanceId": "601a8dc4-dee7-48eb-b03f-d02fdf0debd0",
"subInstanceId": "83a50dc6-b887-43d9-93ee-28b2c4cd11f8",
"instanceRelationshipTypeId": "758f13db-ffb4-440e-bb10-8a364aa6cb4a"
},
{
"id": "b87c7c37-b8a4-432f-9d76-f9d215602776",
"superInstanceId": "60e89ae2-9c93-4819-bbbe-dd8e0ec78177",
"subInstanceId": "6a3aa70f-0204-41a0-ab58-06a42cb5032c",
"instanceRelationshipTypeId": "30773a27-b485-4dab-aeb6-b8c04fa3cb17"
}
],
"totalRecords": 2
}
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
unable to list instance-relationships -- malformed parameter 'query', syntax error at column 6
Not authorized to perform requested action
unable to list instance-relationships -- unauthorized
Access denied, not valid privilege in resources
Unauthorized
Internal server error, e.g. due to misconfiguration
internal server error, contact administrator
Create a new instance-relationship item.
Used to send a valid JWT token.
Example:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"superInstanceId": {
"type": "string"
},
"subInstanceId": {
"type": "string"
},
"instanceRelationshipTypeId": {
"type": "string"
},
"metadata": {
"type": "object",
"$ref": "raml-util/schemas/metadata.schema",
"readonly": true
}
},
"additionalProperties": false,
"required": [
"superInstanceId",
"subInstanceId",
"instanceRelationshipTypeId"
]
}
{
"id": "4b8093b8-8de9-41be-ad9a-0fbccb99052b",
"superInstanceId": "601a8dc4-dee7-48eb-b03f-d02fdf0debd0",
"subInstanceId": "83a50dc6-b887-43d9-93ee-28b2c4cd11f8",
"instanceRelationshipTypeId": "758f13db-ffb4-440e-bb10-8a364aa6cb4a"
}
Returns a newly created item, with server-controlled fields like 'id' populated
URI to the created instance-relationship item
{
"id": "4b8093b8-8de9-41be-ad9a-0fbccb99052b",
"superInstanceId": "601a8dc4-dee7-48eb-b03f-d02fdf0debd0",
"subInstanceId": "83a50dc6-b887-43d9-93ee-28b2c4cd11f8",
"instanceRelationshipTypeId": "758f13db-ffb4-440e-bb10-8a364aa6cb4a"
}
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
"unable to add instance-relationship -- malformed JSON at 13:3"
Not authorized to perform requested action
unable to create instance-relationships -- unauthorized
Access denied, not valid privilege in resources
Unauthorized
Internal server error, e.g. due to misconfiguration
Internal server error, contact administrator
Entity representing a instance-relationship
Get Instance Relationship
Used to send a valid JWT token.
Example:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
Returns item with a given ID
{
"id": "4b8093b8-8de9-41be-ad9a-0fbccb99052b",
"superInstanceId": "601a8dc4-dee7-48eb-b03f-d02fdf0debd0",
"subInstanceId": "83a50dc6-b887-43d9-93ee-28b2c4cd11f8",
"instanceRelationshipTypeId": "758f13db-ffb4-440e-bb10-8a364aa6cb4a"
}
No valid token found
Unauthorized
Access denied, not valid privilege in resources
Unauthorized
Item with a given ID not found
"instance-relationship not found"
Internal server error, e.g. due to misconfiguration
internal server error, contact administrator
Delete instance-relationship item with given {instance-relationshipId}
Used to send a valid JWT token.
Example:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
Item deleted successfully
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
"unable to delete instance-relationship -- constraint violation"
No valid token found
Unauthorized
Access denied, not valid privilege in resources
Unauthorized
Item with a given ID not found
"instance-relationship not found"
Internal server error, e.g. due to misconfiguration
Internal server error, contact administrator
Update instance-relationship item with given {instance-relationshipId}
Used to send a valid JWT token.
Example:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"superInstanceId": {
"type": "string"
},
"subInstanceId": {
"type": "string"
},
"instanceRelationshipTypeId": {
"type": "string"
},
"metadata": {
"type": "object",
"$ref": "raml-util/schemas/metadata.schema",
"readonly": true
}
},
"additionalProperties": false,
"required": [
"superInstanceId",
"subInstanceId",
"instanceRelationshipTypeId"
]
}
{
"id": "4b8093b8-8de9-41be-ad9a-0fbccb99052b",
"superInstanceId": "601a8dc4-dee7-48eb-b03f-d02fdf0debd0",
"subInstanceId": "83a50dc6-b887-43d9-93ee-28b2c4cd11f8",
"instanceRelationshipTypeId": "758f13db-ffb4-440e-bb10-8a364aa6cb4a"
}
Item successfully updated
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
"unable to update instance-relationship -- malformed JSON at 13:4"
No valid token found
Unauthorized
Access denied, not valid privilege in resources
Unauthorized
Item with a given ID not found
"instance-relationship not found"
Internal server error, e.g. due to misconfiguration
internal server error, contact administrator
Collection of instance items.
Retrieve a list of instance items.
Used to send a valid JWT token.
Example:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
A query expressed as a CQL string (see dev.folio.org/doc/glossary#cql) using valid searchable fields. The first example below shows the general form of a full CQL query, but those fields might not be relevant in this context.
by title (using CQL)
Example:(username=="ab*" or personal.firstName=="ab*" or personal.lastName=="ab*") and active=="true" sortby personal.lastName personal.firstName barcode
title="*uproot*"
2147483647
Skip over a number of elements by specifying an offset value for the query
10
Maximum:
2147483647
Limit the number of elements returned in the response
Example:10
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
Returns a list of instance items
{
"instances": [
{
"id": "601a8dc4-dee7-48eb-b03f-d02fdf0debd0",
"title": "ADVANCING LIBRARY EDUCATION: TECHNOLOGICAL INNOVATION AND INSTRUCTIONAL DESIGN",
"source": "Local: MARC",
"contributors": [
{
"name": "Sigal, Ari",
"contributorNameTypeId": "2b94c631-fca9-4892-a730-03ee529ffe2a",
"primary": true
}
],
"identifiers": [
{
"identifierTypeId": "2e48e713-17f3-4c13-a9f8-23845bb210af",
"value": "9781466636897"
},
{
"identifierTypeId": "6051f95c-028e-4c6a-8a9e-ee689dd51453",
"value": "1"
}
],
"instanceTypeId": "2b94c631-fca9-4892-a730-03ee529ffe2c"
},
{
"id": "601a8dc4-dee7-48eb-b03f-d02fdf0debd0",
"title": "ADVANCING RESEARCH METHODS WITH NEW TECHNOLOGIES.",
"source": "Local: MARC",
"contributors": [
{
"name": "Sappleton, Natalie",
"contributorNameTypeId": "2b94c631-fca9-4892-a730-03ee529ffe2a",
"primary": true
}
],
"identifiers": [
{
"identifierTypeId": "2e48e713-17f3-4c13-a9f8-23845bb210af",
"value": "9781466639195"
},
{
"identifierTypeId": "6051f95c-028e-4c6a-8a9e-ee689dd51453",
"value": "2"
}
],
"instanceTypeId": "2b94c631-fca9-4892-a730-03ee529ffe2c"
}
],
"totalRecords": 2
}
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
unable to list instances -- malformed parameter 'query', syntax error at column 6
Not authorized to perform requested action
unable to list instances -- unauthorized
Access denied, not valid privilege in resources
Unauthorized
Internal server error, e.g. due to misconfiguration
internal server error, contact administrator
Create a new instance item.
Used to send a valid JWT token.
Example:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"hrid": {
"type": "string"
},
"source": {
"type": "string"
},
"title": {
"type": "string"
},
"indexTitle": {
"type": "string"
},
"alternativeTitles": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"edition": {
"type": "string"
},
"series": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"identifiers": {
"type": "array",
"minItems": 0,
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
},
"identifierTypeId": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value",
"identifierTypeId"
]
}
},
"contributors": {
"type": "array",
"minItems": 0,
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"contributorTypeId": {
"type": "string"
},
"contributorTypeText": {
"type": "string"
},
"contributorNameTypeId": {
"type": "string"
},
"primary": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": [
"name",
"contributorNameTypeId"
]
}
},
"subjects": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"classifications": {
"type": "array",
"minItems": 0,
"items": {
"type": "object",
"properties": {
"classificationNumber": {
"type": "string"
},
"classificationTypeId": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"classificationNumber",
"classificationTypeId"
]
}
},
"publication": {
"type": "array",
"items": {
"type": "object",
"properties": {
"publisher": {
"type": "string"
},
"place": {
"type": "string"
},
"dateOfPublication": {
"type": "string"
},
"role": {
"type": "string"
}
}
}
},
"publicationFrequency": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"publicationRange": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"urls": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"electronicAccess": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uri": {
"type": "string"
},
"linkText": {
"type": "string"
},
"materialsSpecification": {
"type": "string"
},
"publicNote": {
"type": "string"
},
"relationship": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"uri"
]
}
},
"instanceTypeId": {
"type": "string"
},
"instanceFormatId": {
"type": "string"
},
"physicalDescriptions": {
"type": "array",
"items": {
"type": "string"
}
},
"languages": {
"type": "array",
"minItems": 0,
"items": {
"type": "string"
}
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
},
"modeOfIssuanceId": {
"type": "string"
},
"catalogingLevelId": {
"type": "string"
},
"catalogedDate": {
"type": "string"
},
"previouslyHeld": {
"type": "boolean"
},
"staffSuppress": {
"type": "boolean"
},
"discoverySuppress": {
"type": "boolean"
},
"statisticalCodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"statisticalCodeTypeId": {
"type": "string"
},
"code": {
"type": "string"
}
}
}
},
"sourceRecordFormat": {
"description": "Format of the instance source record, if a source record exists",
"type": "string",
"enum": ["MARC-JSON"],
"readonly": true
},
"statusId": {
"type": "string"
},
"statusUpdatedDate": {
"type": "string"
},
"metadata": {
"type": "object",
"$ref": "raml-util/schemas/metadata.schema",
"readonly": true
}
},
"additionalProperties": false,
"required": [
"source",
"title",
"instanceTypeId"
]
}
{
"id": "601a8dc4-dee7-48eb-b03f-d02fdf0debd0",
"source": "Local: MARC",
"title": "ADVANCING LIBRARY EDUCATION: TECHNOLOGICAL INNOVATION AND INSTRUCTIONAL DESIGN",
"contributors": [
{
"name": "Sigal, Ari",
"contributorNameTypeId": "2b94c631-fca9-4892-a730-03ee529ffe2a",
"primary": true
}
],
"identifiers": [
{
"identifierTypeId": "2e48e713-17f3-4c13-a9f8-23845bb210af",
"value": "9781466636897"
},
{
"identifierTypeId": "6051f95c-028e-4c6a-8a9e-ee689dd51453",
"value": "1"
}
],
"instanceTypeId": "2b94c631-fca9-4892-a730-03ee529ffe2c"
}
Returns a newly created item, with server-controlled fields like 'id' populated
URI to the created instance item
{
"id": "601a8dc4-dee7-48eb-b03f-d02fdf0debd0",
"source": "Local: MARC",
"title": "ADVANCING LIBRARY EDUCATION: TECHNOLOGICAL INNOVATION AND INSTRUCTIONAL DESIGN",
"contributors": [
{
"name": "Sigal, Ari",
"contributorNameTypeId": "2b94c631-fca9-4892-a730-03ee529ffe2a",
"primary": true
}
],
"identifiers": [
{
"identifierTypeId": "2e48e713-17f3-4c13-a9f8-23845bb210af",
"value": "9781466636897"
},
{
"identifierTypeId": "6051f95c-028e-4c6a-8a9e-ee689dd51453",
"value": "1"
}
],
"instanceTypeId": "2b94c631-fca9-4892-a730-03ee529ffe2c"
}
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
"unable to add instance -- malformed JSON at 13:3"
Not authorized to perform requested action
unable to create instances -- unauthorized
Access denied, not valid privilege in resources
Unauthorized
Internal server error, e.g. due to misconfiguration
Internal server error, contact administrator
All instances deleted
Internal server error, e.g. due to misconfiguration
Internal server error, contact administrator
Entity representing a instance
Get Instance by InstanceId Instances are stored and accessed by a hash of key properties. The rules which govern how instance hashes are computed are business rules and defined in the service layer. the storage layer only knows how to insert or retrieve instance records by ID.
Used to send a valid JWT token.
Example:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
Returns item with a given ID
{
"id": "601a8dc4-dee7-48eb-b03f-d02fdf0debd0",
"source": "Local: MARC",
"title": "ADVANCING LIBRARY EDUCATION: TECHNOLOGICAL INNOVATION AND INSTRUCTIONAL DESIGN",
"contributors": [
{
"name": "Sigal, Ari",
"contributorNameTypeId": "2b94c631-fca9-4892-a730-03ee529ffe2a",
"primary": true
}
],
"identifiers": [
{
"identifierTypeId": "2e48e713-17f3-4c13-a9f8-23845bb210af",
"value": "9781466636897"
},
{
"identifierTypeId": "6051f95c-028e-4c6a-8a9e-ee689dd51453",
"value": "1"
}
],
"instanceTypeId": "2b94c631-fca9-4892-a730-03ee529ffe2c"
}
No valid token found
Unauthorized
Access denied, not valid privilege in resources
Unauthorized
Item with a given ID not found
"instance not found"
Internal server error, e.g. due to misconfiguration
internal server error, contact administrator
Delete instance item with given {instanceId}
Used to send a valid JWT token.
Example:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
Item deleted successfully
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
"unable to delete instance -- constraint violation"
No valid token found
Unauthorized
Access denied, not valid privilege in resources
Unauthorized
Item with a given ID not found
"instance not found"
Internal server error, e.g. due to misconfiguration
Internal server error, contact administrator
Update instance item with given {instanceId}
Used to send a valid JWT token.
Example:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"hrid": {
"type": "string"
},
"source": {
"type": "string"
},
"title": {
"type": "string"
},
"indexTitle": {
"type": "string"
},
"alternativeTitles": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"edition": {
"type": "string"
},
"series": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"identifiers": {
"type": "array",
"minItems": 0,
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
},
"identifierTypeId": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value",
"identifierTypeId"
]
}
},
"contributors": {
"type": "array",
"minItems": 0,
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"contributorTypeId": {
"type": "string"
},
"contributorTypeText": {
"type": "string"
},
"contributorNameTypeId": {
"type": "string"
},
"primary": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": [
"name",
"contributorNameTypeId"
]
}
},
"subjects": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"classifications": {
"type": "array",
"minItems": 0,
"items": {
"type": "object",
"properties": {
"classificationNumber": {
"type": "string"
},
"classificationTypeId": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"classificationNumber",
"classificationTypeId"
]
}
},
"publication": {
"type": "array",
"items": {
"type": "object",
"properties": {
"publisher": {
"type": "string"
},
"place": {
"type": "string"
},
"dateOfPublication": {
"type": "string"
},
"role": {
"type": "string"
}
}
}
},
"publicationFrequency": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"publicationRange": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"urls": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"electronicAccess": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uri": {
"type": "string"
},
"linkText": {
"type": "string"
},
"materialsSpecification": {
"type": "string"
},
"publicNote": {
"type": "string"
},
"relationship": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"uri"
]
}
},
"instanceTypeId": {
"type": "string"
},
"instanceFormatId": {
"type": "string"
},
"physicalDescriptions": {
"type": "array",
"items": {
"type": "string"
}
},
"languages": {
"type": "array",
"minItems": 0,
"items": {
"type": "string"
}
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
},
"modeOfIssuanceId": {
"type": "string"
},
"catalogingLevelId": {
"type": "string"
},
"catalogedDate": {
"type": "string"
},
"previouslyHeld": {
"type": "boolean"
},
"staffSuppress": {
"type": "boolean"
},
"discoverySuppress": {
"type": "boolean"
},
"statisticalCodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"statisticalCodeTypeId": {
"type": "string"
},
"code": {
"type": "string"
}
}
}
},
"sourceRecordFormat": {
"description": "Format of the instance source record, if a source record exists",
"type": "string",
"enum": ["MARC-JSON"],
"readonly": true
},
"statusId": {
"type": "string"
},
"statusUpdatedDate": {
"type": "string"
},
"metadata": {
"type": "object",
"$ref": "raml-util/schemas/metadata.schema",
"readonly": true
}
},
"additionalProperties": false,
"required": [
"source",
"title",
"instanceTypeId"
]
}
{
"id": "601a8dc4-dee7-48eb-b03f-d02fdf0debd0",
"source": "Local: MARC",
"title": "ADVANCING LIBRARY EDUCATION: TECHNOLOGICAL INNOVATION AND INSTRUCTIONAL DESIGN",
"contributors": [
{
"name": "Sigal, Ari",
"contributorNameTypeId": "2b94c631-fca9-4892-a730-03ee529ffe2a",
"primary": true
}
],
"identifiers": [
{
"identifierTypeId": "2e48e713-17f3-4c13-a9f8-23845bb210af",
"value": "9781466636897"
},
{
"identifierTypeId": "6051f95c-028e-4c6a-8a9e-ee689dd51453",
"value": "1"
}
],
"instanceTypeId": "2b94c631-fca9-4892-a730-03ee529ffe2c"
}
Item successfully updated
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
"unable to update instance -- malformed JSON at 13:4"
No valid token found
Unauthorized
Access denied, not valid privilege in resources
Unauthorized
Item with a given ID not found
"instance not found"
Internal server error, e.g. due to misconfiguration
internal server error, contact administrator
Delete the source record. Note: The source records gets automatically deleted when its instance record is deleted.
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
Source record deleted
There is no source record for that instanceId
Internal server error, e.g. due to misconfiguration
Internal server error, contact administrator
Entity representing a marc-json
Retrieve marc-json item with given {marc-jsonId}
Used to send a valid JWT token.
Example:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
Returns item with a given ID
{
"leader":"00452nam a2200169 ca4500",
"fields":[
{"001":"029857716"},
{"003":"DE-601"},
{"005":"20180511131518.0"},
{"008":"900626m19799999xxk\\\\\\\\\\\\\\\\\\\\\\000\\0\\eng\\d"},
{"035":{"ind1":"\\",
"ind2":"\\",
"subfields":[{"a":"(DE-599)GBV029857716"}]}},
{"040":{"ind1":"\\",
"ind2":"\\",
"subfields":[{"b":"ger"},
{"c":"GBVCP"}]}},
{"041":{"ind1":"0",
"ind2":"\\",
"subfields":[{"a":"eng"}]}},
{"044":{"ind1":"\\",
"ind2":"\\",
"subfields":[{"a":"xxk"},
{"a":"at"}]}},
{"100":{"ind1":"1",
"ind2":"\\",
"subfields":[{"a":"Adams, Douglas"}]}},
{"245":{"ind1":"1",
"ind2":"4",
"subfields":[{"a":"The Hitch Hiker's guide to the Galaxy"},
{"c":"Douglas Adams"}]}},
{"246":{"ind1":"1",
"ind2":"3",
"subfields":[{"i":"Nebent."},
{"a":"The hitchhiker series"}]}},
{"264":{"ind1":"3",
"ind2":"1",
"subfields":[{"a":"London [u.a.]"},
{"b":"Pan Books"},
{"c":"1979-"}]}}
]
}
No valid token found
Unauthorized
Access denied, not valid privilege in resources
Unauthorized
Item with a given ID not found
"marc-json not found"
Internal server error, e.g. due to misconfiguration
internal server error, contact administrator
Delete marc-json item with given {marc-jsonId}
Used to send a valid JWT token.
Example:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
Item deleted successfully
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
"unable to delete marc-json -- constraint violation"
No valid token found
Unauthorized
Access denied, not valid privilege in resources
Unauthorized
Item with a given ID not found
"marc-json not found"
Internal server error, e.g. due to misconfiguration
Internal server error, contact administrator
Update marc-json item with given {marc-jsonId}
Used to send a valid JWT token.
Example:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "MARC record representation, compatible with MarcEdit's JSON export and import",
"type": "object",
"properties": {
"leader": {
"type": "string",
"minLength": 24,
"maxLength": 24
},
"fields": {
"type": "array",
"minItems": 2
}
},
"additionalProperties": false,
"required": [
"leader",
"fields"
]
}
{
"leader":"00452nam a2200169 ca4500",
"fields":[
{"001":"029857716"},
{"003":"DE-601"},
{"005":"20180511131518.0"},
{"008":"900626m19799999xxk\\\\\\\\\\\\\\\\\\\\\\000\\0\\eng\\d"},
{"035":{"ind1":"\\",
"ind2":"\\",
"subfields":[{"a":"(DE-599)GBV029857716"}]}},
{"040":{"ind1":"\\",
"ind2":"\\",
"subfields":[{"b":"ger"},
{"c":"GBVCP"}]}},
{"041":{"ind1":"0",
"ind2":"\\",
"subfields":[{"a":"eng"}]}},
{"044":{"ind1":"\\",
"ind2":"\\",
"subfields":[{"a":"xxk"},
{"a":"at"}]}},
{"100":{"ind1":"1",
"ind2":"\\",
"subfields":[{"a":"Adams, Douglas"}]}},
{"245":{"ind1":"1",
"ind2":"4",
"subfields":[{"a":"The Hitch Hiker's guide to the Galaxy"},
{"c":"Douglas Adams"}]}},
{"246":{"ind1":"1",
"ind2":"3",
"subfields":[{"i":"Nebent."},
{"a":"The hitchhiker series"}]}},
{"264":{"ind1":"3",
"ind2":"1",
"subfields":[{"a":"London [u.a.]"},
{"b":"Pan Books"},
{"c":"1979-"}]}}
]
}
Item successfully updated
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
"unable to update marc-json -- malformed JSON at 13:4"
No valid token found
Unauthorized
Access denied, not valid privilege in resources
Unauthorized
Item with a given ID not found
"marc-json not found"
Internal server error, e.g. due to misconfiguration
internal server error, contact administrator
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
Not implemented yet
Not implemented yet
en
Pattern:
[a-zA-Z]{2}
Requested language. Optional. [lang=en]
Not implemented yet
Not implemented yet