setOrganizationFeature method
Future<TSetOrganizationFeatureResponse>
setOrganizationFeature({
- required TSetOrganizationFeatureBody input,
Set an organization feature. This activity must be approved by the current root quorum.
Sign the provided TSetOrganizationFeatureBody with the client's stamp function and submit the request (POST /public/v1/submit/set_organization_feature).
See also: stampSetOrganizationFeature.
Implementation
Future<TSetOrganizationFeatureResponse> setOrganizationFeature({
required TSetOrganizationFeatureBody 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_SET_ORGANIZATION_FEATURE',
);
return await request<Map<String, dynamic>, TSetOrganizationFeatureResponse>(
"/public/v1/submit/set_organization_feature",
body,
(json) => TSetOrganizationFeatureResponse.fromJson(
transformActivityResponse(json, 'SetOrganizationFeature')));
}