4 x-mojo-to: Authorities#add
5 operationId: addAuthority
10 Add an authority record to Koha. An optional `x-authority-type`
11 may be passed to specify the cataloguing framework to be used (instead
14 The request body is expected to contain a MARC record in the format specified in
15 the `Content-type` header you pass. Possible values for this header and the corresponding
16 record formats expected are listed below:
18 * application/marcxml+xml: MARCXML
19 * application/marc-in-json: MARC-in-JSON
20 * application/marc: Raw USMARC binary data
22 - $ref: "../swagger.yaml#/parameters/authority_type_header"
23 - name: x-koha-override
26 description: Overrides list sent as a request header
36 description: An authority
38 description: Bad request.
40 $ref: "../swagger.yaml#/definitions/error"
42 description: Authentication required
44 $ref: "../swagger.yaml#/definitions/error"
46 description: Access forbidden
48 $ref: "../swagger.yaml#/definitions/error"
50 description: Not acceptable
53 description: Accepted content-types
58 Conflict creating the resource. Possible `error_code` attribute values:
62 $ref: "../swagger.yaml#/definitions/error"
65 Internal server error. Possible `error_code` attribute values:
67 * `internal_server_error`
69 $ref: "../swagger.yaml#/definitions/error"
71 description: Under maintenance
73 $ref: "../swagger.yaml#/definitions/error"
76 editcatalogue: edit_catalogue
77 "/authorities/{authority_id}":
79 x-mojo-to: Authorities#get
80 operationId: getAuthority
83 summary: Get authority
85 - $ref: "../swagger.yaml#/parameters/authority_id_pp"
88 - application/marcxml+xml
89 - application/marc-in-json
94 description: An authority
96 description: Authentication required
98 $ref: "../swagger.yaml#/definitions/error"
100 description: Access forbidden
102 $ref: "../swagger.yaml#/definitions/error"
104 description: Authority not found
106 $ref: "../swagger.yaml#/definitions/error"
108 description: Not acceptable
111 description: Accepted content-types
116 Internal server error. Possible `error_code` attribute values:
118 * `internal_server_error`
120 $ref: "../swagger.yaml#/definitions/error"
122 description: Under maintenance
124 $ref: "../swagger.yaml#/definitions/error"
125 x-koha-authorization:
129 x-mojo-to: Authorities#delete
130 operationId: deleteAuthority
133 summary: Delete authority
135 - $ref: "../swagger.yaml#/parameters/authority_id_pp"
140 description: Authority deleted
144 description: Authentication required
146 $ref: "../swagger.yaml#/definitions/error"
148 description: Access forbidden
150 $ref: "../swagger.yaml#/definitions/error"
152 description: Authority not found
154 $ref: "../swagger.yaml#/definitions/error"
156 description: Internal error
158 $ref: "../swagger.yaml#/definitions/error"
160 description: Under maintenance
162 $ref: "../swagger.yaml#/definitions/error"
163 x-koha-authorization: