patchToolsCatalogByIdWithHttpInfo method

Future<Response> patchToolsCatalogByIdWithHttpInfo(
  1. String id,
  2. CurateReq curateReq
)

Sets what WE say about one catalog entry — hidden, featured, official, logo — and answers with the stored listing.

Sets what WE say about one catalog entry — hidden, featured, official, logo — and answers with the stored listing. SuperAdmin only; every other caller is refused. Curation is the half of a catalog row a sync cannot write, and this is the only thing that writes it. The upstream half is never editable here: a description that disagreed with the publisher's would be a fork of their listing, and the next sync would silently undo it.

Note: This method returns the HTTP Response.

Parameters:

  • String id (required): ID is the listing to curate, from the path.

  • CurateReq curateReq (required):

Implementation

Future<Response> patchToolsCatalogByIdWithHttpInfo(String id, CurateReq curateReq,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/tools/catalog/{id}'
    .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody = curateReq;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'PATCH',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}