updatePostsWithHttpInfo method
Future<Response>
updatePostsWithHttpInfo(
- String companyId,
- String postId,
- PostsUpdate postsUpdate
Update an existing post by ID. Note: last_edited_at is automatically updated.
Note: This method returns the HTTP Response.
Parameters:
-
String companyId (required): Unique identifier for the Company
-
String postId (required): Unique identifier for the Post
-
PostsUpdate postsUpdate (required):
Implementation
Future<Response> updatePostsWithHttpInfo(String companyId, String postId, PostsUpdate postsUpdate,) async {
// ignore: prefer_const_declarations
final path = r'/companies/{company_id}/posts/{post_id}'
.replaceAll('{company_id}', companyId)
.replaceAll('{post_id}', postId);
// ignore: prefer_final_locals
Object? postBody = postsUpdate;
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,
);
}