/item.pkinfo: Package Info File

URL:
https://[root]/content/items/[itemID]/item.pkinfo
Methods:
GET

Example usage

Below is an ArcGIS Online sample request URL to retrieve the package info file for an uploaded item:

URL for package info file

Use dark colors for code blocksCopy
1
https://www.arcgis.com/sharing/rest/content/items/af01df44bf36437fa8daed01407138ab/item.pkinfo

Below is an ArcGIS Enterprise sample request URL to retrieve the package info file for an uploaded item:

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/sharing/rest/content/items/af01df44bf36437fa8daed01407138ab/item.pkinfo

Description

Uploaded items will have a package info file available only if that item is an ArcGIS package (for example, a layer package or map package). It contains information that is used by clients (ArcGIS Pro, ArcGIS Explorer, and so on) to work appropriately with downloaded packages. Navigating to the URL will result in a package info file (.pkinfo) being downloaded. This is an XML file; there is no other file format available. There are no parameters associated with this endpoint.

XML Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<pkinfo>
  <ID>package id</ID>
  <size>size of package </size>
  <created>date created shown in UNIX time</created>
  <type>type</type>
  <packagelocation>package location</packagelocation>
  <pkinfolocation>package info location</pkinfolocation>
</pkinfo>

XML Response example

Below is a sample of the content returned in the downloaded .pkinfo file for ArcGIS Enterprise:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<pkinfo>
  <ID>E1989F21-979F-4D9D-9AE0-FEF8423A00A7</ID>
  <size>410053</size>
  <created>1260389041281</created>
  <type>Map Package</type>
  <packagelocation>https://machine.domain.com/webadaptor/sharing/rest/content/items/96cdca741beb48648d2f75a3abb2dc87/data</packagelocation>
  <pkinfolocation>https://machine.domain.com/webadaptor/sharing/rest/sharing/rest/content/items/96cdca741beb48648d2f75a3abb2dc87/item.pkinfo</pkinfolocation>
</pkinfo>

Below is a sample of the content returned in the downloaded .pkinfo file for ArcGIS Online:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<pkinfo>
  <ID>E1989F21-979F-4D9D-9AE0-FEF8423A00A7</ID>
  <size>410053</size>
  <created>1260389041281</created>
  <type>Map Package</type>
  <packagelocation>https://www.arcgis.com/sharing/rest/content/items/96cdca741beb48648d2f75a3abb2dc87/data</packagelocation>
  <pkinfolocation>https://www.arcgis.com/sharing/rest/sharing/rest/content/items/96cdca741beb48648d2f75a3abb2dc87/item.pkinfo</pkinfolocation>
</pkinfo>

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