openapi: 3.2.0 info: title: Folio User Custom Field Mappings API version: v1 description: 'Operations tagged user-custom-field-mappings 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: user-custom-field-mappings paths: /central-servers/{centralServerId}/user-custom-field-mappings: get: tags: - user-custom-field-mappings responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/userCustomFieldMappingDTO' '500': $ref: '#/components/responses/trait_response_500' description: Get a User Custom Field Mapping operationId: getUserCustomFieldMapping parameters: - $ref: '#/components/parameters/centralServerId' summary: Get user custom field mapping x-summary-source: derived put: description: Update User Custom Field Mapping operationId: updateUserCustomFieldMapping tags: - user-custom-field-mappings responses: '204': description: No content '400': $ref: '#/components/responses/trait_response_validation_400' '404': $ref: '#/components/responses/trait_response_404' '500': $ref: '#/components/responses/trait_response_500' requestBody: content: application/json: schema: $ref: '#/components/schemas/userCustomFieldMappingDTO' required: true parameters: - $ref: '#/components/parameters/centralServerId' summary: Update user custom field mapping x-summary-source: derived post: description: Add new User Custom Field Mapping associated with the central server operationId: createUserCustomFieldMapping tags: - user-custom-field-mappings responses: '201': description: User Custom Field Mapping created content: application/json: schema: $ref: '#/components/schemas/userCustomFieldMappingDTO' '400': $ref: '#/components/responses/trait_response_validation_400' '500': $ref: '#/components/responses/trait_response_500' requestBody: content: application/json: schema: $ref: '#/components/schemas/userCustomFieldMappingDTO' required: true parameters: - $ref: '#/components/parameters/centralServerId' summary: Create user custom field mapping 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' userCustomFieldMappingDTO: $schema: http://json-schema.org/draft-04/schema# description: User custom field mapping type: object properties: id: description: Mapping id type: string format: uuid customFieldId: description: Custom field refId type: string configuredOptions: type: object description: Map of the option ids for the custom field and local agency codes additionalProperties: type: string properties: agencyCode: description: Agency code type: string maxLength: 5 customFieldValue: description: Custom field option id type: string metadata: description: Entity metadata type: object $ref: '#/components/schemas/metadata' additionalProperties: false required: - customFieldId - configuredOptions 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' 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