createPostsUnpublishWithHttpInfo method
Future<Response>
createPostsUnpublishWithHttpInfo(
- String companyId,
- String postId,
- PostsInput postsInput
Unpublish a post (make it private/draft again).
Note: This method returns the HTTP Response.
Parameters:
-
String companyId (required): Unique identifier for the Company
-
String postId (required): Unique identifier for the Post
-
PostsInput postsInput (required):
Implementation
Future<Response> createPostsUnpublishWithHttpInfo(String companyId, String postId, PostsInput postsInput,) async {
// ignore: prefer_const_declarations
final path = r'/companies/{company_id}/posts/{post_id}/unpublish'
.replaceAll('{company_id}', companyId)
.replaceAll('{post_id}', postId);
// ignore: prefer_final_locals
Object? postBody = postsInput;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}