putFrameworkDoctypesByNameWithHttpInfo method
Replaces a DocType definition wholesale (PUT semantics): the stored definition becomes the body.
Replaces a DocType definition wholesale (PUT semantics): the stored definition becomes the body. The name in the URL is authoritative over the body's, and documents already stored under the DocType are left intact. Manager-only.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> putFrameworkDoctypesByNameWithHttpInfo(String name, DocType docType,) async {
// ignore: prefer_const_declarations
final path = r'/v1/framework/doctypes/{name}'
.replaceAll('{name}', name);
// 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,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}