openapi: 3.2.0 info: title: Folio Contribution Criteria API version: v1 description: 'Operations tagged contribution-criteria across 2 of this provider''s published API definitions: folio-mod-inn-reach-settings-openapi.json, folio-mod-inn-reach-settings-openapi.yml. Each path carries the servers of the definition it was published in.' servers: - url: /inn-reach/ tags: - name: contribution-criteria paths: /central-servers/{centralServerId}/contribution-criteria: get: description: Get Contribution Criteria by Central Server id operationId: getCriteriaByServerId tags: - contribution-criteria responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/contributionCriteriaDTO' '404': $ref: '#/components/responses/trait_response_404' '500': $ref: '#/components/responses/trait_response_500' parameters: - $ref: '#/components/parameters/centralServerId' summary: Get criteria by server id x-summary-source: derived post: description: Create new contribution criteria for Central Server operationId: postContributionCriteria tags: - contribution-criteria responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/contributionCriteriaDTO' '400': $ref: '#/components/responses/trait_response_validation_400' '409': $ref: '#/components/responses/trait_response_409' '500': $ref: '#/components/responses/trait_response_500' requestBody: content: application/json: schema: $ref: '#/components/schemas/contributionCriteriaDTO' required: true parameters: - $ref: '#/components/parameters/centralServerId' summary: Post contribution criteria x-summary-source: derived delete: description: Delete Contribution Criteria Configuration operationId: deleteCriteria tags: - contribution-criteria responses: '204': description: No content '404': $ref: '#/components/responses/trait_response_404' '500': $ref: '#/components/responses/trait_response_500' parameters: - $ref: '#/components/parameters/centralServerId' summary: Delete criteria x-summary-source: derived put: description: Update Contribution Criteria Configuration operationId: updateCriteria tags: - contribution-criteria responses: '204': description: No content '400': $ref: '#/components/responses/trait_response_validation_400' '404': $ref: '#/components/responses/trait_response_404' '409': $ref: '#/components/responses/trait_response_409' '500': $ref: '#/components/responses/trait_response_500' requestBody: content: application/json: schema: $ref: '#/components/schemas/contributionCriteriaDTO' parameters: - $ref: '#/components/parameters/centralServerId' summary: Update criteria x-summary-source: derived servers: - url: /inn-reach/ components: schemas: validationErrorDTO: description: Validation error type: object properties: fieldName: type: string description: Field name message: type: string description: Validation error message text additionalProperties: false required: - fieldName - message Error: type: object properties: message: type: string description: Error message text type: type: string description: Error message type code: type: string description: Error message code additionalProperties: false required: - message validationErrorsDTO: type: object properties: code: type: integer message: type: string validationErrors: type: array items: $ref: '#/components/schemas/validationErrorDTO' contributionCriteriaDTO: $schema: http://json-schema.org/draft-04/schema# description: Contribution Criteria Configuration type: object properties: id: description: Contribution criteria id type: string format: UUID locationIds: description: Locations excluded from contribution process type: array items: type: string format: UUID contributeButSuppressId: description: Contribute but suppress statistical code id type: string format: UUID doNotContributeId: description: Do not contribute statistical code id type: string format: UUID contributeAsSystemOwnedId: description: Contribute as system owner statistical code id type: string format: UUID metadata: description: Entity metadata type: object $ref: '#/components/schemas/metadata' additionalProperties: false metadata: title: Metadata Schema description: Metadata about creation and changes to records, provided by the server (client should not provide) type: object properties: createdDate: description: Date and time when the record was created type: string format: date-time createdByUserId: description: ID of the user who created the record (when available) type: string pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$ createdByUsername: description: Username of the user who created the record (when available) type: string updatedDate: description: Date and time when the record was last updated type: string format: date-time updatedByUserId: description: ID of the user who last updated the record (when available) type: string pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$ updatedByUsername: description: Username of the user who last updated the record (when available) type: string additionalProperties: false required: - createdDate responses: trait_response_404: description: Item not found content: application/json: schema: $ref: '#/components/schemas/Error' trait_response_validation_400: description: Bad request content: application/json: schema: $ref: '#/components/schemas/validationErrorsDTO' trait_response_500: description: Internal server error content: application/json: schema: $ref: '#/components/schemas/Error' trait_response_409: description: Item state conflict content: application/json: schema: $ref: '#/components/schemas/Error' parameters: centralServerId: name: centralServerId in: path required: true schema: type: string format: uuid x-refined-from: - folio-mod-inn-reach-settings-openapi.json - folio-mod-inn-reach-settings-openapi.yml