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