getItem

getItem

Function
getItem(idstring, requestOptions?IRequestOptions): Promise<IItem>
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
import { getItem } from "@esri/arcgis-rest-portal";
//
getItem("ae7")
  .then(response);
// or
getItem("ae7", { authentication })
  .then(response)

Get an item by id. See the REST Documentation for more information.

Parameters
ParameterTypeNotes
id
string

Item Id

requestOptions
IRequestOptions

Options for the request

Returns 
Promise<IItem>

A Promise that will resolve with the data from the response.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.