createPostEphemeralWithHttpInfo method
Future<Response>
createPostEphemeralWithHttpInfo(
- MmCreatePostEphemeralRequest mmCreatePostEphemeralRequest
Create a ephemeral post
Create a new ephemeral post in a channel. ##### Permissions Must have create_post_ephemeral
permission (currently only given to system admin)
Note: This method returns the HTTP Response
.
Parameters:
- MmCreatePostEphemeralRequest mmCreatePostEphemeralRequest (required): Ephemeral Post object to send
Implementation
Future<Response> createPostEphemeralWithHttpInfo(
MmCreatePostEphemeralRequest mmCreatePostEphemeralRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/posts/ephemeral';
// ignore: prefer_final_locals
Object? postBody = mmCreatePostEphemeralRequest;
final queryParams = <MmQueryParam>[];
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,
);
}