Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.24 KB

File metadata and controls

45 lines (31 loc) · 1.24 KB
code type title description
true
page
createOrReplaceProfile
Creates a new profile or, if the provided profile identifier already exists, replaces it.

createOrReplaceProfile

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

body

Property Type Description
policies
object
Profile content

options

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

Resolves

A Profile object representing the updated/created profile.

Usage

<<< ./snippets/create-or-replace-profile.js