deleteKey method

Future<DynamiteResponse<AppConfigDeleteKeyResponseApplicationJson, void>> deleteKey({
  1. required String app,
  2. required String key,
  3. bool? oCSAPIRequest,
})

Delete a config key of an app.

This endpoint requires admin access.

Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.

Parameters:

  • app ID of the app.
  • key Key to delete.
  • oCSAPIRequest Required to be true for the API request to pass. Defaults to true.

Status codes:

  • 200: Key deleted successfully
  • 403: App or key is not allowed

See:

Implementation

Future<DynamiteResponse<AppConfigDeleteKeyResponseApplicationJson, void>> deleteKey({
  required String app,
  required String key,
  bool? oCSAPIRequest,
}) async {
  final rawResponse = deleteKeyRaw(
    app: app,
    key: key,
    oCSAPIRequest: oCSAPIRequest,
  );

  return rawResponse.future;
}