foliolib.folio.api.inventoryStorage.AuthorityNoteType

class foliolib.folio.api.inventoryStorage.AuthorityNoteType(tenant: str, okapi: Optional[foliolib.okapi.okapiClient.OkapiClient] = None)

Bases: foliolib.folio.FolioApi

Authority note types API

This documents the API calls that can be made to query and manage Authority note types of the system

Parameters
  • tenant (str) – Tenant id

  • okapi (OkapiClient, optional) – Instance of OkapiClient. Defaults to None.

Methods

delete_authorityNoteType(authorityNoteTypesId)

Delete authorityNoteType item with given {authorityNoteTypeId}

get_authorityNoteType(authorityNoteTypesId)

Retrieve authorityNoteType item with given {authorityNoteTypeId}

get_authorityNoteTypes(**kwargs)

Return a list of authority note types

modify_authorityNoteType(...)

Update authorityNoteType item with given {authorityNoteTypeId}

set_authorityNoteType(authorityNoteType)

Create a new authority note type

delete_authorityNoteType(authorityNoteTypesId: str)

Delete authorityNoteType item with given {authorityNoteTypeId}

DELETE /authority-note-types/{authorityNoteTypesId}

Parameters

authorityNoteTypesId (str) –

Raises
  • OkapiRequestNotFound – Not Found

  • OkapiRequestError – Bad Request

  • OkapiFatalError – Server Error

get_authorityNoteType(authorityNoteTypesId: str)

Retrieve authorityNoteType item with given {authorityNoteTypeId}

GET /authority-note-types/{authorityNoteTypesId}

Parameters

authorityNoteTypesId (str) –

Returns

See Schema below

Return type

dict

Raises
  • OkapiRequestNotFound – Not Found

  • OkapiFatalError – Server Error

Schema

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "An Authority note type",
  "type": "object",
  "properties": {
    "id": {
      "description": "unique ID of the Authority note type; a UUID",
      "$ref": "uuid.json"
    },
    "name": {
      "type": "string",
      "description": "name of the Authority note type"
    },
    "source": {
      "type": "string",
      "description": "label indicating where the Authority note type entry originates from, i.e. 'folio' or 'local'"
    },
    "metadata": {
      "type": "object",
      "$ref": "raml-util/schemas/metadata.schema",
      "readonly": true
    }
  },
  "additionalProperties": false,
  "required": [
    "name",
    "source"
  ]
}
get_authorityNoteTypes(**kwargs)

Return a list of authority note types

GET /authority-note-types

Parameters

**kwargs (properties) – Keyword Arguments

Keyword Arguments
  • query (str) –

    A query expressed as a CQL string (see [dev.folio.org/reference/glossary#cql](https://dev.folio.org/reference/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.

    with valid searchable fields

    Example

    • (username==”ab*” or personal.firstName==”ab*” or personal.lastName==”ab*”) and active==”true” sortby personal.lastName personal.firstName barcode

    • name=aaa

  • offset (int) –

    (default=0) Skip over a number of elements by specifying an offset value for the query

    Example

    • 0

  • limit (int) –

    (default=10) Limit the number of elements returned in the response

    Example

    • 10

Returns

See Schema below

Return type

dict

Raises
  • OkapiRequestError – Bad Request

  • OkapiRequestUnauthorized – Authentication is required

  • OkapiFatalError – Server Error

Schema

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "A collection of Authority note types",
  "type": "object",
  "properties": {
    "authorityNoteTypes": {
      "description": "List of Authority note types",
      "id": "authorityNoteType",
      "type": "array",
      "items": {
        "type": "object",
        "$ref": "authoritynotetype.json"
      }
    },
    "totalRecords": {
      "description": "Estimated or exact total number of records",
      "type": "integer"
    }
  },
  "required": [
    "authorityNoteTypes",
    "totalRecords"
  ]
}
modify_authorityNoteType(authorityNoteTypesId: str, authorityNoteType: dict)

Update authorityNoteType item with given {authorityNoteTypeId}

PUT /authority-note-types/{authorityNoteTypesId}

Parameters
  • authorityNoteTypesId (str) –

  • authorityNoteType (dict) – See Schema below

Raises
  • OkapiRequestNotFound – Not Found

  • OkapiRequestError – Bad Request

  • OkapiRequestConflict – Conflict

  • OkapiFatalError – Server Error

Schema

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "An Authority note type",
  "type": "object",
  "properties": {
    "id": {
      "description": "unique ID of the Authority note type; a UUID",
      "$ref": "uuid.json"
    },
    "name": {
      "type": "string",
      "description": "name of the Authority note type"
    },
    "source": {
      "type": "string",
      "description": "label indicating where the Authority note type entry originates from, i.e. 'folio' or 'local'"
    },
    "metadata": {
      "type": "object",
      "$ref": "raml-util/schemas/metadata.schema",
      "readonly": true
    }
  },
  "additionalProperties": false,
  "required": [
    "name",
    "source"
  ]
}
set_authorityNoteType(authorityNoteType: dict)

Create a new authority note type

POST /authority-note-types

Parameters

authorityNoteType (dict) – See Schema below

Raises
  • OkapiRequestError – Bad Request

  • OkapiRequestUnauthorized – Authentication is required

  • OkapiFatalError – Server Error

  • OkapiRequestUnprocessableEntity – Unprocessable Entity

Headers

  • Location - URI to the created authorityNoteType item

Schema

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "An Authority note type",
  "type": "object",
  "properties": {
    "id": {
      "description": "unique ID of the Authority note type; a UUID",
      "$ref": "uuid.json"
    },
    "name": {
      "type": "string",
      "description": "name of the Authority note type"
    },
    "source": {
      "type": "string",
      "description": "label indicating where the Authority note type entry originates from, i.e. 'folio' or 'local'"
    },
    "metadata": {
      "type": "object",
      "$ref": "raml-util/schemas/metadata.schema",
      "readonly": true
    }
  },
  "additionalProperties": false,
  "required": [
    "name",
    "source"
  ]
}