putProjectsBySlugStarWithHttpInfo method

Future<Response> putProjectsBySlugStarWithHttpInfo(
  1. String slug
)

Bookmarks a project for the person calling, and answers whether it is starred afterwards.

Bookmarks a project for the person calling, and answers whether it is starred afterwards. The star is YOURS: it is keyed by you as well as by the project, so two people see two answers for the same one and starring it says nothing about anybody else's list. Starring a project you have already starred leaves it starred.

Note: This method returns the HTTP Response.

Parameters:

  • String slug (required): Slug is the project to act on, from the path. It is unique within the caller's org and nowhere else, so another tenant's slug is a 404.

Implementation

Future<Response> putProjectsBySlugStarWithHttpInfo(String slug,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/projects/{slug}/star'
    .replaceAll('{slug}', slug);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];


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