{ "swagger": "2.0", "info": { "version": "0.1.0", "title": "agol-swagger" }, "host": "www.arcgis.com", "basePath": "/", "schemes": [ "http", "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "securityDefinitions": { "agol_oauth_implicit": { "type": "oauth2", "authorizationUrl": "/sharing/rest/oauth2/authorize?client_id=YOUR_APPLICATIONS_CLIENT_ID&response_type=token&expiration=20160&redirect_uri=A_REDIRECT_URI_FOR_YOUR_APPLICATION", "flow": "implicit", "description": "AGOL OAuth Implicit Authentication - Browser-based User Logins https://developers.arcgis.com/authentication/browser-based-user-logins/", "scopes": { "read:getPortalSelf": "reads getPortalSelf", "read:getPortalResources": "reads getPortalResources", "read:getPortalServers": "reads getPortalServers", "read:getPortalUsers": "reads getPortalUsers", "read:getPortalServer": "reads getPortalServer", "read:getItemComments": "reads getItemComments", "read:getItemComment": "reads getItemComment", "read:getItem": "reads getItem", "read:getRelatedItems": "reads getRelatedItems", "read:getItemRating": "reads getItemRating", "read:getGroup": "reads getGroup", "read:getGroupApplications": "reads getGroupApplications", "read:getGroupContent": "reads getGroupContent", "read:getGroupUsers": "reads getGroupUsers", "read:getGroupApplication": "reads getGroupApplication", "read:getUserInvitation": "reads getUserInvitation", "read:getItemGroups": "reads getItemGroups", "read:getNotification": "reads getNotification", "read:getNotifications": "reads getNotifications", "read:getUserSelf": "reads getUserSelf", "read:getUser": "reads getUser", "read:getUserContent": "reads getUserContent", "read:getUserInvitations": "reads getUserInvitations", "read:getUserTags": "reads getUserTags", "post:updateUser": "posts updateUser", "post:acceptGroupApplication": "posts acceptGroupApplication", "post:acceptInvitation": "posts acceptInvitation", "post:addComment": "posts addComment", "post:addItem": "posts addItem", "post:addItemPart": "posts addItemPart", "post:addRating": "posts addRating", "post:addRelationship": "posts addRelationship", "post:addUsersToGroup": "posts addUsersToGroup", "post:createFolder": "posts createFolder", "post:createGroup": "posts createGroup", "post:createService": "posts createService", "post:declineGroupApplication": "posts declineGroupApplication", "post:declineInvitation": "posts declineInvitation", "post:deleteComment": "posts deleteComment", "post:deleteFolder": "posts deleteFolder", "post:deleteGroup": "posts deleteGroup", "post:deleteNotification": "posts deleteNotification", "post:deleteUser": "posts deleteUser", "post:disableUser": "posts disableUser", "post:enableUser": "posts enableUser", "read:groupSearch": "reads groupSearch", "post:inviteToGroup": "posts inviteToGroup", "post:joinGroup": "posts joinGroup", "post:leaveGroup": "posts leaveGroup", "post:reassignGroup": "posts reassignGroup", "post:removeUsersFromGroup": "posts removeUsersFromGroup", "read:search": "reads search", "read:searchUsers": "reads searchUsers", "post:updateGroup": "posts updateGroup" } } }, "parameters": { "f": { "type": "string", "description": "The output format can be HTML, JSON, or PJSON. The default is HTML. Search and item comments support RSS as an output format. Values: html, json, pjson", "default": "pjson", "name": "f", "in": "query", "required": true }, "token": { "type": "string", "description": "Generated by the generateToken call, an access token that identifies the authenticated user and controls access to restricted resources and operations.", "name": "token", "in": "query", "required": true }, "start": { "type": "number", "description": "The number of the first entry in the result set response. The index number is 1-based. The default value of start is 1 (that is, the first search result). The start parameter, along with the num parameter, can be used to paginate the search results. Example: start=11 (return result #11 as the first entry in the response)", "name": "start", "in": "query", "default": 1, "minimum": 1, "required": false }, "num": { "type": "number", "description": "The maximum number of results to be included in the result set response. The default value is 10, and the maximum allowed value is 100. The start parameter, along with the num parameter, can be used to paginate the search results. ", "name": "num", "in": "query", "default": 10, "maximum": 100, "minimum": 0, "required": false }, "q": { "name": "q", "type": "string", "description": "The query string to search the groups against. See Search reference for advanced options. Example: q=arcgis+online. Search reference http://resources.arcgis.com/en/help/arcgis-rest-api/#/Search_reference/02r3000000mn000000/", "in": "query" }, "sortField": { "name": "sortField", "type": "string", "description": "Field to sort by. The allowed field names are title, owner, and created.", "in": "query", "enum": [ "title", "owner", "created" ] }, "sortOrder": { "name": "sortOrder", "type": "string", "description": "Describes whether order returns in ascending or descending order. Default is ascending.", "in": "query", "enum": [ "asc", "desc" ] }, "bbox": { "type": "string", "description": "The bounding box for a spatial search defined as minx, miny, maxx, or maxy. Search requires q, bbox, or both. Spatial search is an overlaps/intersects function of the query bbox and the extent of the document. Documents that have no extent (e.g., mxds, 3dds, lyr) will not be found when doing a bbox search. Document extent is assumed to be in the WGS84 geographic coordinate system. Example: bbox=-118,32,-116,34", "name": "bbox", "in": "query", "required": false }, "portalId": { "name": "portalId", "in": "path", "description": "Id of the portal", "required": true, "type": "string" }, "serverId": { "name": "serverId", "in": "path", "description": "Id of the server", "required": true, "type": "string" }, "itemId": { "name": "itemId", "in": "path", "description": "Id of the item", "required": true, "type": "string" }, "groupId": { "name": "groupId", "in": "path", "description": "Id of the group", "required": true, "type": "string" }, "userName": { "name": "userName", "in": "path", "description": "Name of the user", "required": true, "type": "string" }, "applicationUsername": { "name": "applicationUsername", "in": "path", "description": "Name of the user applying to join the group", "required": true, "type": "string" }, "invitationId": { "name": "invitationId", "in": "path", "description": "The ID of the invitation", "required": true, "type": "string" }, "commentId": { "name": "commentId", "in": "path", "description": "Id of the comment", "required": true, "type": "string" }, "folderId": { "name": "folderId", "in": "path", "description": "Id of the folder", "required": true, "type": "string" }, "notificationId": { "name": "notificationId", "in": "path", "description": "Id of the notification", "required": true, "type": "string" }, "groupCommonParameters": { "description": "Common parameters for creating and updating group information", "in": "body", "name": "groupCommonParameters", "required": true, "schema": { "$ref": "#/definitions/groupCommonParameters" } }, "inviteDetails": { "description": "Details for inviting users to a group", "in": "body", "name": "inviteDetails", "required": true, "schema": { "$ref": "#/definitions/inviteDetails" } }, "partDetails": { "description": "Details for adding an item part", "in": "body", "name": "partDetails", "required": true, "schema": { "$ref": "#/definitions/partDetails" } }, "itemDetails": { "description": "Details for adding an item", "in": "body", "name": "itemDetails", "required": true, "schema": { "$ref": "#/definitions/itemDetails" } }, "serviceDetails": { "description": "Details for creating a service", "in": "body", "name": "serviceDetails", "required": true, "schema": { "$ref": "#/definitions/serviceDetails" } }, "tokenDetails": { "description": "Details for generating a token", "in": "body", "name": "tokenDetails", "required": true, "schema": { "$ref": "#/definitions/tokenDetails" } } }, "paths": { "/sharing/rest": { "x-swagger-router-controller": "getOrgRoot", "get": { "summary": "Root", "externalDocs": { "description": "Managing your organization > Portals > Root", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Root/02r30000009t000000/" }, "description": "The Root resource only returns the version of the containing portal. It acts as a root to its child resources and operations. To obtain descriptive information about this portal including its name, logo, featured items, and supported protocols (HTTP vs HTTPS), access the Self resource under Portals.", "operationId": "getOrgRoot", "security": [ ], "parameters": [ { "$ref": "#/parameters/f" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getOrgRoot" } } } } }, "/sharing/rest/community/createGroup": { "x-swagger-router-controller": "createGroup", "post": { "summary": "Create Group", "externalDocs": { "description": "Managing your organization > Community > Create Group", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Group/02r30000009w000000/" }, "description": "The Create Group operation (POST only) creates a new group in the Portal community. Only authenticated users can create groups. The user who creates the group automatically becomes the owner of the group. The owner of the group is automatically an administrator of the group. The calling user provides the title for the group, while the group ID is generated by the system.", "operationId": "createGroup", "security": [ { "agol_oauth_implicit": [ "post:createGroup" ] } ], "parameters": [ { "$ref": "#/parameters/groupCommonParameters" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/createFolder" } } } } }, "/sharing/rest/community/groups": { "x-swagger-router-controller": "groupSearch", "get": { "summary": "Group Search", "externalDocs": { "description": "Managing your organization > Community > Group Search", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Group_Search/02r3000000m1000000/" }, "description": "The Group Search operation searches for groups in the portal. The search index is updated whenever groups and organizations are created, updated, or deleted. There can be a lag between the time that a group is updated and the time when it's reflected in the search results. The results only contain groups that the user has permission to access. Care should be taken when using ArcGIS REST API search operations (search, user search, group search) to find items, groups, and users programmatically. The Portal uses a powerful search engine to index information and to allow full text searching on it. This search engine uses many different inputs to find the appropriate results and rank them. This often makes search 'fuzzy', making it ideal for human interaction, but not necessarily ideal for looking for specific records programmatically. Developers should avoid using search to find specific items (e.g. by title) as the results of these types of queries might change as the search engine evolves.", "operationId": "groupSearch", "security": [ { "agol_oauth_implicit": [ "read:groupSearch" ] } ], "parameters": [ { "$ref": "#/parameters/q" }, { "$ref": "#/parameters/start" }, { "$ref": "#/parameters/num" }, { "$ref": "#/parameters/sortField" }, { "$ref": "#/parameters/sortOrder" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/groupSearch" } } } } }, "/sharing/rest/community/groups/{groupId}": { "x-swagger-router-controller": "getGroup", "get": { "summary": "Group", "externalDocs": { "description": "Managing your organization > Community > Group", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Group/02r30000006m000000/" }, "description": " The Group resource represents a group (for example, San Bernardino Fires) within the portal. The owner is automatically an administrator and is returned in the list of admins. Administrators can invite, add to, or remove members from a group as well as update or delete the group. The administrator for an organization can also reassign the group to another member of the organization. Group members can leave the group. Authenticated users can apply to join a group unless the group is by invitation only. The visibility of the group by other users is determined by the access property. If the group is private, no one other than the administrators and members of the group will be able to see it. If the group is shared with an organization, all members of the organization will be able to find it", "operationId": "getGroup", "security": [ { "agol_oauth_implicit": [ "read:getGroup" ] } ], "parameters": [ { "$ref": "#/parameters/groupId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getGroup" } } } } }, "/sharing/rest/community/groups/{groupId}/invite": { "x-swagger-router-controller": "inviteToGroup", "post": { "summary": "Invite to Group", "externalDocs": { "description": "Managing your organization > Community > Invite to Group", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Invite_to_Group/02r30000006v000000/" }, "description": "A group administrator can invite users to join their group using the Invite to Group operation. This creates a new user invitation, which the users accept or decline. The role of the user and the invitation expiration date can be set in the invitation. A notification is created for the user indicating that they were invited to join the group. Available only to authenticated users. ", "operationId": "inviteToGroup", "security": [ { "agol_oauth_implicit": [ "post:inviteToGroup" ] } ], "parameters": [ { "$ref": "#/parameters/groupId" }, { "$ref": "#/parameters/inviteDetails" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/inviteToGroup" } } } } }, "/sharing/rest/community/groups/{groupId}/addUsers": { "x-swagger-router-controller": "addUsersToGroup", "post": { "summary": "Add Users to Group", "externalDocs": { "description": "Managing your organization > Community > Add Users to Group", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Add_Users_to_Group/02r3000002mr000000/" }, "description": "The operation to Add Users to Group (POST only) is available only to the group administrators, including the owner, and to the administrator of the organization if the user is a member. Both users and admins can be added using this operation. This is useful if you wish to add users directly within an organization without requiring them to accept an invitation. For example, a member of an organization can add only other organization members but not public users", "operationId": "addUsersToGroup", "security": [ { "agol_oauth_implicit": [ "post:addUsersToGroup" ] } ], "parameters": [ { "$ref": "#/parameters/groupId" }, { "name": "users", "in": "body", "description": "A comma-separated list of usernames (both admins and regular users) to be added to the group. Example: users=regularusername1,adminusername1,adminusername2,regularusername2", "required": true, "schema": { "type": "string" } }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/addUsersToGroup" } } } } }, "/sharing/rest/community/groups/{groupId}/applications": { "x-swagger-router-controller": "getGroupApplications", "get": { "summary": "Group Applications", "externalDocs": { "description": "Managing your organization > Community > Group Applications", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Group_Applications/02r300000068000000/" }, "description": "Lists the group applications for the given group. Available to administrators of the group or administrators of an organization if the group is part of one", "operationId": "getGroupApplications", "security": [ { "agol_oauth_implicit": [ "read:getGroupApplications" ] } ], "parameters": [ { "$ref": "#/parameters/groupId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getGroupApplications" } } } } }, "/sharing/rest/community/groups/{groupId}/applications/{applicationUsername}": { "x-swagger-router-controller": "getGroupApplication", "get": { "summary": "Group Application", "externalDocs": { "description": "Managing your organization > Community > Group Application", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Group_Application/02r30000006r000000/" }, "description": "When an individual user applies to join a group, a group application is created. The group administrators can accept or decline the application. Available only to the group administrators and the administrator of the organization if the group belongs to an organization", "operationId": "getGroupApplication", "security": [ { "agol_oauth_implicit": [ "read:getGroupApplication" ] } ], "parameters": [ { "$ref": "#/parameters/groupId" }, { "$ref": "#/parameters/applicationUsername" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getGroupApplication" } } } } }, "/sharing/rest/community/groups/{groupId}/applications/{applicationUsername}/accept": { "x-swagger-router-controller": "acceptGroupApplication", "post": { "summary": "Accept Group Application", "externalDocs": { "description": "Managing your organization > Community > Accept Group Application", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Accept_Group_Application/02r300000069000000/" }, "description": "When a user applies to join a group, a group application is created. Group administrators choose to accept this application using the Accept Group Application operation (POST only). This operation adds the applying user to the group then deletes the application. This operation also creates a notification for the user indicating that the user's group application was accepted. Available only to group owners and admins", "operationId": "acceptGroupApplication", "security": [ { "agol_oauth_implicit": [ "post:acceptGroupApplication" ] } ], "parameters": [ { "$ref": "#/parameters/groupId" }, { "$ref": "#/parameters/applicationUsername" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/acceptGroupApplication" } } } } }, "/sharing/rest/community/groups/{groupId}/applications/{applicationUsername}/decline": { "x-swagger-router-controller": "declineGroupApplication", "post": { "summary": "Decline Group Application", "externalDocs": { "description": "Managing your organization > Community > Decline Group Application", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Decline_Group_Application/02r30000006q000000/" }, "description": "When a user applies to join a group, a group application is created. Group administrators can decline this application using the Decline Group Application operation (POST only). This operation deletes the application and creates a notification for the user indicating that the user's group application was declined. The applying user will not be added to the group. Available only to group owners and admins", "operationId": "declineGroupApplication", "security": [ { "agol_oauth_implicit": [ "post:declineGroupApplication" ] } ], "parameters": [ { "$ref": "#/parameters/groupId" }, { "$ref": "#/parameters/applicationUsername" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/declineGroupApplication" } } } } }, "/sharing/rest/community/groups/{groupId}/delete": { "x-swagger-router-controller": "deleteGroup", "post": { "summary": "Delete Group", "externalDocs": { "description": "Managing your organization > Community > Delete Group", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Delete_Group/02r300000070000000/" }, "description": "The Delete Group operation (POST only) is available only to the group administrators or to the administrator of the organization to which the owner belongs", "operationId": "deleteGroup", "security": [ { "agol_oauth_implicit": [ "post:deleteGroup" ] } ], "parameters": [ { "$ref": "#/parameters/groupId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/deleteGroup" } } } } }, "/sharing/rest/community/groups/{groupId}/join": { "x-swagger-router-controller": "joinGroup", "post": { "summary": "Join Group", "externalDocs": { "description": "Managing your organization > Community > Join Group", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Join_Group/02r30000006n000000/" }, "description": "Users apply to join a group using the Join Group operation (POST only). This creates a new group application, which the group administrators accept or decline. This operation also creates a notification for the user indicating that they have applied to join this group. Available only to authenticated users. Users can only apply to join groups to which they have access. If the group is private, users will not be able to find it to ask to join it. Information pertaining to the applying user, such as their full name and username, can be sent as part of the group application. ", "operationId": "joinGroup", "security": [ { "agol_oauth_implicit": [ "post:joinGroup" ] } ], "parameters": [ { "$ref": "#/parameters/groupId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/joinGroup" } } } } }, "/sharing/rest/community/groups/{groupId}/leave": { "x-swagger-router-controller": "leaveGroup", "post": { "summary": "Leave Group", "externalDocs": { "description": "Managing your organization > Community > Leave Group", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Leave_Group/02r30000006z000000/" }, "description": "The Leave Group operation (POST only) is available to all group members other than the group owner. Leaving a group automatically results in the unsharing of all items the user has shared with the group.", "operationId": "leaveGroup", "security": [ { "agol_oauth_implicit": [ "post:leaveGroup" ] } ], "parameters": [ { "$ref": "#/parameters/groupId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/leaveGroup" } } } } }, "/sharing/rest/community/groups/{groupId}/reassign": { "x-swagger-router-controller": "reassignGroup", "post": { "summary": "Reassign Group", "externalDocs": { "description": "Managing your organization > Community > Reassign Group", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Reassign_Group/02r300000067000000/" }, "description": "The Reassign Group operation (POST only) allows the administrator of an organization to reassign a group to another member of the organization.", "operationId": "reassignGroup", "security": [ { "agol_oauth_implicit": [ "post:reassignGroup" ] } ], "parameters": [ { "$ref": "#/parameters/groupId" }, { "name": "targetUsername", "in": "body", "description": "The target username of the new owner of the group. Example: organization_username1", "required": true, "schema": { "type": "string" } }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/reassignGroup" } } } } }, "/sharing/rest/community/groups/{groupId}/removeUsers": { "x-swagger-router-controller": "removeUsersFromGroup", "post": { "summary": "Remove Users from Group", "externalDocs": { "description": "Managing your organization > Community > Remove Users from Group", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Remove_Users_From_Group/02r300000066000000/" }, "description": "The operation to Remove Users From Group (POST only) is available only to the group administrators, including the owner, and to the administrator of the organization if the user is a member. Both users and admins can be removed using this operation. Group owners cannot be removed from the group.", "operationId": "removeUsersFromGroup", "security": [ { "agol_oauth_implicit": [ "post:removeUsersFromGroup" ] } ], "parameters": [ { "$ref": "#/parameters/groupId" }, { "name": "users", "in": "body", "description": "A comma-separated list of usernames (both admins and regular users) to be removed from the group. Example: users=regularusername1,adminusername1,adminusername2, regularusername2", "required": true, "schema": { "type": "string" } }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/removeUsersFromGroup" } } } } }, "/sharing/rest/community/groups/{groupId}/update": { "x-swagger-router-controller": "updateGroup", "post": { "summary": "Update Group", "externalDocs": { "description": "Managing your organization > Community > Update Group", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Update_Group/02r30000006w000000/" }, "description": "The Update Group operation (POST only) modifies properties such as the group title, tags, description, sort field and order, and member sharing capabilities. Available only to the group administrators or to the administrator of the organization if the user is a member. Only the properties that are to be updated need to be specified in the request. Properties not specified will not be affected. The group ID cannot be modified.", "operationId": "updateGroup", "security": [ { "agol_oauth_implicit": [ "post:updateGroup" ] } ], "parameters": [ { "$ref": "#/parameters/groupId" }, { "$ref": "#/parameters/groupCommonParameters" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/updateGroup" } } } } }, "/sharing/rest/community/groups/{groupId}/users": { "x-swagger-router-controller": "getGroupUsers", "get": { "summary": "Group Users", "externalDocs": { "description": "Managing your organization > Community > Group Users", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Group_Users/02r30000006p000000/" }, "description": "Lists the users, owner, and administrators of a given group. Only available to members or administrators of the group", "operationId": "getGroupUsers", "security": [ { "agol_oauth_implicit": [ "read:getGroupUsers" ] } ], "parameters": [ { "$ref": "#/parameters/groupId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getGroupUsers" } } } } }, "/sharing/rest/community/self": { "x-swagger-router-controller": "getUserSelf", "get": { "summary": "Self", "externalDocs": { "description": "Managing your organization > Community > Self", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Self/02r300000079000000/" }, "description": "This resource allows discovery of the current authenticated user identified by the token", "operationId": "getUserSelf", "security": [ { "agol_oauth_implicit": [ "read:getUserSelf" ] } ], "parameters": [ { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getUser" } } } } }, "/sharing/rest/community/users": { "x-swagger-router-controller": "searchUsers", "get": { "summary": "User Search", "externalDocs": { "description": "Managing your organization > Community > Search Users", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/User_Search/02r3000000m6000000/" }, "description": "The User Search operation searches for users in the portal. The search index is updated whenever users are created, updated, or deleted. There can be a lag between the time that the user is updated and the time when it's reflected in the search results. The results only contain users that the calling user has permissions to see. Users can control this visibility by changing the access property of their user. Care should be taken when using ArcGIS REST API search operations (search, user search, group search) to find items, groups, and users programmatically. The Portal uses a powerful search engine to index information and to allow full text searching on it. This search engine uses many different inputs to find the appropriate results and rank them. This often makes search 'fuzzy', making it ideal for human interaction, but not necessarily ideal for looking for specific records programmatically. Developers should avoid using search to find specific items (e.g. by title) as the results of these types of queries might change as the search engine evolves. ", "operationId": "searchUsers", "security": [ { "agol_oauth_implicit": [ "read:searchUsers" ] } ], "parameters": [ { "$ref": "#/parameters/q" }, { "$ref": "#/parameters/start" }, { "$ref": "#/parameters/num" }, { "$ref": "#/parameters/sortField" }, { "$ref": "#/parameters/sortOrder" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/searchUsers" } } } } }, "/sharing/rest/community/users/{userName}": { "x-swagger-router-controller": "getUser", "get": { "summary": "User", "externalDocs": { "description": "Managing your organization > Community > User", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/User/02r3000000m2000000/" }, "description": "A user resource representing a registered user of the portal. Personal details of the user, such as e-mail and groups, are returned only to the user or the administrator of the user's organization (the properties in the Response Properties table below). A user is not visible to any other user (except the organization's administrator) if their access setting is set to 'private.", "operationId": "getUser", "security": [ { "agol_oauth_implicit": [ "read:getUser" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getUser" } } } } }, "/sharing/rest/community/users/{userName}/delete": { "x-swagger-router-controller": "deleteUser", "post": { "summary": "Delete User", "externalDocs": { "description": "Managing your organization > Community > Delete User", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Delete_User/02r3000000mw000000/" }, "description": "The Delete User operation (POST only) is available only to the user in question or to the administrator of the user's organization. If deleting a user who is part of an organization, their content and groups must be transferred to another member or deleted prior to deleting the user. If the user is not part of an organization, all content and groups of the user must first be deleted. Deleting a user whose identity provider is the Esri Global Account will not delete the user from the Esri Global Account system.", "operationId": "deleteUser", "security": [ { "agol_oauth_implicit": [ "post:deleteUser" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/deleteUser" } } } } }, "/sharing/rest/community/users/{userName}/disable": { "x-swagger-router-controller": "disableUser", "post": { "summary": "Disable User", "externalDocs": { "description": "Managing your organization > Community > Disable User", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Disable/02r30000026m000000/" }, "description": "The Disable operation (POST only) disables login access for the user. It is only available to the administrator of the organization.", "operationId": "disableUser", "security": [ { "agol_oauth_implicit": [ "post:disableUser" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/disableUser" } } } } }, "/sharing/rest/community/users/{userName}/enable": { "x-swagger-router-controller": "enableUser", "post": { "summary": "Enable User", "externalDocs": { "description": "Managing your organization > Community > Enable User", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Enable/02r30000026p000000/" }, "description": "The Enable operation (POST only) enables login access for the user. It is only available to the administrator of the organization.", "operationId": "enableUser", "security": [ { "agol_oauth_implicit": [ "post:enableUser" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/enableUser" } } } } }, "/sharing/rest/community/users/{userName}/invitations": { "x-swagger-router-controller": "getUserInvitations", "get": { "summary": "User Invitations", "externalDocs": { "description": "Managing your organization > Community > User Invitations", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/User_Invitations/02r3000000m7000000/" }, "description": "Shows the invitations sent to the authenticated user", "operationId": "getUserInvitations", "security": [ { "agol_oauth_implicit": [ "read:getUserInvitations" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getUserInvitations" } } } } }, "/sharing/rest/community/users/{userName}/invitations/{invitationId}": { "x-swagger-router-controller": "getUserInvitation", "get": { "summary": "User Invitation", "externalDocs": { "description": "Managing your organization > Community > User Invitation", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/User_Invitation/02r3000000mr000000/" }, "description": "An individual invitation to join a given group. The user can accept the invitation or decline the invitation. Invitations are currently only to join groups but may be extended in the future to allow for other targetTypes. Developers should design their applications so that targetTypes is checked and unknown targetTypes are ignored. Invitations are also currently only sent to usernames. This is determined by the type property of the invitation. In the future, other types of invitations may be introduced. Developers should design their applications to make sure they check type and ignore unknown types", "operationId": "getUserInvitation", "security": [ { "agol_oauth_implicit": [ "read:getUserInvitation" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/invitationId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getUserInvitation" } } } } }, "/sharing/rest/community/users/{userName}/invitations/{invitationId}/accept": { "x-swagger-router-controller": "acceptInvitation", "post": { "summary": "Accept Invitation", "externalDocs": { "description": "Managing your organization > Community > Accept Invitation", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Accept_Invitation/02r3000000m4000000/" }, "description": "When a group owner or an administrator invites a user to their group, it results in a user invitation. The invited user accepts the invitation using the Accept Invitation operation (POST only). This operation adds the invited user to the group, and the invitation is deleted. This operation also creates a notification for the user indicating that the user's invitation was accepted. Available only to authenticated users", "operationId": "acceptInvitation", "security": [ { "agol_oauth_implicit": [ "post:acceptInvitation" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/invitationId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/acceptInvitation" } } } } }, "/sharing/rest/community/users/{userName}/invitations/{invitationId}/decline": { "x-swagger-router-controller": "declineInvitation", "post": { "summary": "Decline Invitation", "externalDocs": { "description": "Managing your organization > Community > Decline Invitation", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Decline_Invitation/02r3000000m8000000/" }, "description": "When a group administrator invites a user to their group, it results in a group invitation. The invited user can decline the invitation using the Decline Invitation operation (POST only). The operation deletes the invitation and creates a notification for the user indicating that they declined the invitation. The invited user is not added to the group. Available only to authenticated users", "operationId": "declineInvitation", "security": [ { "agol_oauth_implicit": [ "post:declineInvitation" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/invitationId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/declineInvitation" } } } } }, "/sharing/rest/community/users/{userName}/notifications/{notificationId}": { "x-swagger-router-controller": "getNotification", "get": { "summary": "Notification", "externalDocs": { "description": "Managing your organization > Community > Notification", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Notification/02r30000006t000000/" }, "description": "An individual notification for the given user that can be of different types as described in the Notification types section below. Available only to the user recipient of the notification. In the JSON response for a notification, the data property will vary based on the notification type", "operationId": "getNotification", "security": [ { "agol_oauth_implicit": [ "read:getNotification" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/notificationId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getNotification" } } } } }, "/sharing/rest/community/users/{userName}/notifications": { "x-swagger-router-controller": "getNotifications", "get": { "summary": "Notifications", "externalDocs": { "description": "Managing your organization > Community > Notifications", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Notifications/02r30000006s000000/" }, "description": "The list of notifications available for the given user. These can have different types as described in the documentation for the Notification resource", "operationId": "getNotifications", "security": [ { "agol_oauth_implicit": [ "read:getNotifications" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getNotification" } } } } }, "/sharing/rest/community/users/{userName}/notifications/{notificationId}/delete": { "x-swagger-router-controller": "deleteNotification", "post": { "summary": "Delete Notification", "externalDocs": { "description": "Managing your organization > Community > Delete Notification", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Delete_Notification/02r3000000mv000000/" }, "description": "The Delete Notification operation (POST only) is available only to the user who receives the notification", "operationId": "deleteNotification", "security": [ { "agol_oauth_implicit": [ "post:deleteNotification" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/notificationId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/deleteNotification" } } } } }, "/sharing/rest/community/users/{userName}/update": { "x-swagger-router-controller": "updateUser", "post": { "summary": "Update User", "externalDocs": { "description": "Managing your organization > Community > Update User", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Update_User/02r3000000m0000000/" }, "description": "The Update User operation (POST only) modifies properties such as description, preferred view, tags, access, and thumbnail. The user name cannot be modified. For the 'ecas' identity provider, password, e-mail, and full name must be modified by editing your Esri Global Account. For the 'arcgis' identity provider, password, full name, security question, and security answer can be updated with Update User. Update User is available only to the user or to the administrator of the user's organization. Only the properties that are to be updated need to be specified in the request. Properties not specified will not be affected. ", "operationId": "updateUser", "security": [ { "agol_oauth_implicit": [ "post:updateUser" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/updateUser" } } } } }, "/sharing/rest/community/users/{userName}/tags": { "x-swagger-router-controller": "getUserTags", "get": { "summary": "User Tags", "externalDocs": { "description": "Managing your organization > Community > User Tags", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/User_Tags/02r3000000m9000000/" }, "description": "Users tag the content they publish in their portal via the add and update item calls. This resource lists all the tags used by the user along with the number of times the tags have been used", "operationId": "getUserTags", "security": [ { "agol_oauth_implicit": [ "read:getUserTags" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getUserTags" } } } } }, "/sharing/rest/content/groups/{groupId}": { "x-swagger-router-controller": "getGroupContent", "get": { "summary": "Group Content", "externalDocs": { "description": "Managing your organization > Content > Group Content", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Group_Content/02r300000081000000/" }, "description": "The group's content provides access to the items that are shared with the group. Group items are stored by reference and are not physically stored in a group. Rather, they are stored as links to the original item in the item resource (/content/items/). Available only to the users of the group and the administrator of the organization to which the group belongs, if any", "operationId": "getGroupContent", "security": [ { "agol_oauth_implicit": [ "read:getGroupContent" ] } ], "parameters": [ { "$ref": "#/parameters/groupId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getGroupContent" } } } } }, "/sharing/rest/content/items/{itemId}": { "x-swagger-router-controller": "getItem", "get": { "summary": "Item", "externalDocs": { "description": "Managing your organization > Portals > Item", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Item/02r30000007w000000/" }, "description": "An item (a unit of content) in the portal. Each item has a unique identifier and a well known URL that is independent of the user owning the item. An item can have associated binary or textual data that's available via the item data resource. For example, an item of type Map Package returns the actual bits corresponding to the map package via the item data resource. The numViews is incremented when an item is opened", "operationId": "getItem", "security": [ { "agol_oauth_implicit": [ "read:getItem" ] } ], "parameters": [ { "$ref": "#/parameters/itemId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getItem" } } } } }, "/sharing/rest/content/items/{itemId}/addComment": { "x-swagger-router-controller": "addComment", "post": { "summary": "Add Comment", "externalDocs": { "description": "Managing your organization > Content > Add Comment", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Add_Comment/02r300000090000000/" }, "description": "Adds a comment to an item (POST only). Available only to authenticated users who have access to the item", "operationId": "addComment", "security": [ { "agol_oauth_implicit": [ "post:addComment" ] } ], "parameters": [ { "$ref": "#/parameters/itemId" }, { "name": "comment", "in": "body", "description": "Text of the comment to be added", "required": true, "schema": { "type": "string" } }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/addComment" } } } } }, "/sharing/rest/content/items/{itemId}/comments": { "x-swagger-router-controller": "getItemComments", "get": { "summary": "Item Comments", "externalDocs": { "description": "Managing your organization > Content > Item Comments", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Item_Comments/02r300000088000000/" }, "description": "Lists all comments for an item", "operationId": "getItemComments", "security": [ { "agol_oauth_implicit": [ "read:getItemComments" ] } ], "parameters": [ { "$ref": "#/parameters/itemId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getItemComments" } } } } }, "/sharing/rest/content/items/{itemId}/comments/{commentId}": { "x-swagger-router-controller": "getItemComment", "get": { "summary": "Item Comment", "externalDocs": { "description": "Managing your organization > Content > Item Comment", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Item_Comment/02r300000091000000/" }, "description": "Gets details for a particular comment", "operationId": "getItemComment", "security": [ { "agol_oauth_implicit": [ "read:getItemComment" ] } ], "parameters": [ { "$ref": "#/parameters/itemId" }, { "$ref": "#/parameters/commentId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getItemComment" } } } } }, "/sharing/rest/content/items/{itemId}/groups": { "x-swagger-router-controller": "getItemGroups", "get": { "summary": "Groups", "externalDocs": { "description": "Managing your organization > Content > Groups", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Groups/02r30000009p000000/" }, "description": "Lists the groups of which the item is a part. Only shows the groups that the calling user can access", "operationId": "getItemGroups", "security": [ { "agol_oauth_implicit": [ "read:getItemGroups" ] } ], "parameters": [ { "$ref": "#/parameters/itemId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getItemGroups" } } } } }, "/sharing/rest/content/items/{itemId}/rating": { "x-swagger-router-controller": "getItemRating", "get": { "summary": "Item Rating", "externalDocs": { "description": "Managing your organization > Content > Item Rating", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Item_Rating/02r300000098000000/" }, "description": "Lists all comments for an item", "operationId": "getItemRating", "security": [ { "agol_oauth_implicit": [ "read:getItemRating" ] } ], "parameters": [ { "$ref": "#/parameters/itemId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getItemRating" } } } } }, "/sharing/rest/content/items/{itemId}/relatedItems": { "x-swagger-router-controller": "getRelatedItems", "get": { "summary": "Related Items", "externalDocs": { "description": "Managing your organization > Content > Related Items", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Related_Items/02r300000085000000/" }, "description": "Gets all the related items of a certain relationship type for that item. An optional direction can be specified if the direction of the relationship is ambiguous. Otherwise, the service will try to infer it", "operationId": "getRelatedItems", "security": [ { "agol_oauth_implicit": [ "read:getRelatedItems" ] } ], "parameters": [ { "$ref": "#/parameters/itemId" }, { "name": "relationshipType", "in": "query", "description": "The type of relationship between the two items. See Relationship types for a complete listing of types", "required": true, "type": "string", "pattern": "Map2Service|WMA2Code|Map2FeatureCollection|MobileApp2Code|Service2Data|Service2Service|Map2AppConfig|Item2Attachment|Item2Report|Listed2Provisioned" }, { "name": "direction", "in": "query", "description": "The direction of the relationship. Either forward (from origin -> destination) or reverse (from destination -> origin)", "required": true, "type": "string", "pattern": "forward|reverse" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getRelatedItems" } } } } }, "/sharing/rest/content/items/{itemId}/addPart": { "x-swagger-router-controller": "addItemPart", "post": { "summary": "Add Item Part", "externalDocs": { "description": "Managing your organization > Content > Add Item Part", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Add_Item_Part/02r300000094000000/" }, "description": "Add Item Part allows the caller to upload a file part when doing an add or update item operation in multipart mode. Each upload takes an integer part number that indicates the order of this part compared to others. Each part can be uploaded at any time, in any order, even simultaneously. Each file part must be uploaded in an HTTP multipart request pursuant to IETF RFC1867.", "operationId": "addItemPart", "security": [ { "agol_oauth_implicit": [ "post:addItemPart" ] } ], "parameters": [ { "$ref": "#/parameters/itemId" }, { "$ref": "#/parameters/partDetails" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/addItemPart" } } } } }, "/sharing/rest/content/items/{itemId}/addRating": { "x-swagger-router-controller": "addRating", "post": { "summary": "Add Rating", "externalDocs": { "description": "Managing your organization > Content > Add Rating", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Add_Rating/02r30000007v000000/" }, "description": "Adds a rating to an item to which you have access (POST only). Only one rating can be given to an item per user. If this call is made on a currently rated item, the new rating will overwrite the existing rating. A user cannot rate their own item. Available only to authenticated users", "operationId": "addRating", "security": [ { "agol_oauth_implicit": [ "post:addRating" ] } ], "parameters": [ { "$ref": "#/parameters/itemId" }, { "name": "rating", "in": "body", "description": "Rating to set for the item. Rating must be a floating point number between 1.0 and 5.0.", "required": true, "schema": { "type": "number", "minimum": 1, "maximum": 5 } }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/addRating" } } } } }, "/sharing/rest/content/items/{itemId}/comments/{commentId}/delete": { "x-swagger-router-controller": "deleteComment", "post": { "summary": "Delete Comment", "externalDocs": { "description": "Managing your organization > Content > Delete Comment", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Delete_Comment/02r300000072000000/" }, "description": "Deletes the particular comment (POST only). This functionality is available to authenticated users who originally created the comment and item owners on items that they own", "operationId": "deleteComment", "security": [ { "agol_oauth_implicit": [ "post:deleteComment" ] } ], "parameters": [ { "$ref": "#/parameters/itemId" }, { "$ref": "#/parameters/commentId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/deleteComment" } } } } }, "/sharing/rest/content/items/{userName}/addItem": { "x-swagger-router-controller": "addItem", "post": { "summary": "Add Item", "externalDocs": { "description": "Managing your organization > Content > Add Item", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Add_Item/02r30000008q000000/" }, "description": "The Add Item operation (POST only) is used to upload an item file, submit text content, or submit the item URL to the specified user folder depending on documented items and item types. This operation is available only to the specified user. The request to upload an item file must be a multipart request pursuant to IETF RFC1867. The request to submit text content or a URL can be a standard HTTP POST request. The user owning the folder automatically becomes the owner of the item. The item is flagged as private (that is, not shared with any group) by default. This can be changed using the Share Item operation. The added item is available to everyone it's shared with at the item resource. The item is also available to the owner at the user item resource, which supports operations to update, delete, move, share, and unshare items. The addItem operation allows users to optionally create a relationship and share an item in one call. See Add Relationship for parameter information. The same rules apply, with the following exceptions: \nIf you specify an originItemId, the new item is added as the destination item. \nIf you specify a destinationitemId, the new item is added as the origin item. \nIf you specify both, an error is thrown. \nThe relationship creation is done after the item is created. \nIf the item doesn’t add correctly, no relationship is created. \nIf the item adds correctly, but the relationship fails (that is, bad relationship type, invalid origin or destination item, and so on), the item is deleted. \nThe destination item will inherit all the sharing permissions of the origin item. \nThe filename or URL used for an item must be unique within the particular user's folder.", "operationId": "addItem", "security": [ { "agol_oauth_implicit": [ "post:addItem" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/itemDetails" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/addItem" } } } } }, "/sharing/rest/content/users/{userName}": { "x-swagger-router-controller": "getUserContent", "get": { "summary": "User Content", "externalDocs": { "description": "Managing your organization > Content > User Content", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/User_Content/02r30000007p000000/" }, "description": "The user's content are items either in the home folder for the user, e.g. /content/users/, or in a subfolder of the home folder with the given folder ID. Multilevel folders are not supported. You can also see the Quick reference topic for additional information on this. Items in a folder are stored by reference and are not physically in a folder. Rather, they're stored as links to the original item, e.g. /content/items/", "operationId": "getUserContent", "security": [ { "agol_oauth_implicit": [ "read:getUserContent" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getUserContent" } } } } }, "/sharing/rest/content/users/{userName}/createFolder": { "x-swagger-router-controller": "createFolder", "post": { "summary": "Create Folder", "externalDocs": { "description": "Managing your organization > Content > Create Folder", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Folder/02r300000074000000/" }, "description": "Creates a folder in which items can be placed. Folders are only visible to a user and solely used for organizing content within that user's content space. The create user folder operation (POST only) is available only on the user's root folder. Multilevel folders are not supported. The user provides the title for the folder, which must be unique to that user. The folder ID is generated by the system. ", "operationId": "createFolder", "security": [ { "agol_oauth_implicit": [ "post:createFolder" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "name": "title", "in": "body", "description": "The folder title. Two folders that belong to the same user cannot have the same title.", "required": true, "schema": { "type": "string" } }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/createFolder" } } } } }, "/sharing/rest/content/users/{userName}/createService": { "x-swagger-router-controller": "createService", "post": { "summary": "Create Service", "externalDocs": { "description": "Managing your organization > Content > Create Service", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Service/02r30000027r000000/" }, "description": "The Create Service operation (POST only) allows users to create a hosted feature service. You can use the API to create an empty hosted feaure service from feature service metadata JSON", "operationId": "createService", "security": [ { "agol_oauth_implicit": [ "post:createService" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/serviceDetails" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/createService" } } } } }, "/sharing/rest/content/users/{userName}/{folderId}/delete": { "x-swagger-router-controller": "deleteFolder", "post": { "summary": "Delete Folder", "externalDocs": { "description": "Managing your organization > Content > Delete Folder", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Delete_Folder/02r30000008m000000/" }, "description": "The delete user folder operation (POST only) is available only on the user's non-root folders. The user's root folder cannot be deleted. Deleting a folder also deletes all items that it contains (both the items and the links are removed)", "operationId": "deleteFolder", "security": [ { "agol_oauth_implicit": [ "post:deleteFolder" ] } ], "parameters": [ { "$ref": "#/parameters/userName" }, { "$ref": "#/parameters/folderId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/deleteFolder" } } } } }, "/sharing/rest/generateToken": { "x-swagger-router-controller": "generateToken", "post": { "summary": "Generate Token", "externalDocs": { "description": "Managing your organization > Generate Token", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Generate_Token/02r3000000m5000000/" }, "description": "This operation generates an access token in exchange for user credentials that can be used by clients when working with the ArcGIS Portal API. The call is only allowed over HTTPS and must be a POST. The access token represents the authenticated user for a certain amount of time to all other API functionality. Developers using the API must take care to protect the token against malicious use just as they would the original credentials, and they must be prepared to renew the token. Expired tokens will be rejected by the server. From version 2.1, the generateToken operation also supports generation of a server-token in exchange for a portal token. This server-token is required for clients to access resources from a federated server. The parameters token and serverUrl are required to generate a server-token. See the descriptions of these parameters below for additional information. Organizations that choose to implement higher levels of security for their organizations can set the allSSL setting to true for their organization or portal. The effect of setting allSSL to true is that all non-HTTPS requests for resources belonging to the organization will be rejected. Setting allSSL to true guarantees that all transmissions of access tokens as well as data between clients and servers is over a secure encrypted channel and provides protection to tokens and data in transit. When generateToken is called for a user in such an organization, it returns a response property of ssl=true, and the token must always be passed back via HTTPS to the portal.", "operationId": "generateToken", "security": [ ], "parameters": [ { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/tokenDetails" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/generateToken" } } } } }, "/sharing/rest/portals/languages": { "x-swagger-router-controller": "getPortalLanguages", "get": { "summary": "Languages", "externalDocs": { "description": "Managing your organization > Portals > Languages", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Languages/02r300000095000000/" }, "description": "Lists the available languages", "operationId": "getPortalLanguages", "security": [ ], "parameters": [ { "$ref": "#/parameters/f" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getPortalLanguages" } } } } }, "/sharing/rest/portals/{portalId}/servers/{serverId}": { "x-swagger-router-controller": "getPortalServer", "get": { "summary": "Server", "externalDocs": { "description": "Managing your organization > Portals > Server", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Server/02r300000219000000/" }, "description": "This resource represents an ArcGIS Server site that has been federated with the portal. This resource is not applicable to ArcGIS Online; it is only applicable to Portal for ArcGIS", "operationId": "getPortalServer", "security": [ { "agol_oauth_implicit": [ "read:getPortalServer" ] } ], "parameters": [ { "$ref": "#/parameters/portalId" }, { "$ref": "#/parameters/serverId" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getPortalServer" } } } } }, "/sharing/rest/portals/regions": { "x-swagger-router-controller": "getPortalRegions", "get": { "summary": "Regions", "externalDocs": { "description": "Managing your organization > Portals > Regions", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Regions/02r300000099000000/" }, "description": "Lists the available regions", "operationId": "getPortalRegions", "security": [ ], "parameters": [ { "$ref": "#/parameters/f" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getPortalRegions" } } } } }, "/sharing/rest/portals/resources": { "x-swagger-router-controller": "getPortalResources", "get": { "summary": "Resources", "externalDocs": { "description": "Managing your organization > Portals > Resources", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Resources/02r30000009r000000/" }, "description": "Resources lists all file resources for the organization. The start and num paging parameters are supported.", "operationId": "getPortalResources", "security": [ { "agol_oauth_implicit": [ "read:getPortalResources" ] } ], "parameters": [ { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" }, { "$ref": "#/parameters/start" }, { "$ref": "#/parameters/num" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getPortalResources" } } } } }, "/sharing/rest/portals/self": { "x-swagger-router-controller": "getPortalSelf", "get": { "summary": "Portal Self", "externalDocs": { "description": "Managing your organization > Portals > Self", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Portal_Self/02r3000001m7000000/" }, "description": "The Portal Self resource is used to return the view of the portal as seen by the current user, anonymous or logged in. It includes information such as the name, logo, featured items, and supported protocols (HTTP vs. HTTPS) for this portal. If the user is not logged in, this call will return the default view of the portal. If the user is logged in, the view of the returned portal will be specific to the organization to which the user belongs. The default view of the portal is dependent on the culture of the user, which is obtained from the user's profile. A parameter to pass in the locale/culture is available for anonymous users.", "operationId": "getPortalSelf", "security": [ { "agol_oauth_implicit": [ "read:getPortalSelf" ] } ], "parameters": [ { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getPortalSelf" } } } } }, "/sharing/rest/portals/servers": { "x-swagger-router-controller": "getPortalServers", "get": { "summary": "Servers", "externalDocs": { "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Servers/02r300000218000000/", "description": "Managing your organization > Portals > Servers" }, "description": "This resource lists the ArcGIS Server sites that have been federated with the portal. This resource is not applicable to ArcGIS Online; it is only applicable to Portal for ArcGIS", "operationId": "getPortalServers", "security": [ { "agol_oauth_implicit": [ "read:getPortalServers" ] } ], "parameters": [ { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getPortalServers" } } } } }, "/sharing/rest/portals/users": { "x-swagger-router-controller": "getPortalUsers", "get": { "summary": "Users", "externalDocs": { "description": "Managing your organization > Portals > Users", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Users/02r30000009q000000/" }, "description": "Lists all the members of the organization. The start and num paging parameters are supported", "operationId": "getPortalUsers", "security": [ { "agol_oauth_implicit": [ "read:getPortalUsers" ] } ], "parameters": [ { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" }, { "$ref": "#/parameters/start" }, { "$ref": "#/parameters/num" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/getUsers" } } } } }, "/sharing/rest/search": { "x-swagger-router-controller": "search", "get": { "summary": "Search", "externalDocs": { "description": "Managing your organization > Search", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Root/02r30000009t000000/" }, "description": "The Root resource only returns the version of the containing portal. It acts as a root to its child resources and operations. To obtain descriptive information about this portal including its name, logo, featured items, and supported protocols (HTTP vs HTTPS), access the Self resource under Portals.", "operationId": "search", "security": [ { "agol_oauth_implicit": [ "read:search" ] } ], "parameters": [ { "$ref": "#/parameters/q" }, { "$ref": "#/parameters/bbox" }, { "$ref": "#/parameters/start" }, { "$ref": "#/parameters/num" }, { "$ref": "#/parameters/sortField" }, { "$ref": "#/parameters/sortOrder" }, { "$ref": "#/parameters/f" }, { "$ref": "#/parameters/token" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/search" } } } } }, "/swagger": { "x-swagger-pipe": "swagger_raw" } }, "definitions": { "acceptGroupApplication": { "type": "object", "description": "When a user applies to join a group, a group application is created. Group administrators choose to accept this application using the Accept Group Application operation (POST only). This operation adds the applying user to the group then deletes the application. This operation also creates a notification for the user indicating that the user's group application was accepted. Available only to group owners and admins. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Accept_Group_Application/02r300000069000000/", "title": "acceptGroupApplication", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "username": { "type": "string", "description": "The username of the user being accepted into the group" }, "groupId": { "type": "string", "description": "The group ID of the group that accepted the user's application" } }, "required": [ "success", "username", "groupId" ] }, "acceptInvitation": { "type": "object", "description": "When a group owner or an administrator invites a user to their group, it results in a user invitation. The invited user accepts the invitation using the Accept Invitation operation (POST only). This operation adds the invited user to the group, and the invitation is deleted. This operation also creates a notification for the user indicating that the user's invitation was accepted. Available only to authenticated users. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Accept_Invitation/02r3000000m4000000/", "title": "acceptInvitation", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "id": { "type": "string", "description": "The ID of the accepted invitation" }, "username": { "type": "string", "description": "The username of the user who accepted the invitation" }, "groupId": { "type": "string", "description": "If the targetType of the invitation is 'group,' the groupId of the joined group is returned" } }, "required": [ "success", "id", "username", "groupId" ] }, "addComment": { "type": "object", "description": "Adds a comment to an item (POST only). Available only to authenticated users who have access to the item. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Add_Comment/02r300000090000000/", "title": "addComment", "properties": { "success": { "type": "boolean", "description": "Set to true if the comment was posted successfully" }, "commentId": { "type": "string", "description": "The ID of the comment submitted" } }, "required": [ "success", "commentId" ] }, "addItem": { "type": "object", "description": "The Add Item operation (POST only) is used to upload an item file, submit text content, or submit the item URL to the specified user folder depending on documented items and item types. This operation is available only to the specified user. The request to upload an item file must be a multipart request pursuant to IETF RFC1867. The request to submit text content or a URL can be a standard HTTP POST request. The user owning the folder automatically becomes the owner of the item. The item is flagged as private (that is, not shared with any group) by default. This can be changed using the Share Item operation. The added item is available to everyone it's shared with at the item resource. The item is also available to the owner at the user item resource, which supports operations to update, delete, move, share, and unshare items. The addItem operation allows users to optionally create a relationship and share an item in one call. See Add Relationship for parameter information. The same rules apply, with the following exceptions: If you specify an originItemId, the new item is added as the destination item. If you specify a destinationitemId, the new item is added as the origin item. If you specify both, an error is thrown. The relationship creation is done after the item is created. If the item doesn’t add correctly, no relationship is created. If the item adds correctly, but the relationship fails (that is, bad relationship type, invalid origin or destination item, and so on), the item is deleted. The destination item will inherit all the sharing permissions of the origin item. The filename or URL used for an item must be unique within the particular user's folder. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Add_Item/02r30000008q000000/", "title": "addItem", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "id": { "type": "string", "description": "The ID of the created item" }, "folder": { "type": "string", "description": "The folder in which the item was created" } }, "required": [ "success", "id", "folder" ] }, "addItemPart": { "type": "object", "description": "Add Item Part allows the caller to upload a file part when doing an add or update item operation in multipart mode. Each upload takes an integer part number that indicates the order of this part compared to others. Each part can be uploaded at any time, in any order, even simultaneously. Each file part must be uploaded in an HTTP multipart request pursuant to IETF RFC1867. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Add_Item_Part/02r300000094000000/", "title": "addItemPart", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "id": { "type": "string", "description": "The ID of the item containing part" } }, "required": [ "success", "id" ] }, "addRating": { "type": "object", "description": "Adds a rating to an item to which you have access (POST only). Only one rating can be given to an item per user. If this call is made on a currently rated item, the new rating will overwrite the existing rating. A user cannot rate their own item. Available only to authenticated users. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Add_Rating/02r30000007v000000/", "title": "addRating", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" } }, "required": [ "success" ] }, "addUsersToGroup": { "type": "object", "description": "The operation to Add Users to Group (POST only) is available only to the group administrators, including the owner, and to the administrator of the organization if the user is a member. Both users and admins can be added using this operation. This is useful if you wish to add users directly within an organization without requiring them to accept an invitation. For example, a member of an organization can add only other organization members but not public users. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Add_Users_to_Group/02r3000002mr000000/", "title": "addUsersToGroup", "properties": { "notAdded": { "type": "array", "description": "A JSON array of usernames that were not added", "minItems": 0, "items": { "type": "string" }, "uniqueItems": true } }, "required": [ "notAdded" ] }, "createFolder": { "type": "object", "description": "Creates a folder in which items can be placed. Folders are only visible to a user and solely used for organizing content within that user's content space. The create user folder operation (POST only) is available only on the user's root folder. Multilevel folders are not supported. The user provides the title for the folder, which must be unique to that user. The folder ID is generated by the system. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Folder/02r300000074000000/", "title": "createFolder", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "folder": { "type": "object", "description": "Folder JSON object that describes the folder just created", "properties": { "username": { "type": "string", "description": "The username of the person who created the folder" }, "id": { "type": "string", "description": "The id of the folder" }, "title": { "type": "string", "description": "The title of the folder" } }, "required": [ "username", "id", "title" ] } }, "required": [ "success", "folder" ] }, "createGroup": { "type": "object", "description": "The Create Group operation (POST only) creates a new group in the Portal community. Only authenticated users can create groups. The user who creates the group automatically becomes the owner of the group. The owner of the group is automatically an administrator of the group. The calling user provides the title for the group, while the group ID is generated by the system. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Group/02r30000009w000000/", "title": "createGroup", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "group": { "type": "object", "description": "The JSON group object representing the created group. See the Group response properties for the properties returned", "$ref": "#/definitions/getGroup" } }, "required": [ "success", "group" ] }, "createService": { "type": "object", "description": "The Create Service operation (POST only) allows users to create a hosted feature service. You can use the API to create an empty hosted feaure service from feature service metadata JSON. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Service/02r30000027r000000/", "title": "createService", "properties": { "encodedServiceURL": { "type": "string", "description": "The encoded URL to the hosted service" }, "itemId": { "type": "string", "description": "The unique ID for this item" }, "name": { "type": "string", "description": "Name of the service item" }, "serviceItemId": { "type": "string", "description": "The ID of the new service item" }, "serviceurl": { "type": "string", "description": "The URL to the hosted service" }, "size": { "type": "integer", "description": "The size of the item", "minimum": -1, "maximum": 10000000 }, "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "type": { "type": "string", "description": "The type of service created", "enum": [ "Feature Service" ] }, "description": { "type": [ "string", "null" ], "description": "The description of the new service item" }, "tags": { "type": "array", "description": "The tags used to describe the service item", "items": { "type": "string" }, "uniqueItems": true }, "snippet": { "type": [ "string", "null" ], "description": "A short summary description of the item" } }, "required": [ "encodedServiceURL", "itemId", "name", "serviceItemId", "serviceurl", "size", "success", "type", "description", "tags", "snippet" ] }, "declineGroupApplication": { "type": "object", "description": "When a user applies to join a group, a group application is created. Group administrators can decline this application using the Decline Group Application operation (POST only). This operation deletes the application and creates a notification for the user indicating that the user's group application was declined. The applying user will not be added to the group. Available only to group owners and admins. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Decline_Group_Application/02r30000006q000000/", "title": "declineGroupApplication", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "username": { "type": "string", "description": "The username of the user being declined from joining the group" }, "groupId": { "type": "string", "description": "The group ID of the group that declined the user" } }, "required": [ "success", "username", "groupId" ] }, "declineInvitation": { "type": "object", "description": "When a group administrator invites a user to their group, it results in a group invitation. The invited user can decline the invitation using the Decline Invitation operation (POST only). The operation deletes the invitation and creates a notification for the user indicating that they declined the invitation. The invited user is not added to the group. Available only to authenticated users. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Decline_Invitation/02r3000000m8000000/", "title": "declineInvitation", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "id": { "type": "string", "description": "The ID of the declined invitation" }, "username": { "type": "string", "description": "The username of the user who declined the invitation" }, "groupId": { "type": "string", "description": "If the targetType of the invitation is 'group,' the groupId of the group declined is returned" } }, "required": [ "success", "id", "username", "groupId" ] }, "deleteComment": { "type": "object", "description": "Deletes the particular comment (POST only). This functionality is available to authenticated users who originally created the comment and item owners on items that they own. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Delete_Comment/02r300000072000000/", "title": "deleteComment", "properties": { "success": { "type": "boolean", "description": "Set to true if the comment was deleted successfully" }, "commentId": { "type": "string", "description": "The ID of the deleted submitted" } }, "required": [ "success", "commentId" ] }, "deleteFolder": { "type": "object", "description": "The delete user folder operation (POST only) is available only on the user's non-root folders. The user's root folder cannot be deleted. Deleting a folder also deletes all items that it contains (both the items and the links are removed). http://resources.arcgis.com/en/help/arcgis-rest-api/#/Delete_Folder/02r30000008m000000/", "title": "deleteFolder", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "folder": { "type": "object", "description": "Folder JSON object that describes the folder just deleted", "properties": { "username": { "type": "string", "description": "The username of the person who deleted the folder" }, "id": { "type": "string", "description": "The id of the folder" }, "title": { "type": "string", "description": "The title of the folder" } }, "required": [ "username", "id", "title" ] } }, "required": [ "success", "folder" ] }, "deleteGroup": { "type": "object", "description": "The Delete Group operation (POST only) is available only to the group administrators or to the administrator of the organization to which the owner belongs. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Delete_Group/02r300000070000000/", "title": "deleteGroup", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "groupId": { "type": "string", "description": "The ID of the deleted group" } }, "required": [ "success", "groupId" ] }, "deleteNotification": { "type": "object", "description": "The Delete Notification operation (POST only) is available only to the user who receives the notification. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Delete_Notification/02r3000000mv000000/", "title": "deleteNotification", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "notificationId": { "type": "string", "description": "The ID of the deleted notification" } }, "required": [ "success", "notificationId" ] }, "deleteUser": { "type": "object", "description": "The Delete User operation (POST only) is available only to the user in question or to the administrator of the user's organization. If deleting a user who is part of an organization, their content and groups must be transferred to another member or deleted prior to deleting the user. If the user is not part of an organization, all content and groups of the user must first be deleted. Deleting a user whose identity provider is the Esri Global Account will not delete the user from the Esri Global Account system. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Delete_User/02r3000000mw000000/", "title": "deleteUser", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "username": { "type": "string", "description": "The username of the deleted user" } }, "required": [ "success", "username" ] }, "disableUser": { "type": "object", "description": "The Disable operation (POST only) disables login access for the user. It is only available to the administrator of the organization. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Disable/02r30000026m000000/", "title": "disableUser", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "user": { "type": "string", "description": "The username of the user to disable" } }, "required": [ "success", "user" ] }, "enableUser": { "type": "object", "description": "The Enable operation (POST only) enables login access for the user. It is only available to the administrator of the organization. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Enable/02r30000026p000000/", "title": "enableUser", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "user": { "type": "string", "description": "The username of the user to enable" } }, "required": [ "success", "user" ] }, "generateToken": { "type": "object", "description": "This operation generates an access token in exchange for user credentials that can be used by clients when working with the ArcGIS Portal API. The call is only allowed over HTTPS and must be a POST. The access token represents the authenticated user for a certain amount of time to all other API functionality. Developers using the API must take care to protect the token against malicious use just as they would the original credentials, and they must be prepared to renew the token. Expired tokens will be rejected by the server. From version 2.1, the generateToken operation also supports generation of a server-token in exchange for a portal token. This server-token is required for clients to access resources from a federated server. The parameters token and serverUrl are required to generate a server-token. See the descriptions of these parameters below for additional information. Organizations that choose to implement higher levels of security for their organizations can set the allSSL setting to true for their organization or portal. The effect of setting allSSL to true is that all non-HTTPS requests for resources belonging to the organization will be rejected. Setting allSSL to true guarantees that all transmissions of access tokens as well as data between clients and servers is over a secure encrypted channel and provides protection to tokens and data in transit. When generateToken is called for a user in such an organization, it returns a response property of ssl=true, and the token must always be passed back via HTTPS to the portal. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Generate_Token/02r3000000m5000000/", "title": "generateToken", "properties": { "token": { "type": "string", "description": "The generated token" }, "expires": { "type": "integer", "description": "The expiration time of the token in milliseconds since Jan. 1, 1970 (UTC)" }, "ssl": { "type": "boolean", "description": "True if the tokem must always pass over ssl" } }, "required": [ "token", "expires", "ssl" ] }, "getCommunity": { "type": "object", "description": "This resource allows discovery of the current authenticated user identified by the token. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Self/02r300000079000000/", "title": "getCommunity", "properties": { "user": { "type": "object", "description": "A user resource representing a registered user of the portal", "$ref": "#/definitions/getUser" } }, "required": [ "user" ] }, "getCoordinate": { "type": "array", "description": "Coordinate", "title": "coordinate", "minLength": 2, "maxLength": 2, "items": [ { "title": "XCoordinate", "type": "integer" }, { "title": "YCoordinate", "type": "integer" } ] }, "getExtent": { "type": [ "array", "null" ], "description": "The bounding rectangle of the item. Should always be in WGS84", "title": "extent", "minLength": 2, "maxLength": 2, "items": { "type": "object", "$ref": "#/definitions/getCoordinate" } }, "getFolder": { "type": [ "object", "null" ], "description": "The current folder listing the user's items", "title": "folder", "additionalProperties": false, "properties": { "username": { "type": "string", "description": "The folder's owner." }, "id": { "type": "string", "description": "The folder ID." }, "title": { "type": "string", "description": "The folder Name." }, "created": { "type": "integer", "description": "The date the folder was created. Shown in UNIX time." } }, "required": [ "created", "id", "title", "username" ] }, "getGroup": { "type": "object", "description": "The Group resource represents a group within the portal. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Group/02r30000006m000000/", "title": "group", "properties": { "id": { "type": "string", "description": "The given group ID" }, "title": { "type": "string", "description": "The title of the group. This is the name that is displayed to users and by which they refer to the group. Every group must have a title, and it must be unique for a user." }, "isInvitationOnly": { "type": "boolean", "description": "If this is set to true, users will not be able to apply to join the group" }, "owner": { "type": "string", "description": "The owner username of the group" }, "description": { "type": "string", "description": "The group description" }, "snippet": { "type": "string", "description": "The group summary" }, "tags": { "type": "array", "description": "User-defined tags that describe the group", "items": { "type": "string" }, "uniqueItems": true }, "phone": { "type": "string", "description": "The contact information for the group" }, "sortField": { "type": "string", "description": "The sorted field" }, "sortOrder": { "type": "string", "description": "The sort order, either descending or ascending", "enum": [ "asc", "desc" ] }, "isViewOnly": { "type": "boolean", "description": "Boolean value indicating whether the results are only for viewing" }, "isFav": { "type": "boolean", "description": "Boolean value indicating whether marked in favorites" }, "thumbnail": { "type": [ "string", "null" ], "description": "The URL to the thumbnail used for the group. All group thumbnails are relative to the URL: http:///groups//info" }, "created": { "type": "integer", "description": "The date the group was created. Shown in UNIX time in milliseconds" }, "modified": { "type": "integer", "description": "The date the group was last modified. Shown in UNIX time in milliseconds" }, "access": { "type": "string", "description": "The access privileges of the group that determine who can see and access the group. Can be: private, org, or public", "enum": [ "private", "org", "public" ] }, "userMembership": { "type": "object", "description": "If the request is made by an authenticated user, a JSON object is returned containing information about the user's access to the group. This includes the username of the calling user, the memberType, which specifies the type of membership the user has in the group (owner, member, admin, none), and the applications (number of requests to join the group) count available to admins and owners", "properties": { "username": { "type": "string", "description": "Username of the calling user" }, "memberType": { "type": "string", "description": "Specifies the type of membership the user has in the group (owner, member, admin, none)", "enum": [ "owner", "member", "admin", "none" ] }, "applications": { "type": "integer", "description": "Number of requests to join the group available to admins and owners." } }, "required": [ "username", "memberType" ] } }, "required": [ "id", "title", "isInvitationOnly", "owner", "description", "snippet", "tags", "phone", "sortField", "sortOrder", "isViewOnly", "isFav", "thumbnail", "created", "modified", "access" ] }, "getGroupApplication": { "type": "object", "description": "When an individual user applies to join a group, a group application is created. The group administrators can accept or decline the application. Available only to the group administrators and the administrator of the organization if the group belongs to an organization. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Group_Application/02r30000006r000000/", "title": "groupApplication", "properties": { "username": { "type": "string", "description": "The username of the user applying to join the group" }, "fullname": { "type": "string", "description": "The full name of the user applying to join the group" }, "received": { "type": "integer", "description": "The date the application was received in UNIX time in milliseconds" } }, "required": [ "fullname", "received", "username" ] }, "getGroupApplications": { "type": "object", "description": "Lists the group applications for the given group. Available to administrators of the group or administrators of an organization if the group is part of one. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Group_Applications/02r300000068000000/", "title": "groupApplications", "properties": { "applications": { "type": "array", "description": "A JSON array of application objects. See Group Application for property information", "minLength": 0, "items": { "$ref": "#/definitions/getGroupApplication" } } }, "required": [ "applications" ] }, "getGroupContent": { "type": "object", "description": "The group's content provides access to the items that are shared with the group. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Group_Content/02r300000081000000/", "title": "groupContent", "properties": { "items": { "type": "array", "description": "A JSON array of item objects. See Item for response properties for more details", "minLength": 0, "items": { "$ref": "#/definitions/getItem" } } }, "required": [ "items" ] }, "getGroupUsers": { "type": "object", "description": "Lists the users, owner, and administrators of a given group. Only available to members or administrators of the group http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Group_Users/02r30000006p000000/", "title": "groupUsers", "properties": { "owner": { "type": "string", "description": "The username of the owner of the group" }, "admins": { "type": "array", "description": "A JSON array containing the usernames of the administrators of the group", "minLength": 0, "items": { "type": "string" } }, "users": { "type": "array", "description": "A JSON array containing the usernames of the members of the group", "minLength": 0, "items": { "type": "string" } } }, "required": [ "owner", "admins", "users" ] }, "getItem": { "type": "object", "description": "An item (a unit of content) in the portal. Each item has a unique identifier and a well known URL that is independent of the user owning the item. An item can have associated binary or textual data that's available via the item data resource. For example, an item of type Map Package returns the actual bits corresponding to the map package via the item data resource. The numViews is incremented when an item is opened. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Item/02r30000007w000000/", "title": "item", "properties": { "id": { "type": "string", "description": "The unique ID for this item" }, "owner": { "type": "string", "description": "The username of the user who owns this item" }, "created": { "type": "integer", "description": "The date the folder was created. Shown in UNIX time" }, "modified": { "type": "integer", "description": "The date the folder was last modified. Shown in UNIX time" }, "guid": { "type": [ "string", "null" ], "description": "Unique global ID" }, "name": { "type": [ "string", "null" ], "description": "The file name of the item for file types. Read-only" }, "title": { "type": "string", "description": "The title of the item. This is the name that's displayed to users and by which they refer to the item. Every item must have a title" }, "type": { "type": "string", "description": "The GIS content type of this item. Example types include Web Map, Map Service, Shapefile, and Web Mapping Application. See the overview section of Items and item types to get an understanding of the item type hierarchy", "enum": [ "Web Map", "CityEngine Web Scene", "Web Scene", "Pro Map", "Feature Service", "Map Service", "Image Service", "KML", "WMS", "Feature Collection", "Feature Collection Template", "Geodata Service", "Globe Service", "Geometry Service", "Geocoding Service", "Network Analysis Service", "Geoprocessing Service", "Workflow Manager Service", "Web Mapping Application", "Mobile Application", "Code Attachment", "Operations Dashboard Add In", "Operation View", "Operations Dashboard Extension", "Native Application", "Native Application Template", "Native Application Installer", "Symbol Set", "Color Set", "Shapefile", "File geodatabase", "CSV", "CAD Drawing", "Service Definition", "Document Link", "Microsoft Word", "Microsoft Powerpoint", "Microsoft Excel", "PDF", "Image", "Visio Document", "iWork Keynote", "iWork Pages", "iWork Numbers", "Map Document", "Map Package", "Mobile Basemap Package", "Tile Package", "Project Package", "Task File", "ArcPad Package", "Explorer Map", "Globe Document", "Scene Document", "Published Map", "Map Template", "Windows Mobile Package", "Layout", "Project Template", "Layer", "Layer Package", "Explorer Layer", "Desktop Style", "Geoprocessing Package", "Geoprocessing Package (Pro Version)", "Geoprocessing Sample", "Locator Package", "Rule Package", "Raster function template", "Workflow Manager Package", "Desktop Application", "Desktop Application Template", "Code Sample", "Desktop Add In", "Explorer Add In" ], "pattern": "Web Map|CityEngine Web Scene|Web Scene|Pro Map|Feature Service|Map Service|Image Service|KML|WMS|Feature Collection|Feature Collection Template|Geodata Service|Globe Service|Geometry Service|Geocoding Service|Network Analysis Service|Geoprocessing Service|Workflow Manager Service|Web Mapping Application|Mobile Application|Code Attachment|Operations Dashboard Add In|Operation View|Operations Dashboard Extension|Native Application|Native Application Template|Native Application Installer|Symbol Set|Color Set|Shapefile|File geodatabase|CSV|CAD Drawing|Service Definition|Document Link|Microsoft Word|Microsoft Powerpoint|Microsoft Excel|PDF|Image|Visio Document|iWork Keynote|iWork Pages|iWork Numbers|Map Document|Map Package|Mobile Basemap Package|Tile Package|Project Package|Task File|ArcPad Package|Explorer Map|Globe Document|Scene Document|Published Map|Map Template|Windows Mobile Package|Layout|Project Template|Layer|Layer Package|Explorer Layer|Desktop Style|Geoprocessing Package|Geoprocessing Package (Pro Version)|Geoprocessing Sample|Locator Package|Rule Package|Raster function template|Workflow Manager Package|Desktop Application|Desktop Application Template|Code Sample|Desktop Add In|Explorer Add In" }, "typeKeywords": { "type": "array", "description": "A set of keywords that further describes the type of this item. Each item is tagged with a set of type keywords that are derived based on its primary type", "items": { "type": "string" }, "uniqueItems": true }, "description": { "type": [ "string", "null" ], "description": "Item's description" }, "tags": { "type": "array", "description": "User defined tags that describe the item", "items": { "type": "string" }, "uniqueItems": true }, "snippet": { "type": [ "string", "null" ], "description": "A short summary description of the item" }, "thumbnail": { "type": [ "string", "null" ], "description": "The URL to the thumbnail used for the item. Relative to Item's URL" }, "largeThumbnail": { "type": [ "string", "null" ], "description": "Primarily applies to thumbnails associated with an application. The URL to the thumbnail used for the application. Relative to Item's URL" }, "banner": { "type": [ "string", "null" ], "description": "Primarily applies to the banner associated with an application. The URL to the banner used for the application. Relative to Item's URL" }, "screenshots": { "type": "array", "description": "Primarily applies to screenshots associated with an application. The URL to the screenshots used for the application", "items": { "type": "string" } }, "extent": { "$ref": "#/definitions/getExtent" }, "spatialReference": { "type": [ "string", "null" ], "description": "The coordinate system of the item" }, "accessInformation": { "type": [ "string", "null" ], "description": "Information on the source of the item and its copyright status" }, "licenseInfo": { "type": [ "string", "null" ], "description": "Any license information or restrictions" }, "culture": { "type": "string", "description": "The item locale information (language and country)" }, "languages": { "type": "array", "description": "Primarily applies to languages associated with the application", "items": { "type": "string" } }, "url": { "type": [ "string", "null" ], "description": "The URL for the resource represented by the item. Applies only to items that represent web-accessible resources such as map services", "format": "uri" }, "access": { "type": "string", "description": "Indicates the level of access to this item: private, shared, org, or public", "enum": [ "private", "shared", "org", "public" ], "pattern": "private|shared|org|public" }, "size": { "type": "integer", "description": "File size" }, "commentsEnabled": { "type": "boolean", "description": "Indicates if comments are allowed on the item" }, "numComments": { "type": "integer", "description": "Number of comments on this item" }, "numRatings": { "type": "integer", "description": "Number of ratings for this item" }, "avgRating": { "type": "number", "description": "Average rating" }, "numViews": { "type": "integer", "description": "Total number of views for this item" }, "industries": { "type": "array", "description": "Primarily applies to industries associated with the application", "items": { "type": "string" } }, "listed": { "type": "boolean", "description": "If true, the item is listed in the marketplace" }, "ownerFolder": { "type": "string", "description": "The ID of the folder in which the owner has stored the item. The property is only returned to the item owner or the org admin" }, "protected": { "type": "boolean", "description": "Protects the item from deletion. false is the default" } }, "required": [ "id", "owner", "created", "modified", "name", "title", "type", "typeKeywords", "description", "tags", "snippet", "thumbnail", "extent", "spatialReference", "accessInformation", "licenseInfo", "culture", "url", "access", "size", "numComments", "numRatings", "numViews", "avgRating" ] }, "getItemComment": { "type": "object", "description": "Gets details for a particular comment. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Item_Comment/02r300000091000000/", "title": "comment", "properties": { "id": { "type": "string", "description": "The ID of the comment" }, "owner": { "type": "string", "description": "The username of the user who submitted the comment" }, "created": { "type": "integer", "description": "The date and time the comment was created. Shown in UNIX time" }, "comment": { "type": "string", "description": "The comment text" } }, "required": [ "id", "owner", "created", "comment" ] }, "getItemComments": { "type": "object", "description": "Lists all comments for an item. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Item_Comments/02r300000088000000/", "title": "comments", "properties": { "comments": { "type": "array", "description": "A JSON array of comment objects. See the response properties for Comment for details", "minLength": 0, "items": { "$ref": "#/definitions/getItemComment" } } }, "required": [ "comments" ] }, "getItemGroups": { "type": "object", "description": "Lists the groups of which the item is a part. Only shows the groups that the calling user can access http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Groups/02r30000009p000000/", "title": "groups", "properties": { "admin": { "type": "array", "description": "Groups which user is an administrator. This is a JSON Array of group objects. See Group for possible response properties", "minLength": 0, "items": { "$ref": "#/definitions/getGroup" } }, "member": { "type": "array", "description": "Groups which user is a member", "minLength": 0, "items": { "$ref": "#/definitions/getGroup" } }, "other": { "type": "array", "description": "Other groups that are public or shared to the user's organization but that the user is not a member of", "minLength": 0, "items": { "$ref": "#/definitions/getGroup" } } }, "required": [ "admin", "member", "other" ] }, "getItemRating": { "type": "object", "description": "Returns the rating given by the current user to the item, if any. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Item_Rating/02r300000098000000/", "title": "rating", "properties": { "rating": { "type": "integer", "description": "The rating given to the item by the calling user" }, "created": { "type": "integer", "description": "The date and time the comment was created. Shown in UNIX time" } }, "required": [ "rating", "created" ] }, "getNotification": { "type": "object", "description": " An individual notification for the given user that can be of different types. Available only to the user recipient of the notification. In the JSON response for a notification, the data property will vary based on the notification type. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Notification/02r30000006t000000/", "title": "notification", "properties": { "id": { "type": "string", "description": "The ID of the notification" }, "type": { "type": "string", "description": "The notification type. See the Notification types section for the list of notification types", "enum": [ "group_join", "group_application_accepted", "group_application_declined", "user_invite", "user_invitation_accepted", "user_invitation_declined" ] }, "target": { "type": "string", "description": "The intended user of the notification" }, "targetType": { "type": "string", "description": "Currently, only \"user\" is acceptable, but in the future, there may be other target types for notifications", "enum": [ "user" ], "pattern": "user" }, "received": { "type": "integer", "description": "Date the notification was received, in UNIX time in milliseconds" }, "data": { "type": "object", "description": "The data for the notification. See the Notification types section for data properties for each notification type", "properties": { "groupId": { "type": "string", "description": "Group ID" }, "groupTitle": { "type": "string", "description": "Group title" } }, "required": [ "groupId", "groupTitle" ] } }, "required": [ "id", "type", "target", "targetType", "received", "data" ] }, "getNotifications": { "type": "object", "description": "The list of notifications available for the given user. These can have different types as described in the documentation for the Notification resource. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Notifications/02r30000006s000000/", "title": "notifications", "properties": { "notifications": { "type": "array", "description": "JSON array of notification objects. See Notification for the properties of an invitation", "minLength": 0, "items": { "$ref": "#/definitions/getNotification" } } }, "required": [ "notifications" ] }, "getOrgRoot": { "type": "object", "description": "The Root resource only returns the version of the containing portal. It acts as a root to its child resources and operations. To obtain descriptive information about this portal including its name, logo, featured items, and supported protocols (HTTP vs HTTPS), access the Self resource under Portals. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Root/02r30000009t000000/", "title": "root", "properties": { "currentVersion": { "type": "string", "description": "The release version for this portal" } }, "required": [ "currentVersion" ] }, "getPortalAppInfo": { "type": "object", "description": "Information about the Application through which this resource was accessed. This information is based on the token used to access this resource. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Portal_Self/02r3000001m7000000/", "title": "portalAppInfo", "properties": { "appID": { "type": "string", "description": "The AppID of the registered Application. This is also the OAuth client_id" }, "itemId": { "type": "string", "description": "The item ID of the registered Application" }, "appOwner": { "type": "string", "description": "The owner of the Application" }, "orgId": { "type": "string", "description": "The organization to which the Application owner belongs" }, "appTitle": { "type": "string", "description": "The title of the Application" } }, "required": [ "appID", "itemId", "appOwner", "orgId", "appTitle" ] }, "getPortalFeaturedGroup": { "type": "object", "description": "The featured groups for the organization. These are the groups that will be highlighted on the Groups page. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Portal_Self/02r3000001m7000000/", "title": "portalFeaturedGroup", "properties": { "owner": { "type": "string", "description": "The owner of the featured group" }, "title": { "type": "string", "description": "The title of the featured group" } }, "required": [ "owner", "title" ] }, "getPortalLanguage": { "type": "object", "description": "Available language. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Languages/02r300000095000000/", "title": "language", "properties": { "language": { "type": "string", "description": "Language's name" }, "culture": { "type": "string", "description": "Language's culture" }, "localizedName": { "type": "string", "description": "Language's localized name" } }, "required": [ "language", "culture", "localizedName" ] }, "getPortalLanguages": { "type": "array", "description": "Lists the available languages. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Languages/02r300000095000000/", "title": "languages", "items": { "$ref": "#/definitions/getPortalLanguage" } }, "getPortalRegion": { "type": "object", "description": "Available region. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Regions/02r300000099000000/", "title": "region", "properties": { "name": { "type": "string", "description": "Region's name" }, "region": { "type": "string", "description": "Region's short name" }, "localizedName": { "type": "string", "description": "Region's localized name" } }, "required": [ "name", "region", "localizedName" ] }, "getPortalRegions": { "type": "array", "description": "Lists the available regions. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Regions/02r300000099000000/", "title": "regions", "items": { "$ref": "#/definitions/getPortalRegion" } }, "getPortalResource": { "type": "object", "description": "resource objects that contain the key, size, and created date of the resource. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Resources/02r30000009r000000/", "title": "resource", "properties": { "key": { "type": "string", "description": "The ID of the comment" }, "size": { "type": "integer", "description": "Size of the resource" }, "created": { "type": "integer", "description": "The date and time the resource was created. Shown in UNIX time" } }, "required": [ "key", "size", "created" ] }, "getPortalResources": { "type": "object", "description": "Resources lists all file resources for the organization. The start and num paging parameters are supported. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Resources/02r30000009r000000/", "title": "resources", "properties": { "total": { "type": "integer", "description": "The total number of results found" }, "start": { "type": "integer", "description": "The number of the first entry in the result set response. The index number is 1-based" }, "num": { "type": "integer", "description": "The number of results included in this result set response" }, "nextStart": { "type": "integer", "description": "The next entry index if the current result set doesn't contain all results" }, "resources": { "type": "array", "description": "A JSON array of resource objects that contain the key, size, and created date of the resource", "minLength": 0, "items": { "$ref": "#/definitions/getPortalResource" } } }, "required": [ "total", "start", "num", "nextStart", "resources" ] }, "getPortalSelf": { "type": "object", "description": "The Portal Self resource is used to return the view of the portal as seen by the current user, anonymous or logged in. It includes information such as the name, logo, featured items, and supported protocols (HTTP vs. HTTPS) for this portal. If the user is not logged in, this call will return the default view of the portal. If the user is logged in, the view of the returned portal will be specific to the organization to which the user belongs. The default view of the portal is dependent on the culture of the user, which is obtained from the user's profile. A parameter to pass in the locale/culture is available for anonymous users. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Portal_Self/02r3000001m7000000/", "title": "portal", "properties": { "access": { "type": "string", "description": "Indicates the level of access to your organization for anonymous users. If set to private, only members of the organization will be able to access your site. public allows public access", "enum": [ "private", "public" ] }, "allSSL": { "type": "boolean", "description": "Indicates if the organization is using SSL. If true, all calls made against resources that belong to the organization will require SSL. false is the default." }, "appInfo": { "$ref": "#/definitions/getPortalAppInfo" }, "backgroundImage": { "type": [ "string", "null" ], "description": "The background image that displays behind all other components on the home page. Accept the default background image, specify a URL for a custom background image, or specify that no background image will display" }, "basemapGalleryGroupQuery": { "type": "string", "description": "The query that identifies the group containing the web maps that display in the basemap gallery for the map viewer" }, "bingKey": { "type": "string", "description": "The Bing key to use for web maps using Bing Maps" }, "canListApps": { "type": "boolean", "description": "An organization can list applications in the marketplace only if canListApps is true" }, "canListData": { "type": "boolean", "description": "An organization can list data services in the marketplace only if canListData is true" }, "canListPreProvisionedItems": { "type": "boolean", "description": "An organization can list pre-provisioned items in the marketplace only if canListPreProvisionedItems is true" }, "canProvisionDirectPurchase": { "type": "boolean", "description": "An organization can provision direct purchases in the marketplace without customer request only if canProvisionDirectPurchase is true" }, "canSearchPublic": { "type": "boolean", "description": "Includes or excludes public items, groups, and users in search queries. When canSearchPublic is false, no public items outside of the organization are included in searches. However, public items that are part of the organization are returned. The default is true" }, "canShareBingPublic": { "type": "boolean", "description": "The Bing key can be shared to the public and is returned as part of a portal's description call (/sharing/rest/portals/). This requires the access of the portal to be set to public. The canShareBingPublic property is not returned publicly but only shown to users within the organization" }, "canSharePublic": { "type": "boolean", "description": "Allows or disallows an organization to share groups or items publicly. false denotes that content can not be shared with everyone. The default is true" }, "canSignInArcGIS": { "type": "boolean", "description": "Allows an organization with an enterprise IDP configured to be able to turn on or off the ArcGIS sign in. The default is true" }, "canSignInIDP": { "type": "boolean", "description": "Allows an organization with an enterprise IDP configured to be able to turn on or off the enterprise sign in. The default is true" }, "colorSetsGroupQuery": { "type": "string", "description": "The query that identifies the group containing the color sets used for rendering in the map viewer" }, "commentsEnabled": { "type": "boolean", "description": "Allows the organization to disable commenting. true is the default. When commentsEnabled is false, comments are hidden and not removed. numComments are set to zero for all items in the organization. Calls to add a comment and view comments will fail. If the organization re-enables comments, the comments display and numComments are restored" }, "created": { "type": "integer", "description": "Date the organization was created, in UTC, using milliseconds since epoch" }, "culture": { "type": "string", "description": "The item locale information (language and country)" }, "customBaseUrl": { "type": "string", "description": "The custom base URL for the portal", "format": "uri" }, "defaultBaseMap": { "type": "string", "description": "The default basemap displayed in the map viewer", "enum": [ "streets", "satellite", "hybrid", "topo", "gray", "dark-gray", "oceans", "national-geographic", "terrain", "osm" ], "pattern": "streets|satellite|hybrid|topo|gray|dark-gray|oceans|national-geographic|terrain|osm" }, "defaultExtent": { "$ref": "#/definitions/getExtent" }, "description": { "type": [ "string", "null" ], "description": "The description of the organization" }, "featuredGroups": { "type": "array", "description": "The featured groups for the organization. These are the groups that will be highlighted on the Groups page", "title": "featuredGroups", "minLength": 0, "items": { "$ref": "#/definitions/getPortalFeaturedGroup" } }, "featuredItemsGroupQuery": { "type": [ "string", "null" ], "description": "The query that identifies the group containing features items for the gallery. Set a Group ID or, if null, then the most viewed items in your organization are displayed in the gallery" }, "helpBase": { "type": "string", "description": "The helpBase property provides the base URL of the help documentation. This is used to build all the help URLs within the portal", "format": "uri" }, "helperServices": { "type": "object", "description": "A JSON object of various services needed by client applications. They can be overridden by the organization or the portal", "properties": { "geocode": { "type": "array", "description": "Array of ArcGIS GeocodeServers to use for geocoding", "items": { "type": "object", "properties": { "url": { "type": "string", "description": "URL for geocode service" }, "northLat": { "type": "string", "description": "Ymax", "pattern": "Ymax" }, "southLat": { "type": "string", "description": "Ymin", "pattern": "Ymin" }, "eastLon": { "type": "string", "description": "Xmax", "pattern": "Xmax" }, "westLon": { "type": "string", "description": "Xmin", "pattern": "Xmin" } }, "required": [ "url", "northLat", "southLat", "eastLon", "westLon" ] } }, "geometry": { "type": "object", "description": "ArcGIS GeometryServer to use for geometry functions. URL to Geometry Service", "properties": { "url": { "type": "string", "description": "URL for geometry service" } }, "required": [ "url" ] }, "hydrologoy": { "type": "object", "description": "ArcGIS Geoprocessing services for hydrologic analysis. URL to Hydrology Service", "properties": { "url": { "type": "string", "description": "URL for hydrologoy service" } }, "required": [ "url" ] }, "printTask": { "type": "object", "description": "ArcGIS PrintServer task to use for printing functionality. URL to Print Service", "properties": { "url": { "type": "string", "description": "URL for printTask service" } }, "required": [ "url" ] }, "route": { "type": "object", "description": "ArcGIS NAServer to use for routing functionality. URL to Network Analysis Service", "properties": { "url": { "type": "string", "description": "URL for route service" } }, "required": [ "url" ] }, "closestFacility": { "type": "object", "description": "ArcGIS NAServer service for synchronous closest facility analysis. URL to Network Analysis Service", "properties": { "url": { "type": "string", "description": "URL for closestFacility service" } }, "required": [ "url" ] }, "asyncClosestFacility": { "type": "object", "description": "ArcGIS Geoprocessing service for asynchronous closest facility analysis. URL to Network Analysis Service", "properties": { "url": { "type": "string", "description": "URL for asyncClosestFacility service" } }, "required": [ "url" ] }, "elevation": { "type": "object", "description": "ArcGIS Geoprocessing services for elevation analysis. URL to Elevation Service", "properties": { "url": { "type": "string", "description": "URL for elevation service" } }, "required": [ "url" ] }, "elevationSync": { "type": "object", "description": "ArcGIS Geoprocessing services for elevation analysis. URL to Elevation Service", "properties": { "url": { "type": "string", "description": "URL for elevationSync service" } }, "required": [ "url" ] }, "traffic": { "type": "object", "description": "ArcGIS TrafficMapServer service for traffic functionality. URL to Traffic Map Service", "properties": { "url": { "type": "string", "description": "URL for traffic service" } }, "required": [ "url" ] }, "serviceArea": { "type": "object", "description": "ArcGIS NAServer service for synchronous service-area analysis. URL to Network Analysis Service", "properties": { "url": { "type": "string", "description": "URL for serviceArea service" } }, "required": [ "url" ] }, "asyncServiceArea": { "type": "object", "description": "ArcGIS Geoprocessing service for asynchronous service-area analysis. URL to Network Analysis Service", "properties": { "url": { "type": "string", "description": "URL for asyncServiceArea service" } }, "required": [ "url" ] }, "syncVRP": { "type": "object", "description": "ArcGIS NAServer service for solving synchronous vehicle routing problems. URL to Network Analysis Service", "properties": { "url": { "type": "string", "description": "URL for syncVRP service" } }, "required": [ "url" ] }, "asyncVRP": { "type": "object", "description": "ArcGIS Geoprocessing service for solving asynchronous vehicle routing problems. URL to Network Analysis Service", "properties": { "url": { "type": "string", "description": "URL for asyncVRP service" } }, "required": [ "url" ] }, "analysis": { "type": "object", "description": "URL to Hosted GP Service", "properties": { "url": { "type": "string", "description": "Hosted GPServices that perform analyses. URL for analysis service" } }, "required": [ "url" ] }, "geoenrichment": { "type": "object", "description": "ArcGIS GeoenrichmentServer. URL to Geoenrichment Service", "properties": { "url": { "type": "string", "description": "URL for geoenrichment service" } }, "required": [ "url" ] } } }, "homePageFeaturedContent": { "type": "string", "description": "The group that contains featured content to be displayed on the home page" }, "homePageFeaturedContentCount": { "type": "integer", "description": "The number of featured items that can be displayed on the home page. The max is 100. Integers only" }, "httpPort": { "type": "integer", "description": "The port used by the portal for HTTP communication", "pattern": "80" }, "httpsPort": { "type": "integer", "description": "The port used by the portal for HTTPS communication", "pattern": "443" }, "id": { "type": [ "string", "null" ], "description": "Organization ID. If null, then this is the default portal for anonymous and non-organizational users" }, "ipCntryCode": { "type": "integer", "description": "The country code of the calling IP (ArcGIS Online only)" }, "isPortal": { "type": "boolean", "description": "Indicates if the portal is on premises" }, "layerTemplatesGroupQuery": { "type": "string", "description": "The query that identifies the group containing editing templates used in the map viewer" }, "maxTokenExpiration": { "type": "integer", "description": "The maximum validity in minutes of tokens issued for users of the organization. -1 is the default and is a special value that indicates infinite timeout or permanent tokens. For tokens granted using OAuth2 authorization grant, it represents the maximum validity of refresh tokens. For access tokens, the maximum validity is the lower of two weeks or this value" }, "modified": { "type": "integer", "description": "Date the organization was last modified, in UTC, milliseconds since epoch" }, "name": { "type": "string", "description": "The organization's name" }, "portalHostname": { "type": "string", "description": "The portal host's URL", "format": "uri" }, "portalMode": { "type": "string", "description": "Identifies if multitenant or singletenant", "enum": [ "multitenant", "singletenant" ], "pattern": "multitenant|singletenant" }, "portalName": { "type": "string", "description": "The portal's name" }, "portalProperties": { "type": "object", "description": "Stores properties specific to the organization, for example the 'contact us' link. if the organization is public, the properties are visible to the anonymous user", "properties": { "links": { "type": "object", "description": "URL for geometry service", "properties": { "contactUs": { "type": "object", "description": "Links to 'Contact Us", "properties": { "url": { "type": "string", "description": "URL or mailto" }, "visible": { "type": "boolean", "description": "Whether or not portalProperties are visible" } } } } } } }, "portalThumbnail": { "type": [ "string", "null" ], "description": "The URL to the thumbnail of the portal" }, "region": { "type": "string", "description": "The region for the organization" }, "rotatorPanels": { "type": "string", "description": "The region for the organization" }, "showHomePageDescription": { "type": "boolean", "description": "If true, the description of your organization displays on the home page" }, "supportsHostedServices": { "type": "boolean", "description": "Indicates if hosted services are supported" }, "supportsOAuth": { "type": "boolean", "description": "Indicates if OAuth is supported" }, "symbolSetsGroupQuery": { "type": "string", "description": "The query that identifies the symbol set group for rendering in the map viewer" }, "templatesGroupQuery": { "type": "string", "description": "The query that identifies the template group used in the map viewer" }, "thumbnail": { "type": "string", "description": "The URL to the thumbnail of the organization" }, "units": { "type": "string", "description": "Sets the units of measure for the organization's users. The user default is derived from the organization's Region. Set units to english for US standards or metric", "enum": [ "english", "metric" ], "pattern": "english|metric" }, "urlKey": { "type": "string", "description": "The prefix selected by the organization's administrator to be used with the customBaseURL" }, "useStandardizedQuery": { "type": "boolean", "description": "If true, only simple where clauses that are complaint with SQL92 can be used when querying layers and tables. The recommended security setting is true" }, "user": { "$ref": "#/definitions/getUser" } }, "required": [ "access", "allSSL", "appInfo", "backgroundImage", "basemapGalleryGroupQuery", "bingKey", "canListApps", "canListData", "canListPreProvisionedItems", "canProvisionDirectPurchase", "canSearchPublic", "canShareBingPublic", "canSharePublic", "canSignInArcGIS", "canSignInIDP", "colorSetsGroupQuery", "commentsEnabled", "created", "culture", "customBaseUrl", "defaultBaseMap", "defaultExtent", "description", "featuredGroups", "featuredItemsGroupQuery", "helpBase", "helperServices", "homePageFeaturedContent", "homePageFeaturedContentCount", "httpPort", "httpsPort", "id", "ipCntryCode", "isPortal", "layerTemplatesGroupQuery", "maxTokenExpiration", "modified", "name", "portalHostname", "portalMode", "portalName", "portalProperties", "portalThumbnail", "region", "rotatorPanels", "showHomePageDescription", "supportsHostedServices", "supportsOAuth", "symbolSetsGroupQuery", "templatesGroupQuery", "thumbnail", "units", "urlKey", "useStandardizedQuery", "user" ] }, "getPortalServer": { "type": "object", "description": "This resource represents an ArcGIS Server site that has been federated with the portal. This resource is not applicable to ArcGIS Online; it is only applicable to Portal for ArcGIS. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Server/02r300000219000000/", "title": "server", "properties": { "id": { "type": "string", "description": "ID of the ArcGIS Server site" }, "name": { "type": "string", "description": "The fully qualified name of the machine hosting the ArcGIS Server site, followed by the port" }, "adminUrl": { "type": "string", "description": "The administrative URL of the ArcGIS Server site, using the fully qualified name of the machine", "format": "uri" }, "url": { "type": "string", "description": "The externally visible URL of the ArcGIS Server site, using the fully qualified name of the machine", "format": "uri" }, "isHosted": { "type": "boolean", "description": "A Boolean property denoting whether the ArcGIS Server site is allowed to host services for the portal (true) or is not allowed to host services (false)" }, "serverKey": { "type": [ "string", "null" ], "description": "The key returned when the Register Server operation is called for this server. The key is only displayed once; hence, this property usually returns null" }, "serverType": { "type": "string", "description": "The type of server being registered with the portal. For example: ArcGIS" } }, "required": [ "id", "name", "adminUrl", "url", "isHosted", "serverKey", "serverType" ] }, "getPortalServers": { "type": "object", "description": "This resource lists the ArcGIS Server sites that have been federated with the portal. This resource is not applicable to ArcGIS Online; it is only applicable to Portal for ArcGIS. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Servers/02r300000218000000/", "title": "servers", "properties": { "servers": { "type": "array", "description": "An array of JSON objects representing ArcGIS Server sites", "minLength": 0, "items": { "$ref": "#/definitions/getPortalServer" } } }, "required": [ "servers" ] }, "getRegisteredAppInfo": { "type": "object", "description": "An app registered with the portal. An app item can be registered by invoking the register app operation. Every registered app gets an App ID and App Secret which in OAuth speak are known as client_id and client_secret respectively. The app owner has access to the registered app resource. This would include the organization administrator as well. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Registered_App/02r30000026v000000/", "title": "registeredApp", "properties": { "itemId": { "type": "string", "description": "The unique ID for this item" }, "client_id": { "type": "string", "description": "The ID of the registered application. Also referred to as APPID" }, "client_secret": { "type": "string", "description": "The secret of the registered application. Also referred to as APPSECRET" }, "appType": { "type": "string", "description": "The type of app that was registered indicating whether it's a browser app, native app, server app or a multiple interface app", "enum": [ "browser", "native", "server", "multiple" ], "pattern": "browser|native|server|multiple" }, "redirect_uris": { "type": "array", "description": "The URIs where the access_token or authorization code will be delivered to upon successful authorization. The redirect_uri specified during authorization must be match one of the registered URIs otherwise authorization will be rejected. A special value of urn:ietf:wg:oauth:2.0:oob can also be specified for authorization grants. This will result in the authorization code being delivered to a portal URL (/oauth2/approval). This value is typically used by applications that don't have a web server or a custom URI scheme to deliver the code to. The value is a JSON string array", "items": { "type": "string" } }, "created": { "type": "integer", "description": "The date when the app was created (in UNIX time in milliseconds)" }, "modified": { "type": "integer", "description": "The date when the app was last modified (in UNIX time in milliseconds)" } }, "required": [ "itemId", "client_id", "client_secret", "appType", "redirect_uris", "created", "modified" ] }, "getRelatedItems": { "type": "object", "description": "Gets all the related items of a certain relationship type for that item. An optional direction can be specified if the direction of the relationship is ambiguous. Otherwise, the service will try to infer it. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Related_Items/02r300000085000000/", "title": "Related Items", "properties": { "total": { "type": "integer", "description": "The number of items related using the provided relationship type" }, "relatedItems": { "type": "array", "description": "A JSON array of related item objects", "minLength": 0, "items": { "$ref": "#/definitions/getItem" } } }, "required": [ "relatedItems", "total" ] }, "getUser": { "type": "object", "description": "A user resource representing a registered user of the portal. Personal details of the user, such as e-mail and groups, are returned only to the user or the administrator of the user's organization (the properties in the Response Properties table below). A user is not visible to any other user (except the organization's administrator) if their access setting is set to private. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/User/02r3000000m2000000/", "title": "user", "properties": { "username": { "type": "string", "description": "The username of the given user" }, "fullname": { "type": "string", "description": "The user's full name" }, "preferredView": { "type": "string", "description": "The user's preferred view for content, either web or GIS", "enum": [ "Web", "GIS" ] }, "description": { "type": "string", "description": "A description of the user" }, "email": { "type": "string", "description": "The user's e-mail address" }, "idpUsername": { "type": [ "string", "null" ], "description": "The original username if using enterprise logins" }, "favGroupId": { "type": "string", "description": "The user's favorites group and is created automatically for each user" }, "lastLogin": { "type": "integer", "description": "The last login date of the user" }, "access": { "type": "string", "description": "Indicates the level of access of the user: private, org, or public. If private, the user descriptive information will not be available to others nor will the username be searchable", "enum": [ "private", "org", "public" ] }, "storageusage": { "type": "integer", "description": "The amount of storage used for the user's subscription" }, "storageQuota": { "type": "integer", "description": "Applicable to public users as it sets the total amount of storage available for a subscription. The maximum quota is 2GB" }, "orgId": { "type": "string", "description": "The ID of the organization the user belongs to" }, "role": { "type": "string", "description": "Defines the user's role in the organization: administrator (org_admin), publisher (org_publisher), information worker (org_user), or custom ()", "enum": [ "org_admin", "org_publisher", "org_user" ] }, "disabled": { "type": "boolean", "description": "Disables access to the organization by the user" }, "units": { "type": "string", "description": "User-defined units for measurement", "enum": [ "english", "metric" ] }, "tags": { "type": "array", "description": "User-defined tags that describe the user", "items": { "type": "string" }, "uniqueItems": true }, "culture": { "type": "string", "description": "The item locale information (language and country)" }, "region": { "type": "string", "description": "The user preferred region, used to set the featured maps on the home page, content in the gallery, and the default extent of new maps in the Viewer" }, "thumbnail": { "type": [ "string", "null" ], "description": "The file name of the thumbnail used for the user. All user thumbnails are relative to the URL http:///users//info" }, "created": { "type": "integer", "description": "The date the user was created. Shown in UNIX time" }, "modified": { "type": "integer", "description": "The date the user was last modified. Shown in UNIX time" }, "groups": { "type": "array", "description": "A JSON array of groups the user belongs to. See Group for properties of a group", "minLength": 0, "items": { "$ref": "#/definitions/getGroup" } }, "provider": { "type": "string", "description": "The identity provider for the organization. Either arcgis (for built-in users) or enterprise (for external users managed by an enterprise identity store). This was added at Portal for ArcGIS 10.3.1", "enum": [ "arcgis", "enterprise", "facebook", "google" ] } }, "required": [ "username", "fullname", "preferredView", "description", "email", "idpUsername", "favGroupId", "lastLogin", "access", "storageusage", "storageQuota", "orgId", "role", "disabled", "units", "tags", "culture", "region", "thumbnail", "created", "modified", "groups", "provider" ] }, "getUserContent": { "type": "object", "description": "The user's content are items either in the home folder for the user, e.g. /content/users/, or in a subfolder of the home folder with the given folder ID. Multilevel folders are not supported. You can also see the Quick reference topic for additional information on this. Items in a folder are stored by reference and are not physically in a folder. Rather, they're stored as links to the original item, e.g. /content/items/. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/User_Content/02r30000007p000000/", "title": "userContent", "properties": { "username": { "type": "string", "description": "The username of the content" }, "currentFolder": { "$ref": "#/definitions/getFolder" }, "items": { "type": "array", "description": "The list of the user's items. See Item for response properties for more details", "minLength": 0, "items": { "$ref": "#/definitions/getItem" } } }, "required": [ "username", "currentFolder", "items" ] }, "getUserInvitation": { "type": "object", "description": " An individual invitation to join a given group. The user can accept the invitation or decline the invitation. Invitations are currently only to join groups but may be extended in the future to allow for other targetTypes. Developers should design their applications so that targetTypes is checked and unknown targetTypes are ignored. Invitations are also currently only sent to usernames. This is determined by the type property of the invitation. In the future, other types of invitations may be introduced. Developers should design their applications to make sure they check type and ignore unknown types. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/User_Invitation/02r3000000mr000000/", "title": "userInvitation", "properties": { "id": { "type": "string", "description": "The ID of the invitation" }, "targetType": { "type": "string", "description": "The type of invitation. For now, this will only be set to group, but other types may be added in the future", "enum": [ "group" ], "pattern": "group" }, "targetId": { "type": "string", "description": "The ID of the group (if targetType is set to group) that the user is invited to join" }, "received": { "type": "integer", "description": "The date received. Shown in UNIX time in milliseconds" }, "role": { "type": "string", "description": "The role that the invitee will have in the group, either group_member or group_admin", "enum": [ "group_member", "group_admin" ], "pattern": "group_member|group_admin" }, "expiration": { "type": "integer", "description": "Expiration of the invitation. Shown in UNIX time in milliseconds" }, "type": { "type": "string", "description": "For now, always set to \"user.\" In the future, the type may include other types of invitations", "enum": [ "user" ], "pattern": "user" }, "created": { "type": "integer", "description": "The date the invitation was created. Shown in UNIX time in milliseconds" }, "username": { "type": "string", "description": "The name of the user receiving the invitation if the type is set to \"user." }, "fromUsername": { "type": "object", "description": "A JSON object about the user who sent the invitation. This includes their username and fullname", "properties": { "username": { "type": "string", "description": "requestor username" }, "fullname": { "type": "string", "description": "The full name of the user who sent the invitation" } }, "required": [ "username", "fullname" ] }, "group": { "$ref": "#/definitions/getGroup" } }, "required": [ "id", "targetType", "targetId", "received", "role", "expiration", "type", "created", "username", "fromUsername", "group" ] }, "getUserInvitations": { "type": "object", "description": "Shows the invitations sent to the authenticated user. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/User_Invitations/02r3000000m7000000/", "title": "userInvitations", "properties": { "userInvitations": { "type": "array", "description": "A JSON array of invitation objects. For details, see the response properties for User Invitation", "minLength": 0, "items": { "$ref": "#/definitions/getUserInvitation" } } }, "required": [ "userInvitations" ] }, "getUsers": { "type": "object", "description": "Lists all the members of the organization. The start and num paging parameters are supported. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Users/02r30000009q000000/", "title": "users", "properties": { "total": { "type": "integer", "description": "The total number of results found" }, "start": { "type": "integer", "description": "The number of the first entry in the result set response. The index number is 1-based" }, "num": { "type": "integer", "description": "The number of results included in this result set response" }, "nextStart": { "type": "integer", "description": "The next entry index if the current result set doesn't contain all results" }, "users": { "type": "array", "description": "A JSON array of user objects. See User for possible response properties", "minLength": 0, "items": { "$ref": "#/definitions/getUser" } } }, "required": [ "total", "start", "num", "nextStart", "users" ] }, "getUserTag": { "type": "object", "description": "User tag. Object in the userTags array. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/User_Tags/02r3000000m9000000/", "title": "userTag", "properties": { "tag": { "type": "string", "description": "Tag" }, "count": { "type": "integer", "description": "The number of times the tag was used" } }, "required": [ "tag", "count" ] }, "getUserTags": { "type": "object", "description": "Users tag the content they publish in their portal via the add and update item calls. This resource lists all the tags used by the user along with the number of times the tags have been used. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/User_Tags/02r3000000m9000000/", "title": "userTags", "properties": { "tags": { "type": "array", "description": "Array of tag objects. Each tag object contains a tag property with the name of the tag along with a count that reports the number of times the tag was used", "minLength": 0, "items": { "$ref": "#/definitions/getUserTag" } } }, "required": [ "tags" ] }, "groupSearch": { "type": "object", "description": "The Group Search operation searches for groups in the portal. The search index is updated whenever groups and organizations are created, updated, or deleted. There can be a lag between the time that a group is updated and the time when it's reflected in the search results. The results only contain groups that the user has permission to access. Care should be taken when using ArcGIS REST API search operations (search, user search, group search) to find items, groups, and users programmatically. The Portal uses a powerful search engine to index information and to allow full text searching on it. This search engine uses many different inputs to find the appropriate results and rank them. This often makes search 'fuzzy', making it ideal for human interaction, but not necessarily ideal for looking for specific records programmatically. Developers should avoid using search to find specific items (e.g. by title) as the results of these types of queries might change as the search engine evolves. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Group_Search/02r3000000m1000000/", "title": "groupSearch", "properties": { "query": { "type": "string", "description": "The query string searched" }, "total": { "type": "integer", "description": "The total number of results found for the whole query. The number of query results is limited to 10000", "minimum": 0, "maximum": 10000 }, "start": { "type": "integer", "description": "The number of the first entry in the result set for this response. The index number is 1-based", "minimum": 1, "maximum": 10000 }, "num": { "type": "integer", "description": "The number of results included in the result set for this response", "minimum": 1, "maximum": 100 }, "nextStart": { "type": "integer", "description": "The next entry index if the current result set doesn't contain all results", "minimum": -1, "maximum": 10000 }, "results": { "type": "array", "description": "A JSON array of group objects. See the response properties for Group", "minLength": 0, "items": { "$ref": "#/definitions/getGroup" } } }, "required": [ "query", "total", "start", "num", "nextStart", "results" ] }, "inviteToGroup": { "type": "object", "description": "A group administrator can invite users to join their group using the Invite to Group operation. This creates a new user invitation, which the users accept or decline. The role of the user and the invitation expiration date can be set in the invitation. A notification is created for the user indicating that they were invited to join the group. Available only to authenticated users. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Invite_to_Group/02r30000006v000000/", "title": "inviteToGroup", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "groupId": { "type": "string", "description": "The groupId of the invited group" } }, "required": [ "success", "groupId" ] }, "joinGroup": { "type": "object", "description": "Users apply to join a group using the Join Group operation (POST only). This creates a new group application, which the group administrators accept or decline. This operation also creates a notification for the user indicating that they have applied to join this group. Available only to authenticated users. Users can only apply to join groups to which they have access. If the group is private, users will not be able to find it to ask to join it. Information pertaining to the applying user, such as their full name and username, can be sent as part of the group application. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Join_Group/02r30000006n000000/", "title": "joinGroup", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "groupId": { "type": "string", "description": "The ID of the group the user asked to join" } }, "required": [ "success", "groupId" ] }, "leaveGroup": { "type": "object", "description": "The Leave Group operation (POST only) is available to all group members other than the group owner. Leaving a group automatically results in the unsharing of all items the user has shared with the group. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Leave_Group/02r30000006z000000/", "title": "leaveGroup", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "groupId": { "type": "string", "description": "The ID of the group the user left" } }, "required": [ "success", "groupId" ] }, "reassignGroup": { "type": "object", "description": "The Reassign Group operation (POST only) allows the administrator of an organization to reassign a group to another member of the organization. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Reassign_Group/02r300000067000000/", "title": "reassignGroup", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "groupId": { "type": "string", "description": "The ID of the reassigned group" } }, "required": [ "success", "groupId" ] }, "removeUsersFromGroup": { "type": "object", "description": "The operation to Remove Users From Group (POST only) is available only to the group administrators, including the owner, and to the administrator of the organization if the user is a member. Both users and admins can be removed using this operation. Group owners cannot be removed from the group. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Remove_Users_From_Group/02r300000066000000/", "title": "removeUsersFromGroup", "properties": { "notRemoved": { "type": "array", "description": "A JSON array of usernames that were not removed. This can happen when the username was never a member of the group", "minItems": 0, "items": { "type": "string" }, "uniqueItems": true } }, "required": [ "notRemoved" ] }, "search": { "type": "object", "description": "This operation searches for content items in the portal. The searches are performed against a high performance index that indexes the most popular fields of an item. See the Search reference page for information on the fields and the syntax of the query. The search index is updated whenever users add, update, or delete content. There can be a lag between the time that the content is updated and the time when it's reflected in the search results. The results of a search only contain items that the user has permission to access. Care should be taken when using ArcGIS REST API search operations (search, user search, group search) to find items, groups, and users programmatically. The Portal uses a powerful search engine to index information and to allow full text searching on it. This search engine uses many different inputs to find the appropriate results and rank them. This often makes search 'fuzzy', making it ideal for human interaction, but not necessarily ideal for looking for specific records programmatically. Developers should avoid using search to find specific items (e.g. by title) as the results of these types of queries might change as the search engine evolves. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Search/02r3000000mp000000/", "title": "search", "properties": { "query": { "type": "string", "description": "The query string searched" }, "total": { "type": "integer", "description": "The total number of results found for the whole query. The number of query results is limited to 10000", "minimum": 0, "maximum": 10000 }, "start": { "type": "integer", "description": "The number of the first entry in the result set for this response. The index number is 1-based", "minimum": 1, "maximum": 10000 }, "num": { "type": "integer", "description": "The number of results included in the result set for this response", "minimum": 1, "maximum": 100 }, "nextStart": { "type": "integer", "description": "The next entry index if the current result set doesn't contain all results", "minimum": -1, "maximum": 10000 }, "results": { "type": "array", "description": "A JSON array of item objects. See the response properties of an item", "minLength": 0, "items": { "$ref": "#/definitions/getItem" } } }, "required": [ "query", "total", "start", "num", "nextStart", "results" ] }, "searchUsers": { "type": "object", "description": "The User Search operation searches for users in the portal. The search index is updated whenever users are created, updated, or deleted. There can be a lag between the time that the user is updated and the time when it's reflected in the search results. The results only contain users that the calling user has permissions to see. Users can control this visibility by changing the access property of their user. Care should be taken when using ArcGIS REST API search operations (search, user search, group search) to find items, groups, and users programmatically. The Portal uses a powerful search engine to index information and to allow full text searching on it. This search engine uses many different inputs to find the appropriate results and rank them. This often makes search 'fuzzy', making it ideal for human interaction, but not necessarily ideal for looking for specific records programmatically. Developers should avoid using search to find specific items (e.g. by title) as the results of these types of queries might change as the search engine evolves. http://resources.arcgis.com/en/help/arcgis-rest-api/#/User_Search/02r3000000m6000000/", "title": "userSearch", "properties": { "query": { "type": "string", "description": "The query string searched" }, "total": { "type": "number", "description": "The total number of results found for the whole query. The number of query results is limited to 10000", "minimum": 0, "maximum": 10000 }, "start": { "type": "number", "description": "The number of the first entry in the result set for this response. The index number is 1-based", "minimum": 1, "maximum": 10000 }, "num": { "type": "number", "description": "The number of results included in the result set for this response", "minimum": 0, "maximum": 100 }, "nextStart": { "type": "number", "description": "The next entry index if the current result set doesn't contain all results", "minimum": -1, "maximum": 10000 }, "results": { "type": "array", "description": "A JSON array of user objects. See the response properties for User", "minItems": 0, "maxItems": 100, "items": { "$ref": "#/definitions/searchUsersResultItem" }, "uniqueItems": true } }, "required": [ "query", "total", "start", "num", "nextStart", "results" ] }, "searchUsersResultItem": { "type": "object", "description": "Result item of searching for Users http://resources.arcgis.com/en/help/arcgis-rest-api/#/User_Search/02r3000000m6000000/", "title": "searchUsersResultItem", "properties": { "created": { "type": "integer", "description": "The date the user was created. Shown in UNIX time" }, "culture": { "type": "string", "description": "The item locale information (language and country)" }, "description": { "type": "string", "description": "A description of the user" }, "fullname": { "type": "string", "description": "The user's full name" }, "modified": { "type": "integer", "description": "The date the user was last modified. Shown in UNIX time" }, "provider": { "type": "string", "description": "The identity provider for the organization. Either arcgis (for built-in users) or enterprise (for external users managed by an enterprise identity store). This was added at Portal for ArcGIS 10.3.1", "enum": [ "arcgis", "enterprise", "facebook", "google" ] }, "region": { "type": "string", "description": "The user preferred region, used to set the featured maps on the home page, content in the gallery, and the default extent of new maps in the Viewer" }, "tags": { "type": "array", "description": "User-defined tags that describe the user", "items": { "type": "string" }, "uniqueItems": true }, "thumbnail": { "type": [ "string", "null" ], "description": "The file name of the thumbnail used for the user. All user thumbnails are relative to the URL http:///users//info" }, "units": { "type": "string", "description": "User-defined units for measurement", "enum": [ "english", "metric" ] }, "username": { "type": "string", "description": "The username of the given user" } }, "required": [ "created", "culture", "description", "fullname", "modified", "provider", "region", "tags", "thumbnail", "units", "username" ] }, "updateGroup": { "type": "object", "description": "The Update Group operation (POST only) modifies properties such as the group title, tags, description, sort field and order, and member sharing capabilities. Available only to the group administrators or to the administrator of the organization if the user is a member. Only the properties that are to be updated need to be specified in the request. Properties not specified will not be affected. The group ID cannot be modified. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Update_Group/02r30000006w000000/", "title": "updateGroup", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "groupId": { "type": "string", "description": "The ID of the updated group" } }, "required": [ "success", "groupId" ] }, "updateUser": { "type": "object", "description": "The Update User operation (POST only) modifies properties such as description, preferred view, tags, access, and thumbnail. The user name cannot be modified. For the 'ecas' identity provider, password, e-mail, and full name must be modified by editing your Esri Global Account. For the 'arcgis' identity provider, password, full name, security question, and security answer can be updated with Update User. Update User is available only to the user or to the administrator of the user's organization. Only the properties that are to be updated need to be specified in the request. Properties not specified will not be affected. http://resources.arcgis.com/en/help/arcgis-rest-api/#/Update_User/02r3000000m0000000/", "title": "updateUser", "properties": { "success": { "type": "boolean", "description": "Indicates if the operation was successful" }, "username": { "type": "string", "description": "The username of the modified user" } }, "required": [ "success", "username" ] }, "groupCommonParameters": { "type": "object", "description": "Common parameters for creating and updating group information", "externalDocs": { "description": "Managing your organization > Concepts > Common Parameters", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Common_parameters/02r30000009v000000/" }, "title": "groupCommonParameters", "properties": { "title": { "type": "string", "description": "The group title must be unique for the username, and the character limit is 250. Example: title=Redlands Fire Department", "maxLength": 250 }, "description": { "type": "string", "description": "A description of the group that can be any length" }, "snippet": { "type": "string", "description": "Snippet or summary of the group that has a character limit of 250 characters", "maxLength": 250 }, "tags": { "type": "string", "description": "Tags are words or short phrases that describe the group. Separate terms with commas. Example: tags=fire, Redlands, California, public safety" }, "phone": { "type": "string", "description": "Phone is the group contact information. It can be a combination of letters and numbers. The character limit is 250. Example: phone=http://www.ci.redlands.ca.us/fire/index.htm, 35 Cajon Street, Redlands, CA 92373", "maxLength": 250 }, "access": { "type": "string", "description": "Sets the access level for the group. private is the default. Setting to org restricts group access to members of your organization. If public, all users can access the group. Values: private | org |public. Example: access=org", "enum": [ "private", "org", "public" ] }, "sortField": { "type": "string", "description": "Sets sort field for group items. Values: title | owner | avgrating |numviews| created | modified. Example: sortField=avgrating", "enum": [ "title", "owner", "avgrating", "numviews", "created", "modified" ] }, "sortOrder": { "type": "string", "description": "Sets sort order for group items. Values: asc | desc. Example: sortOrder=desc", "enum": [ "asc", "desc" ] }, "isViewOnly": { "type": "boolean", "description": "Allows the group owner or admin to create view-only groups where members are not able to share items. If members try to share, view-only groups are returned in the notshared response property. false is the default. Values: false | true. Example: isViewOnly=true", "default": false }, "isInvitationOnly": { "type": "boolean", "description": "If true, this group will not accept join requests. If false, this group does not require an invitation to join. Only group owners and admins can invite users to the group. false is the default. Values: true | false. Example: isInvitationOnly=true", "default": false }, "thumbnail": { "type": "string", "description": "Enter the pathname to the thumbnail image to be used for the group. The recommended image size is 200 pixels wide by 133 pixels high. Acceptable image formats are PNG, GIF, and JPEG. The maximum file size for an image is 1 MB. This is not a reference to the file but the file itself, which will be stored in the Portal. Example: thumbnail=subfolder/thumbnail.jpg" }, "clearEmptyFields": { "type": "boolean", "description": "Tells service to clear any fields that are passed in empty (for example, snippet=&description=)" } } }, "inviteDetails": { "type": "object", "description": "Details for inviting users to a group", "externalDocs": { "description": "Managing your organization > Community > Invite to Group", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Invite_to_Group/02r30000006v000000/" }, "title": "groupCommonParameters", "properties": { "users": { "type": "string", "description": "A comma separated list of usernames to be invited to the group. If a user is already a member of the group or an invitation has already been sent, the call still returns a success. Example: users=regularusername1,regularusername2" }, "role": { "type": "string", "description": "Allows administrators to set the user's role in the group. Roles are: group_member: Ability to view and share items with group. group_admin: In addition to viewing and sharing items, the group_admin has the same capabilities as the group owner�invite users to the group, accept or decline group applications, delete content, and remove users.", "enum": [ "group_member", "group_admin" ] }, "expiration": { "type": "number", "description": "Expiration date on the invitation can be set for one day, three days, one week, or two weeks, in minutes. Example: expiration=1440" } }, "required": [ "users", "role", "expiration" ] }, "partDetails": { "type": "object", "description": "Details for adding an item part", "externalDocs": { "description": "Managing your organization > Content > Add Item Part", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Add_Item_Part/02r300000094000000/" }, "title": "partDetails", "properties": { "file": { "type": "string", "description": "The file to be uploaded" }, "partNum": { "type": "string", "description": "Part numbers can be any number from 1 to 10,000, inclusive. A part number uniquely identifies a part and also defines its position within the object being created. If you upload a new part using the same part number that was used with a previous part, the previously uploaded part is overwritten. Each part must be at least five (5) megabytes, except the last part. There is no size requirement on the last part of a multipart upload. Example: partNum=1" } }, "required": [ "file", "partNum" ] }, "itemDetails": { "type": "object", "description": "Details for adding an item", "externalDocs": { "description": "Managing your organization > Content > Add Item", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Add_Item/02r30000008q000000/" }, "title": "itemDetails", "properties": { "file": { "type": "string", "description": "The file to be uploaded. If uploading a file, the request must be a multipart request" }, "dataUrl": { "type": "string", "description": "The URL where the item can be downloaded. The resource will be downloaded and stored as a file type. Similar to uploading a file to be added, but instead of transferring the contents of the file, the URL of the data file is referenced and creates a file item. Please see the implementation details section (in the documentation article) which discusses this parameter in further details" }, "url": { "type": "string", "description": "The URL of the item to be submitted. The URL can be a URL to a service, a web mapping application, or any other content available at that URL. Example: url=http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer" }, "text": { "type": "string", "description": "The text content for the item to be submitted. Example: text=Any+plain+text+content" }, "relationshipType": { "type": "string", "description": "The type of relationship between the two items. See Relationship types for a complete listing of types. Example: WMA2Code" }, "originItemId": { "type": "string", "description": "The item ID of the origin item of the relationship. Example: bb297e5eac6d489e85993d5e4d4e4a20" }, "destinationItemId": { "type": "string", "description": "The item ID of the destination item of the relationship. Example: 8d292f9b0cd5457bbdad84c02223ffb8" }, "async": { "type": "boolean", "default": false, "description": "If true, the file is uploaded asynchronously. If false, the file is uploaded synchronously. Default is false. Example: async=true" }, "multipart": { "type": "boolean", "description": "If true, the file is uploaded in multiple parts. See the Multipart Uploads section above for more information" }, "filename": { "type": "string", "description": "The filename being uploaded in multipart mode. Required if multipart=true" }, "serviceProxyParams": { "type": "object", "description": "A JSON object that provides rate limiting and referrer checks when accessing secured services. Example: serviceProxyParams: \"hitsPerInterval\":2,\"intervalSeconds\":60,\"referrers\":[\"http://\"]}", "properties": { "hitsPerInterval": { "type": "number" }, "intervalSeconds": { "type": "number" }, "referrers": { "type": "string" } } } } }, "serviceDetails": { "type": "object", "description": "Details for creating a service", "externalDocs": { "description": "Managing your organization > Content > Create Service", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Service/02r30000027r000000/" }, "title": "serviceDetails", "properties": { "createParameters": { "type": "object", "description": "", "properties": { "name": { "type": "string", "description": "Name of the service to be created. This name must be unique. If the name already exists, the operation will fail" }, "serviceDescription": { "type": "string", "description": "Description given to the service" }, "hasStaticData": { "type": "boolean", "description": "Boolean value indicating whether the data changes" }, "maxRecordCount": { "type": "number", "description": "A double value indicating any constraints enforced on query operations" }, "supportedQueryFormats": { "type": "string", "description": "The formats in which query results are returned" }, "capabilities": { "type": "string", "description": "Specify feature service editing capabilities for Create, Delete, Query, Update, and Sync. The value is a comma-delimited (no spaces) string of some of these values: Create, Delete, Query, Update, Sync" }, "description": { "type": "string", "description": "A user-friendly description for the published dataset" }, "copyrightText": { "type": "string", "description": "Copyright information associated with the dataset" }, "spatialReference": { "type": "object", "properties": { "wkid": { "type": "number" } }, "description": "All layers added to a hosted feature service need to have the same spatial reference defined for the feature service. When creating a new empty service without specifying its spatial reference, the spatial reference of the hosted feature service is set to the first layer added to that feature service" }, "initialExtent": { "description": "The initial extent set for the service", "$ref": "#/definitions/getExtent" }, "allowGeometryUpdates": { "type": "boolean", "description": "Boolean value indicating if updating the geometry of the service is permitted" }, "units": { "type": "string", "description": "Units used by the feature service" }, "xssPreventionInfo": { "type": "object", "description": "A JSON object specifying the properties of cross-site scripting prevention", "properties": { "xssPreventionEnabled": { "type": "boolean", "description": "Boolean value indicating whether cross-site scripting prevention is enabled" }, "xssPreventionRule": { "type": "string", "enum": [ "InputOnly", "InputOutput" ] }, "xssInputRule": { "type": "string", "enum": [ "rejectInvalid", "sanitizeInvalid" ] } } } }, "required": [ "name" ] }, "outputType": { "type": "string", "description": "The newly-created service type", "default": "featureService", "enum": [ "featureService" ] } } }, "tokenDetails": { "type": "object", "description": "Details for generating a token", "externalDocs": { "description": "Managing your organization > Content > Create Service", "url": "http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Service/02r30000027r000000/" }, "title": "tokenDetails", "properties": { "username": { "type": "string", "description": "Username of user who wants to get a token" }, "password": { "type": "string", "description": "Password of user who wants to get a token" }, "client": { "type": "string", "description": "The client type that will be granted access to the token. Only the referer value is supported. In the Generate Token page, select the Webapp URL option to specify the referer.", "enum": [ "referer" ] }, "referer": { "type": "string", "description": "The base URL of the client application that will use the token to access the Portal for ArcGIS API. In the Generate Token page, the referer is specified in the Webapp URL field, for example: referer=http: //myserver/mywebapp" }, "expiration": { "type": "number", "description": "The token expiration time in minutes. The default is 60 minutes. The maximum expiration period is 15 days. Example: expiration=60 (1 hour). The maximum value of the expiration time is controlled by the server. Requests for tokens larger than this time will be rejected. Applications are responsible for renewing expired tokens; expired tokens will be rejected by the server on subsequent requests that use the token." }, "token": { "type": "string", "description": "Portal token generated in exchange for user credentials for use by clients working with a federated server. Example: token=. This parameter is required only when generating a server-token. Username, password, client, referrer, and expiration parameters are not required for generating a server-token. The referrer and expiration time of the portal token will be applied to the server-token. " }, "serverURL": { "type": "string", "description": "URL of a federated server for which a server-token needs to be generated. Example: serverUrl=. A server-token will be returned only if the serverUrl contains the URL of a server that is registered with the portal. A server-token will not be generated for a server that is not registered with the portal. " } } } } }