This documentation is for ArcGIS REST JS 3.x which is no longer maintained. For the latest 4.x documentation see ArcGIS REST JS on the ArcGIS Developer website.

getItemBaseUrl

Function

Get the fully qualified base URL to the REST end point for an item.

Get the fully qualified base URL to the REST end point for an item.

  • getItemBaseUrl(id: string, portalUrlOrRequestOptions: string | IRequestOptions) : string

Parameters

Parameter Type Default Notes
id Required string

Item Id

portalUrlOrRequestOptions Optional string | IRequestOptions

a portal URL or request options

Returns

URL to the item's REST end point, defaults to https://www.arcgis.com/sharing/rest/content/items/{id}

string

Function defined in packages/arcgis-rest-portal/src/items/get.ts:57