Portal item as a Style
Returns a style showing the supplied portal item. The portal item must be of type Tile Layer (based on either a Map Service or Vector Tile Service).
Once a custom style has been retrieved from the service it may be cached. If you make changes to the style it could take up to 10 minutes for the changes to be available.
Query parameters
Name | Type | Required | Default value | Description |
---|---|---|---|---|
|
| The authentication token, used to access the Basemap styles service. | ||
|
| Optional, case-sensitive parameter to specify the format in which responses are given. Can either be json or pjson. |
token
The authentication token, used to access the Basemap styles service.
The token
parameter can be either an API Key or short-lived token.
Alternatively, you can supply a token in the request header with one of the following keys using the "Bearer" scheme:
Authorization
: Bearer <YOUR _TOKEN > X-
Esri- Authorization : Bearer <YOUR _TOKEN >
The provided token
must have the necessary premium
privilege to use the basemap style service.
Developer guide: To learn more, go to Security and authentication.
f
Optional, case-sensitive parameter to specify the format in which responses are given. Can either be json or pjson.
- Default
- json
Enumerated values
Path parameters
Name | Type | Required | Default value | Description |
---|---|---|---|---|
|
| Portal item unique identifier representing a single content item in the ArcGIS portal. |
item_id
Portal item unique identifier representing a single content item in the ArcGIS portal. The portal item must be of type Tile Layer (based on either a Map Service or Vector Tile Service). See ArcGIS Glossary for more information about portal item IDs. See ArcGIS item types for more information about item types.
Examples
Request
# You can also use wget
curl -X GET https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/styles/items/{item_id} \
-H 'Accept: application/json'
Response
200 Response
{}
Status | Meaning | Description | Schema |
---|---|---|---|
| A successful response to a style request. | ||
| Invalid query parameters / Incorrect portal item type. | ||
| Authentication Error. The API key or token is missing, invalid or expired. | ||
| The requested resource cannot be accesed because of incorrent sharing permissions. | ||
| A portal item with the supplied ID was not found. | ||
| Unknown | An error occurred on the server. |