openapi: 3.2.0 info: title: Folio Job Profiles API version: v1 description: 'Operations tagged Job Profiles across 2 of this provider''s published API definitions: folio-mod-data-export-openapi.json, folio-mod-data-export-openapi.yml. Each path carries the servers of the definition it was published in.' servers: - url: /data-export/ tags: - name: Job Profiles paths: /job-profiles: get: description: API for getting job profiles operationId: getJobProfiles parameters: - $ref: '#/components/parameters/trait_used_in_completed_jobs' - $ref: '#/components/parameters/trait_queryable' - $ref: '#/components/parameters/trait_pageable_offset' - $ref: '#/components/parameters/trait_pageable_limit' responses: '200': description: Job profiles collection content: application/json: schema: $ref: '#/components/schemas/jobProfileCollection' example: jobProfiles: - id: 448ae575-daec-49c1-8041-d64c8ed8e5b1 name: Job profile name destination: fileSystem description: Job profile description userInfo: firstName: DIKU lastName: ADMINISTRATOR userName: diku_admin mappingProfileId: 3798f546-7afb-11ea-bc55-0242ac130003 metadata: createdDate: '2020-04-10T12:41:22.000' createdByUserId: '' createdByUsername: '@username' updatedDate: '2020-04-10T12:41:22.000' updatedByUserId: '' updatedByUsername: '@username' totalRecords: 1 '400': description: Bad request content: text/plain: example: malformed parameter 'query', syntax error at column 6 '401': description: Not authorized to perform requested action content: text/plain: example: unauthorized '500': description: Internal server errors, e.g. due to misconfiguration content: text/plain: example: Internal server error tags: - Job Profiles summary: Get job profiles x-summary-source: derived post: description: API for uploading job profiles operationId: postJobProfile requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/jobProfile' example: id: 448ae575-daec-49c1-8041-d64c8ed8e5b1 name: job profile name destination: fileSystem description: Job profile description userInfo: firstName: DIKU lastName: ADMINISTRATOR userName: diku_admin mappingProfileId: 3798f546-7afb-11ea-bc55-0242ac130003 metadata: createdDate: '2019-07-22T11:22:07Z' createdByUserId: dee12548-9cee-45fa-bbae-675c1cc0ce3b createdByUsername: janedoeuser updatedDate: '2019-07-27T13:28:54Z' updatedByUserId: dee12548-9cee-45fa-bbae-675c1cc0ce3b updatedByUsername: '' responses: '201': description: Uploaded content: application/json: schema: $ref: '#/components/schemas/jobProfile' example: id: 448ae575-daec-49c1-8041-d64c8ed8e5b1 name: job profile name destination: fileSystem description: Job profile description userInfo: firstName: DIKU lastName: ADMINISTRATOR userName: diku_admin mappingProfileId: 3798f546-7afb-11ea-bc55-0242ac130003 metadata: createdDate: '2019-07-22T11:22:07Z' createdByUserId: dee12548-9cee-45fa-bbae-675c1cc0ce3b createdByUsername: janedoeuser updatedDate: '2019-07-27T13:28:54Z' updatedByUserId: dee12548-9cee-45fa-bbae-675c1cc0ce3b updatedByUsername: '' '422': description: Unprocessable Entity content: application/json: schema: $ref: '#/components/schemas/errors' '500': description: Internal server errors, e.g. due to misconfiguration content: text/plain: example: Internal server error tags: - Job Profiles summary: Post job profile x-summary-source: derived servers: - url: /data-export/ /job-profiles/{jobProfileId}: get: description: Get specific job profile operationId: getJobProfileById parameters: - name: jobProfileId in: path required: true schema: $ref: '#/components/schemas/uuid' responses: '200': description: Job profile content: application/json: schema: $ref: '#/components/schemas/jobProfile' example: id: 448ae575-daec-49c1-8041-d64c8ed8e5b1 name: job profile name destination: fileSystem description: Job profile description userInfo: firstName: DIKU lastName: ADMINISTRATOR userName: diku_admin mappingProfileId: 3798f546-7afb-11ea-bc55-0242ac130003 metadata: createdDate: '2019-07-22T11:22:07Z' createdByUserId: dee12548-9cee-45fa-bbae-675c1cc0ce3b createdByUsername: janedoeuser updatedDate: '2019-07-27T13:28:54Z' updatedByUserId: dee12548-9cee-45fa-bbae-675c1cc0ce3b updatedByUsername: '' '400': description: Bad request content: text/plain: example: malformed parameter 'query', syntax error at column 6 '404': description: Not Found content: text/plain: example: Mapping profile not found '500': description: Internal server errors, e.g. due to misconfiguration content: text/plain: example: Internal server error tags: - Job Profiles summary: Get job profile by id x-summary-source: derived put: description: Update specific job profile operationId: putJobProfile requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/jobProfile' example: id: 448ae575-daec-49c1-8041-d64c8ed8e5b1 name: job profile name destination: fileSystem description: Job profile description userInfo: firstName: DIKU lastName: ADMINISTRATOR userName: diku_admin mappingProfileId: 3798f546-7afb-11ea-bc55-0242ac130003 metadata: createdDate: '2019-07-22T11:22:07Z' createdByUserId: dee12548-9cee-45fa-bbae-675c1cc0ce3b createdByUsername: janedoeuser updatedDate: '2019-07-27T13:28:54Z' updatedByUserId: dee12548-9cee-45fa-bbae-675c1cc0ce3b updatedByUsername: '' parameters: - name: jobProfileId in: path required: true schema: $ref: '#/components/schemas/uuid' responses: '204': description: Updated '400': description: Bad request content: text/plain: example: malformed parameter 'query', syntax error at column 6 '404': description: Not Found content: text/plain: example: Mapping profile not found '500': description: Internal server errors, e.g. due to misconfiguration content: text/plain: example: Internal server error tags: - Job Profiles summary: Put job profile x-summary-source: derived delete: description: Delete specific job profile operationId: deleteJobProfileById parameters: - name: jobProfileId in: path required: true schema: $ref: '#/components/schemas/uuid' responses: '204': description: Deleted '400': description: Bad request content: text/plain: example: malformed parameter 'query', syntax error at column 6 '404': description: Not Found content: text/plain: example: Mapping profile not found '500': description: Internal server errors, e.g. due to misconfiguration content: text/plain: example: Internal server error tags: - Job Profiles summary: Delete job profile by id x-summary-source: derived servers: - url: /data-export/ components: schemas: userInfo: $schema: http://json-schema.org/draft-04/schema# description: User information type: object additionalProperties: false properties: firstName: description: User first name type: string lastName: description: User last name type: string userName: description: User name (nickname) type: string jobProfileCollection: $schema: http://json-schema.org/draft-04/schema# description: Collection of Job Profiles type: object additionalProperties: false properties: jobProfiles: description: List of Job Profiles type: array id: jobProfileList items: type: object $ref: '#/components/schemas/jobProfile' totalRecords: description: Total number of Job Profiles type: integer required: - jobProfiles - totalRecords protocol: $schema: http://json-schema.org/draft-04/schema# description: TCP/IP type: object properties: name: description: TCP/IP name type: string host: description: The host type: string port: description: The port type: string authentication: description: The authentication type: string description: description: The description type: string jobProfile: $schema: http://json-schema.org/draft-04/schema# description: Job profile type: object additionalProperties: false properties: id: description: Unique identifier type: string format: uuid name: description: Job Profile name type: string default: description: Is default job profile type: boolean default: false readonly: true destination: description: Final destination place where to send file type: string description: description: Job Profile description type: string userInfo: description: First name, last name and username of the user, who updated the Job Profile type: object $ref: '#/components/schemas/userInfo' mappingProfileId: description: Associated mapping profile id type: string format: uuid protocol: description: TCP/IP settings type: object $ref: '#/components/schemas/protocol' locked: description: True if locked, false if unlocked type: boolean default: false lockedBy: description: UUID of the user who locked the job profile type: string format: uuid lockedAt: description: Date and time when job profile was locked type: string format: date-time metadata: description: Metadata provided by the server type: object $ref: '#/components/schemas/metadata' readonly: true required: - name - mappingProfileId errors: $schema: http://json-schema.org/draft-04/schema# type: object description: Error collection properties: errors: description: list of errors id: errors type: array items: type: object $ref: '#/components/schemas/error' total_records: description: Total records type: integer uuid: type: string format: uuid error: $schema: http://json-schema.org/draft-04/schema# type: object description: Error properties: message: description: Error message type: string type: description: Error type type: string code: description: Error code type: string parameters: description: Error parameters type: object $ref: '#/components/schemas/parameters' required: - message parameters: $schema: http://json-schema.org/draft-04/schema# type: array description: Error parameters items: type: object properties: key: type: string value: type: string metadata: $schema: http://json-schema.org/draft-04/schema# 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 parameters: trait_used_in_completed_jobs: name: used in: query required: false description: true if need already used profiles schema: default: false type: boolean trait_pageable_limit: name: limit in: query description: Limit the number of elements returned in the response schema: default: 10 minimum: 0 maximum: 2147483647 type: integer trait_pageable_offset: name: offset in: query description: Skip over a number of elements by specifying an offset value for the query schema: default: 0 minimum: 0 maximum: 2147483647 type: integer trait_queryable: name: query in: query description: A query string to filter rules based on matching criteria in fields. schema: type: string x-refined-from: - folio-mod-data-export-openapi.json - folio-mod-data-export-openapi.yml