A session representing a logged in user.
Optional contentText input to be added as a file resource.
Optional credentialsA string indicating whether credentials (cookies) will be sent with the request. Used internally for authentication workflows.
Optional fetchThe implementation of fetch to use. Defaults to a global fetch.
Optional init: RequestInitOptional headersAdditional Headers to pass into the request.
Optional hidePrevents the token from being passed in a URL Query param that is saved in browser history. Instead, the token will be passed in POST request body or through X-Esri-Authorization header. NOTE: This will force POST requests in browsers since auth header is not yet supported by preflight OPTIONS check with CORS.
Optional httpThe HTTP method to send the request with.
Unique identifier of the item.
Optional maxIf the length of a GET request's URL exceeds maxUrlLength the request will use POST instead.
Optional nameNew resource filename.
Optional ownerItem owner username. If not present, authentication.username is utilized.
Optional paramsAdditional parameters to pass in the request.
Optional portalBase url for the portal you want to make the request to. Defaults to authentication.portal if authentication exists, otherwise to 'https://www.arcgis.com/sharing/rest'.
Optional prefixFolder in which to store the new resource.
Optional privateControls whether access to the file resource is restricted to the owner or inherited from the sharing permissions set for the associated item.
Optional rawReturn the raw response
Optional resourceObject to store
Base options interface for making authenticated requests for items.