openapi: 3.2.0 info: title: Folio Parties API version: 3.2.0 contact: name: Knowledge Integration url: https://www.k-int.com description: 'Operations tagged Parties across 2 of this provider''s published API definitions: folio-mod-oa-openapi.json, folio-mod-oa-openapi.yml. Each path carries the servers of the definition it was published in.' servers: - url: https://folio-snapshot-okapi.dev.folio.org - url: https://folio-snapshot-2-okapi.dev.folio.org - url: https://folio-etesting-snapshot-kong.ci.folio.org security: - accessToken: [] - okapiToken: [] tags: - name: Parties paths: /oa/party: description: Supports search and creation of parties. parameters: - $ref: '#/components/parameters/x-okapi-tenant' get: tags: - Parties summary: Get a set of party records operationId: getParties parameters: - $ref: '#/components/parameters/filters' - $ref: '#/components/parameters/match' - $ref: '#/components/parameters/term' - $ref: '#/components/parameters/sort' - $ref: '#/components/parameters/stats' - $ref: '#/components/parameters/perPage' - $ref: '#/components/parameters/offset' - $ref: '#/components/parameters/page' responses: '200': description: OK content: application/json: schema: oneOf: - $ref: '#/components/schemas/PartyResults' - $ref: '#/components/schemas/PartyResultsArray' '400': description: Bad request error '401': description: Unauthorized '403': description: Forbidden '500': description: Internal server error post: tags: - Parties summary: Create party record operationId: postParty requestBody: content: application/json: schema: $ref: '#/components/schemas/Party' required: true responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/Party' '400': description: Bad request error '401': description: Unauthorized '403': description: Forbidden '422': description: Validation error content: application/json: schema: $ref: '#/components/schemas/ValidationErrorResponse' '500': description: Internal server error servers: - url: https://folio-snapshot-okapi.dev.folio.org - url: https://folio-snapshot-2-okapi.dev.folio.org - url: https://folio-etesting-snapshot-kong.ci.folio.org /oa/party/{id}: parameters: - $ref: '#/components/parameters/x-okapi-tenant' - $ref: '#/components/parameters/partyId' get: tags: - Parties summary: Get a specified party record operationId: getParty responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Party' '400': description: Bad request error '401': description: Unauthorized '403': description: Forbidden '404': description: Not found error content: application/json: schema: $ref: '#/components/schemas/SpringBootErrorResponse' '500': description: Internal server error put: tags: - Parties summary: Update party record operationId: putParty requestBody: content: application/json: schema: $ref: '#/components/schemas/Party' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Party' '400': description: Bad request error '401': description: Unauthorized '404': description: Not found error content: application/json: schema: $ref: '#/components/schemas/SpringBootErrorResponse' '422': description: Validation error content: application/json: schema: $ref: '#/components/schemas/ValidationErrorResponse' '500': description: Internal server error delete: tags: - Parties summary: Delete a specified party record operationId: deleteParty responses: '204': description: No content '400': description: Bad request error '401': description: Unauthorized '403': description: Forbidden '404': description: Not found error content: application/json: schema: $ref: '#/components/schemas/SpringBootErrorResponse' '500': description: Internal server error servers: - url: https://folio-snapshot-okapi.dev.folio.org - url: https://folio-snapshot-2-okapi.dev.folio.org - url: https://folio-etesting-snapshot-kong.ci.folio.org components: schemas: PartyResults: type: object required: - results allOf: - $ref: '#/components/schemas/ResultsMeta' - type: object - properties: results: $ref: '#/components/schemas/PartyResultsArray' ValidationErrorResponse: description: 'Validation error body returned when a create/update request fails domain-object validation. Shape depends on the number of errors: a single ValidationError when there is exactly one, otherwise a wrapper with a count and an embedded array.' oneOf: - $ref: '#/components/schemas/ValidationError' - type: object required: - total - _embedded properties: total: type: integer _embedded: type: object properties: errors: type: array items: $ref: '#/components/schemas/ValidationError' Address: type: object required: - id properties: id: type: string format: uuid readOnly: true name: type: string addressLineOne: type: string addressLineTwo: type: string city: type: string region: type: string postalCode: type: string country: type: string SpringBootErrorResponse: type: object description: Spring Boot's default error body. Emitted by the servlet container itself when a request ends in an error status with no response body written by the application, rather than by this app's own error handling - so it does not match the `HttpError` shape used elsewhere in this API. properties: timestamp: type: integer description: Epoch milliseconds status: type: integer error: type: string path: type: string Refdata: type: object required: - id properties: id: type: string readOnly: true label: type: string value: type: string ResultsMeta: type: object properties: meta: type: object page: type: integer pageSize: type: integer total: type: integer totalPages: type: integer totalRecords: type: integer PartyAddress: type: object required: - id - address properties: id: type: string format: uuid readOnly: true owner: type: object properties: id: type: string format: uuid readOnly: true description: The party that this address belongs to address: $ref: '#/components/schemas/Address' AlternateEmailAddress: type: object required: - id - email properties: id: type: string format: uuid readOnly: true owner: type: object properties: id: type: string format: uuid readOnly: true description: The party that this alternate email address belongs to email: type: string format: email Party: type: object required: - id properties: id: type: string format: uuid readOnly: true title: type: string familyName: type: string givenNames: type: string fullName: type: string readOnly: true description: Derived automatically from givenNames and familyName orcidId: type: string mainEmail: type: string format: email phone: type: string mobile: type: string streetAddress: $ref: '#/components/schemas/PartyAddress' institutionLevel1: oneOf: - type: string - $ref: '#/components/schemas/Refdata' institutionLevel2: type: string alternateEmails: type: array items: $ref: '#/components/schemas/AlternateEmailAddress' ValidationError: type: object required: - message - path - _links properties: message: type: string path: type: string _links: type: object required: - self properties: self: type: object required: - href properties: href: type: string format: uri PartyResultsArray: type: array items: $ref: '#/components/schemas/Party' parameters: filters: in: query name: filters required: false schema: type: string page: in: query name: page required: false schema: type: integer sort: in: query name: sort required: false schema: type: string perPage: in: query name: perPage required: false schema: type: integer x-okapi-tenant: in: header name: x-okapi-tenant required: true schema: type: string offset: in: query name: offset required: false schema: type: integer term: in: query name: term required: false schema: type: string partyId: in: path name: id description: UUID for a party required: true schema: type: string format: uuid stats: in: query name: stats required: false schema: type: boolean match: in: query name: match required: false schema: type: string securitySchemes: okapiToken: type: apiKey in: header name: x-okapi-token accessToken: type: apiKey in: cookie name: folioAccessToken x-refined-from: - folio-mod-oa-openapi.json - folio-mod-oa-openapi.yml