diff --git a/Koha/REST/V1/SIP2/Accounts.pm b/Koha/REST/V1/SIP2/Accounts.pm index 6cbcb8bfd4..a41ece70fa 100644 --- a/Koha/REST/V1/SIP2/Accounts.pm +++ b/Koha/REST/V1/SIP2/Accounts.pm @@ -165,7 +165,6 @@ sub update { $account->sort_bin_mappings($sort_bin_mappings); $account->system_preference_overrides($system_preference_overrides); - $c->res->headers->location( $c->req->url->to_string . '/' . $account->sip_account_id ); return $c->render( status => 200, openapi => $c->objects->to_api($account), diff --git a/Koha/REST/V1/SIP2/Institutions.pm b/Koha/REST/V1/SIP2/Institutions.pm index 7adb2d43a8..fa34215c3e 100644 --- a/Koha/REST/V1/SIP2/Institutions.pm +++ b/Koha/REST/V1/SIP2/Institutions.pm @@ -135,7 +135,6 @@ sub update { $institution->set_from_api($body)->store; - $c->res->headers->location( $c->req->url->to_string . '/' . $institution->sip_institution_id ); return $c->render( status => 200, openapi => $c->objects->to_api($institution), diff --git a/api/v1/swagger/swagger.yaml b/api/v1/swagger/swagger.yaml index e5232b5f36..dcb0a3cc66 100644 --- a/api/v1/swagger/swagger.yaml +++ b/api/v1/swagger/swagger.yaml @@ -1387,6 +1387,15 @@ tags: - description: "Manage search filters" name: search_filters x-displayName: Search filters + - description: "Manage SIP2 accounts" + name: sip2_accounts + x-displayName: SIP2 Accounts + - description: "Manage SIP2 institutions" + name: sip2_institutions + x-displayName: SIP2 Institutions + - description: "Manage SIP2 system preference overrides" + name: sip2_system_preference_overrides + x-displayName: SIP2 System preference overrides - description: "Manage SMTP servers configurations\n" name: smtp_servers x-displayName: SMTP servers