getFrameworkDoctypesByNameWithHttpInfo method

Future<Response> getFrameworkDoctypesByNameWithHttpInfo(
  1. String name
)

Returns one DocType definition — its fields, naming rule, permissions and lifecycle flags.

Returns one DocType definition — its fields, naming rule, permissions and lifecycle flags. Scoped to the caller's org, so another tenant's DocType of the same name is simply not found.

Note: This method returns the HTTP Response.

Parameters:

  • String name (required): Name is the DocType's name, from the path. A name containing a space ("Sales Invoice") arrives percent-encoded and is decoded before it is matched against the stored one.

Implementation

Future<Response> getFrameworkDoctypesByNameWithHttpInfo(String name,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/framework/doctypes/{name}'
    .replaceAll('{name}', name);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}