updateFeedPostPublicWithHttpInfo method
Future<Response>
updateFeedPostPublicWithHttpInfo(
- String tenantId,
- String postId,
- UpdateFeedPostParams updateFeedPostParams, {
- String? broadcastId,
- String? sso,
Performs an HTTP 'PUT /feed-posts/{tenantId}/{postId}' operation and returns the Response.
Parameters:
-
String tenantId (required):
-
String postId (required):
-
UpdateFeedPostParams updateFeedPostParams (required):
-
String broadcastId:
-
String sso:
Implementation
Future<Response> updateFeedPostPublicWithHttpInfo(String tenantId, String postId, UpdateFeedPostParams updateFeedPostParams, { String? broadcastId, String? sso, }) async {
// ignore: prefer_const_declarations
final path = r'/feed-posts/{tenantId}/{postId}'
.replaceAll('{tenantId}', tenantId)
.replaceAll('{postId}', postId);
// ignore: prefer_final_locals
Object? postBody = updateFeedPostParams;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (broadcastId != null) {
queryParams.addAll(_queryParams('', 'broadcastId', broadcastId));
}
if (sso != null) {
queryParams.addAll(_queryParams('', 'sso', sso));
}
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}