unpinPostWithHttpInfo method
Unpin a post to the channel
Unpin a post to a channel it is in based from the provided post id string. ##### Permissions Must be authenticated and have the read_channel
permission to the channel the post is in.
Note: This method returns the HTTP Response
.
Parameters:
- String postId (required): Post GUID
Implementation
Future<Response> unpinPostWithHttpInfo(
String postId,
) async {
// ignore: prefer_const_declarations
final path = r'/posts/{post_id}/unpin'.replaceAll('{post_id}', postId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}