createOrUpdateEntitySettings
Creates or updates the entity settings for an entity. Currently this how the following are configured/persisted:
- allowed participation channels
- allowed locations (geometries representing the region(s) on the map where users can draw custom geometries to attach to their posts/replies)
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
entity Required |
An IHubEntity that implements discussions-related traits |
||
requestOptions Required | IHubRequestOptions |
An IHubRequestOptions object |
|
allowedLocations Optional | Polygon[] | null |
An optional Polygon[] representing the allowed locations for discussion post/reply geometries, defaults to null |
Available requestOptions
Property | Type | Notes |
---|---|---|
Optional | ArcGISIdentityManager | |
Optional | function(input: RequestInfo, init: RequestInit) : Promise<Response> |
The implementation of |
Optional | string | |
Optional | boolean | |
Optional | IHubRequestOptionsPortalSelf |
Returns
a promise that resolves an IEntitySetting object
Property | Type | Notes |
---|---|---|
string | ||
IEntitySettings | ||
EntitySettingType | ||
Inherited | Date | |
Inherited | string | |
Inherited | string | |
Inherited | Date |
Function defined in common/src/core/_internal/createOrUpdateEntitySettings.ts:21