getItemDataUrl

Function

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

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

  • getItemDataUrl(item: IItem, portalUrlOrObject: string | IPortal | IHubRequestOptions | IRequestOptions, token: string) : string

Parameters

Parameter Type Default Notes
item Required IItem

w/ id and access

portalUrlOrObject Optional string | IPortal | IHubRequestOptions | IRequestOptions

a portal base or API URL, a portal object, or request options containing either of those

token Optional string

token for the current user's session; will only be appended as a query parameter if the item's access is not public

Returns

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

string

Function defined in common/src/urls/get-item-data-url.ts:13