updateOrganizationName method
Future<TUpdateOrganizationNameResponse>
updateOrganizationName({
- required TUpdateOrganizationNameBody input,
Update the name of an organization.
Sign the provided TUpdateOrganizationNameBody with the client's stamp function and submit the request (POST /public/v1/submit/update_organization_name).
See also: stampUpdateOrganizationName.
Implementation
Future<TUpdateOrganizationNameResponse> updateOrganizationName({
required TUpdateOrganizationNameBody input,
}) async {
final body = packActivityBody(
bodyJson: input.toJson(),
fallbackOrganizationId: input.organizationId ??
config.organizationId ??
(throw Exception(
"Missing organization ID, please pass in a sub-organizationId or instantiate the client with one.")),
activityType: 'ACTIVITY_TYPE_UPDATE_ORGANIZATION_NAME',
);
return await request<Map<String, dynamic>, TUpdateOrganizationNameResponse>(
"/public/v1/submit/update_organization_name",
body,
(json) => TUpdateOrganizationNameResponse.fromJson(
transformActivityResponse(json, 'UpdateOrganizationName')));
}