shareSavedSearch

POST
1
/{orgId}/{itemId}/searches/{searchId}/shareWith

Share a saved search

Update the list of groups a saved search is shared with by specifying the updated list in the json body. The adminAdvanced privilege is required.

Share Saved Search Parameters:

ParameterDescriptionData Type
groupIdsRequired. Defines the Group Ids that the saved search will be shared with.Array[String]

Query parameters

NameTypeRequired

token

string

Body parameters

Supported content types: application/json

NameTypeRequiredDescription

The list of groups to share the saved search.

groupIds

[string]

body

The list of groups to share the saved search.

Path parameters

NameTypeRequired

searchId

string

orgId

string

itemId

string

Examples

Request

1
2
3
4
5
6
# You can also use wget
curl -X POST /{orgId}/{itemId}/searches/{searchId}/shareWith \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}' \
  --data '{"groupIds":["string"]}'

Response

StatusMeaningDescriptionSchema

200

OK

success

Success

400

Bad Request

Error

WorkflowExceptionDTO

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

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close