patchLabelsIDWithHttpInfo method
Future<Response>
patchLabelsIDWithHttpInfo(
- String labelID,
- LabelUpdate labelUpdate, {
- String? zapTraceSpan,
Update a label
Note: This method returns the HTTP Response
.
Parameters:
-
String labelID (required): The ID of the label to update.
-
LabelUpdate labelUpdate (required): Label update
-
String zapTraceSpan: OpenTracing span context
Implementation
Future<Response> patchLabelsIDWithHttpInfo(
String labelID,
LabelUpdate labelUpdate, {
String? zapTraceSpan,
}) async {
final path = r'/labels/{labelID}'.replaceAll('{labelID}', labelID);
// ignore: prefer_final_locals
Object? postBody = labelUpdate;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (zapTraceSpan != null) {
headerParams[r'Zap-Trace-Span'] = parameterToString(zapTraceSpan);
}
const authNames = <String>[
'BasicAuthentication',
'QuerystringAuthentication',
'TokenAuthentication'
];
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes[0],
authNames,
);
}