code | type | title | description |
---|---|---|---|
true |
page |
createOrReplaceProfile |
Creates a new profile or, if the provided profile identifier already exists, replaces it. |
Creates a new profile or, if the provided profile identifier already exists, replaces it.
createOrReplaceProfile(id, body, [options]);
Property | Type | Description |
---|---|---|
id |
string |
Profile identifier |
body |
object |
Profile definition content |
options |
object |
Query options |
Property | Type | Description |
---|---|---|
policies |
object |
Profile content |
Property | Type (default) |
Description |
---|---|---|
queuable |
boolean ( true ) |
If true, queues the request during downtime, until connected to Kuzzle again |
refresh |
boolean ( false ) |
If set to wait_for , Kuzzle will not respond until the created/replaced profile is indexed |
A Profile
object representing the updated/created profile.
<<< ./snippets/create-or-replace-profile.js