예제 #1
0
        /// <summary>
        /// Modify a single application
        /// </summary>
        /// <param name="appId">Id of the application to be updated</param>
        /// <param name="request">Application request</param>
        /// <param name="credentials">(Optional) Overridden credentials for only this request</param>
        /// <returns></returns>
        public static AppResponse Update(AppRequest request, Credentials credentials = null)
        {
            var response = VersionedApiRequest.DoRequest("PUT", ApiRequest.GetBaseUriFor(typeof(ApplicationV2),
                                                                                         $"/v2/applications/{request.Id}"), request, credentials);

            return(JsonConvert.DeserializeObject <AppResponse>(response.JsonResponse));
        }
 /// <summary>
 /// Modify a single application
 /// </summary>
 /// <param name="appId">Id of the application to be updated</param>
 /// <param name="request">Application request</param>
 /// <param name="credentials">(Optional) Overridden credentials for only this request</param>
 /// <returns></returns>
 public static AppResponse Update(AppRequest request, Credentials credentials = null)
 {
     return(ApiRequest.DoRequestWithJsonContent <AppResponse>("PUT", ApiRequest.GetBaseUriFor(typeof(ApplicationV2),
                                                                                              $"/v2/applications/{request.Id}"), request, ApiRequest.AuthType.Basic, credentials));
 }