POST
|
Turns out I was using the wrong access token. I was using the app access token instead of the user access token. With the user access token it works now.
... View more
04-04-2018
02:53 AM
|
1
|
2
|
1287
|
POST
|
Hi Ryan, The username I'm using in AGOL is an ArcGIS developer account. As far as I know this kind of user has an admin role and all permissions available. And I can create a WebMap in the ArcGIS webpage without problems.
... View more
04-04-2018
02:24 AM
|
0
|
0
|
1287
|
POST
|
Following the instructions on this page Working with users, groups, and items—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers I was able build a POST request in POSTMAN to add a new item to the user. After getting the token, when I try the POST request to add the web map I get this error {"error":{"code":403,"messageCode":"GWM_0003","message":"You do not have permissions to access this resource or perform this operation.","details":[]}} The JSON I used is this: { "operationalLayers": [], "baseMap": { "baseMapLayers": [ { "id": "defaultBasemap", "layerType": "ArcGISTiledMapServiceLayer", "url": "https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer", "visibility": true, "opacity": 1, "title": "Topographic" } ], "title": "Topographic" }, "spatialReference": { "wkid": 102100, "latestWkid": 3857 }, "authoringApp": "WebMapViewer", "authoringAppVersion": "5.4", "version": "2.11" }
... View more
04-03-2018
09:09 AM
|
0
|
5
|
2597
|
Title | Kudos | Posted |
---|---|---|
1 | 04-04-2018 02:53 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|