Associate a user with a study role
put
/ec-auth-svc/rest/v2.0/authusers/{userid}/studies/{studyId}
Updates the list if user roles are based on the studyRole parameter.
Request
Path Parameters
-
studyId(required): string(uuid)
Study ID
-
userid(required): string(uuid)
User ID
Supported Media Types
- application/json
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : schema
Type:
Show Source
object
-
allowedMethods: array
allowedMethods
Unique Items Required:
true
-
cookies: object
cookies
Additional Properties Allowed: additionalProperties
-
date: string
(date-time)
-
entity: object
entity
-
entityTag: object
entityTag
-
headers: object
headers
Additional Properties Allowed: additionalProperties
-
language: object
language
-
lastModified: string
(date-time)
-
length: integer
(int32)
-
links: array
links
Unique Items Required:
true
-
location: string
(uri)
-
mediaType: object
mediaType
-
metadata: object
metadata
Additional Properties Allowed: additionalProperties
-
status: integer
(int32)
-
statusInfo: object
statusInfo
-
stringHeaders: object
stringHeaders
Additional Properties Allowed: additionalProperties
Nested Schema : entity
Type:
object
Nested Schema : language
Type:
Show Source
object
-
country: string
-
displayCountry: string
-
displayLanguage: string
-
displayName: string
-
displayScript: string
-
displayVariant: string
-
extensionKeys: array
extensionKeys
Unique Items Required:
true
-
iso3Country: string
-
iso3Language: string
-
language: string
-
script: string
-
unicodeLocaleAttributes: array
unicodeLocaleAttributes
Unique Items Required:
true
-
unicodeLocaleKeys: array
unicodeLocaleKeys
Unique Items Required:
true
-
variant: string
Nested Schema : mediaType
Type:
Show Source
object
-
parameters: object
parameters
Additional Properties Allowed: additionalProperties
-
subtype: string
-
type: string
-
wildcardSubtype: boolean
-
wildcardType: boolean
Nested Schema : statusInfo
Type:
Show Source
object
-
family: string
Allowed Values:
[ "INFORMATIONAL", "SUCCESSFUL", "REDIRECTION", "CLIENT_ERROR", "SERVER_ERROR", "OTHER" ]
-
reasonPhrase: string
-
statusCode: integer
(int32)
Nested Schema : items
Type:
object
Nested Schema : items
Type:
Show Source
object
-
params: object
params
Additional Properties Allowed: additionalProperties
-
rel: string
-
rels: array
rels
-
title: string
-
type: string
-
uri: string
(uri)
-
uriBuilder: object
uriBuilder
Nested Schema : uriBuilder
Type:
object
Nested Schema : items
Type:
object
400 Response
Bad request
Root Schema : schema
Type:
Show Source
object
-
allowedMethods: array
allowedMethods
Unique Items Required:
true
-
cookies: object
cookies
Additional Properties Allowed: additionalProperties
-
date: string
(date-time)
-
entity: object
entity
-
entityTag: object
entityTag
-
headers: object
headers
Additional Properties Allowed: additionalProperties
-
language: object
language
-
lastModified: string
(date-time)
-
length: integer
(int32)
-
links: array
links
Unique Items Required:
true
-
location: string
(uri)
-
mediaType: object
mediaType
-
metadata: object
metadata
Additional Properties Allowed: additionalProperties
-
status: integer
(int32)
-
statusInfo: object
statusInfo
-
stringHeaders: object
stringHeaders
Additional Properties Allowed: additionalProperties
Nested Schema : entity
Type:
object
Nested Schema : language
Type:
Show Source
object
-
country: string
-
displayCountry: string
-
displayLanguage: string
-
displayName: string
-
displayScript: string
-
displayVariant: string
-
extensionKeys: array
extensionKeys
Unique Items Required:
true
-
iso3Country: string
-
iso3Language: string
-
language: string
-
script: string
-
unicodeLocaleAttributes: array
unicodeLocaleAttributes
Unique Items Required:
true
-
unicodeLocaleKeys: array
unicodeLocaleKeys
Unique Items Required:
true
-
variant: string
Nested Schema : mediaType
Type:
Show Source
object
-
parameters: object
parameters
Additional Properties Allowed: additionalProperties
-
subtype: string
-
type: string
-
wildcardSubtype: boolean
-
wildcardType: boolean
Nested Schema : statusInfo
Type:
Show Source
object
-
family: string
Allowed Values:
[ "INFORMATIONAL", "SUCCESSFUL", "REDIRECTION", "CLIENT_ERROR", "SERVER_ERROR", "OTHER" ]
-
reasonPhrase: string
-
statusCode: integer
(int32)
Nested Schema : items
Type:
object
Nested Schema : items
Type:
Show Source
object
-
params: object
params
Additional Properties Allowed: additionalProperties
-
rel: string
-
rels: array
rels
-
title: string
-
type: string
-
uri: string
(uri)
-
uriBuilder: object
uriBuilder
Nested Schema : uriBuilder
Type:
object
Nested Schema : items
Type:
object