pinPostWithHttpInfo method
Pin a post to the channel
Pin 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> pinPostWithHttpInfo(
String postId,
) async {
// ignore: prefer_const_declarations
final path = r'/posts/{post_id}/pin'.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,
);
}