You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Defines the user(s) for this Sync Gateway database
3376
-
# $ref: "#/definitions/user"
3377
-
3378
-
# roles:
3379
-
# type: object
3380
-
# title: role
3381
-
# description: |+
3382
-
# Defines the role(s) for this Sync Gateway database
3383
-
# $ref: "#/definitions/role"
3384
-
3385
3382
guest:
3386
3383
type: object
3387
3384
description: |+
@@ -4694,7 +4691,7 @@ definitions:
4694
4691
channel(doc.channels);
4695
4692
}
4696
4693
4697
-
user:
4694
+
User:
4698
4695
type: object
4699
4696
title: "User Configuration Model"
4700
4697
description: |+
@@ -4773,6 +4770,43 @@ definitions:
4773
4770
type: string
4774
4771
description: Role name
4775
4772
4773
+
User-response:
4774
+
type: object
4775
+
properties:
4776
+
name:
4777
+
type: string
4778
+
description: |+
4779
+
The user name (the same name used in the URL path).
4780
+
4781
+
admin_channels:
4782
+
4783
+
description: |+
4784
+
The channels that the user is able to access.
4785
+
items:
4786
+
type: string
4787
+
description: |+
4788
+
Channel name
4789
+
4790
+
all_channels:
4791
+
type: array
4792
+
description: |+
4793
+
Shows the channels the user can access, as granted by the sync function.
4794
+
4795
+
readOnly: true
4796
+
items:
4797
+
type: string
4798
+
description: Channel name
4799
+
4800
+
email:
4801
+
type: string
4802
+
description: |+
4803
+
Email address of the user.
4804
+
disabled:
4805
+
type: boolean
4806
+
description: |+
4807
+
This property is usually not included.
4808
+
If the value is `true`, access for the account is disabled and the user will not be able to login.
4809
+
4776
4810
4777
4811
AllDatabases:
4778
4812
type: array
@@ -5195,45 +5229,7 @@ definitions:
5195
5229
ok:
5196
5230
type: boolean
5197
5231
description: Indicates whether the operation was successful
5198
-
User:
5199
-
type: object
5200
-
properties:
5201
-
name:
5202
-
type: string
5203
-
description: The user name (the same name used in the URL path). The valid characters for a user name are alphanumeric ASCII characters and the underscore character. The name property is required in a POST request. You don’t need to include it in a PUT request because the user name is specified in the URL.
5204
-
password:
5205
-
type: string
5206
-
description: Password of the user that will be created. Required, unless the `allow_empty_password` Sync Gateway per-database configuration value is set to `true`, in which case the password can be omitted.
5207
-
admin_channels:
5208
-
type: array
5209
-
description: The channels that the user is explicitly granted access to through the Admin REST API.
5210
-
items:
5211
-
type: string
5212
-
description: Channel name
5213
-
admin_roles:
5214
-
type: array
5215
-
description: The roles that the user is explicitly granted access to through the Admin REST API.
5216
-
items:
5217
-
type: string
5218
-
description: Role name
5219
-
all_channels:
5220
-
type: array
5221
-
description: Like the `admin_channels` property, but also includes channels the user is given access to by other documents via a sync function. This is a derived property and changes to it are ignored.
5222
-
items:
5223
-
type: string
5224
-
description: Channel name
5225
-
email:
5226
-
type: string
5227
-
description: Email of the user that will be created.
5228
-
disabled:
5229
-
type: boolean
5230
-
description: This property is usually not included. If the value is set to `true`, access for the account is disabled and the user will not be able to login.
5231
-
roles:
5232
-
type: array
5233
-
description: Like the `admin_roles` property, but also includes roles the user is given access to by other documents via a sync function. This is a derived property and changes to it are ignored. It contains an array of role name strings.
5234
-
items:
5235
-
type: string
5236
-
description: Role name
5232
+
5237
5233
ChangesFeedRow:
5238
5234
type: object
5239
5235
properties:
@@ -6904,7 +6900,7 @@ parameters:
6904
6900
name: body
6905
6901
description: Request body
6906
6902
schema:
6907
-
$ref: '#/definitions/user'
6903
+
$ref: '#/definitions/User'
6908
6904
6909
6905
6910
6906
@@ -7341,7 +7337,7 @@ parameters:
7341
7337
name: user configuration data
7342
7338
description: Provision the user configuration data in JSON format in the body
0 commit comments