putFlagsDefsByKeyWithHttpInfo method
Creates or replaces the flag definition at the path's key and returns the stored row.
Creates or replaces the flag definition at the path's key and returns the stored row. The BODY IS THE DEFINITION DOCUMENT — the flag-definition JSON object the evaluator consumes — and it is stored verbatim except that its "key" is forced to the key in the URL, so a document can never be filed under a name other than the one it was addressed by. Every write bumps the version and appends to the change log under the caller's identity.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> putFlagsDefsByKeyWithHttpInfo(String key, Object body,) async {
// ignore: prefer_const_declarations
final path = r'/v1/flags/defs/{key}'
.replaceAll('{key}', key);
// ignore: prefer_final_locals
Object? postBody = body;
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,
);
}