/// <summary> /// </summary> /// <exception cref="ApiException">Thrown when fails to make API call</exception> /// <param name="flagID">numeric ID of the flag</param> /// <returns>Task of ApiResponse</returns> public async Task <ApiResponse <object> > DeleteFlagAsync(long flagID) { return(await _httpClient.DeleteAsync($"flags/{flagID}").AsApiResponse <object>()); }
/// <summary> /// </summary> /// <exception cref="ApiException">Thrown when fails to make API call</exception> /// <param name="flagID">numeric ID of the flag</param> /// <param name="segmentID">numeric ID of the segment</param> /// <returns>Task of ApiResponse</returns> public async Task <ApiResponse <object> > DeleteSegmentAsync(long flagID, long segmentID) { return(await _httpClient.DeleteAsync($"flags/{flagID}/segments/{segmentID}").AsApiResponse <object>()); }