apiV2ProjectsProjectIdAttributesTemplatesTemplateIdDeleteWithHttpInfo method

Future<Response> apiV2ProjectsProjectIdAttributesTemplatesTemplateIdDeleteWithHttpInfo(
  1. String projectId,
  2. String templateId
)

Delete CustomAttributeTemplate from Project

Use case User sets project internal or global identifier User sets attribute template internal identifier User runs method execution System delete attribute template from project

Note: This method returns the HTTP Response.

Parameters:

  • String projectId (required): Project internal (UUID) or global (integer) identifier

  • String templateId (required): CustomAttributeTemplate internal (UUID) identifier

Implementation

Future<Response> apiV2ProjectsProjectIdAttributesTemplatesTemplateIdDeleteWithHttpInfo(String projectId, String templateId,) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v2/projects/{projectId}/attributes/templates/{templateId}'
    .replaceAll('{projectId}', projectId)
    .replaceAll('{templateId}', templateId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];


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