import { IHubRequestOptions } from "@esri/hub-common" ; import { request } from "@esri/arcgis-rest-request" ; import { getPortalApiUrl } from "@esri/hub-common" ; param { string } clientId param { Array } redirectUris param { IRequestOptions } requestOptions export function updateAppRedirectUris ( clientId , redirectUris , requestOptions ) { const url = `${ getPortalApiUrl ( requestOptions ) }/oauth2/apps/${ clientId }/update` ; const options = { method : "POST" , authentication : requestOptions . authentication , params : { client_id : clientId , redirect_uris : JSON . stringify ( redirectUris ) } } ; return request ( url , options ) ; }