postFrameworkDoctypesWithHttpInfo method
Defines a DocType in the caller's org: the metadata that gives a document surface its fields, its naming rule, whether it has a submit/cancel lifecycle, and which role may do what to it.
Defines a DocType in the caller's org: the metadata that gives a document surface its fields, its naming rule, whether it has a submit/cancel lifecycle, and which role may do what to it. Manager-only — on a fresh org the first caller to administer it is seeded as its System Manager, after which only a System Manager (or a platform admin) may define. Answers 201.
Note: This method returns the HTTP Response.
Parameters:
- DocType docType (required):
Implementation
Future<Response> postFrameworkDoctypesWithHttpInfo(DocType docType,) async {
// ignore: prefer_const_declarations
final path = r'/v1/framework/doctypes';
// ignore: prefer_final_locals
Object? postBody = docType;
final queryParams = <QueryParam>[];
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,
);
}