Create or replace users

put

https://{your_site_interface}/opa-hub/api/12.2.35/users

This operation will create or replace users.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : userPut
Type: object
Show Source
Nested Schema : adminRoles
Type: array
An array of Administrator roles for this user.
Show Source
  • Allowed Values: [ "Permissions Administrator", "Connections Administrator" ]
Nested Schema : workspaces
Type: array
The list of workspaces that the user has roles in.
Show Source
Nested Schema : userWorkspacePut
Type: object
Show Source
Nested Schema : roles
Type: array
The list of roles that the user has in the workspace.
Show Source
  • Allowed Values: [ "Deploy Admin", "Policy Author", "Determinations API", "Chat Service", "Viewer" ]
Security
  • Type: apiKey
    Description: Obtain a bearer token from https://{your_site_interface}/opa-hub/api/12.2.17/auth and use it in the Authorization header as: Bearer {token}.
  • Type: oauth2
    Description: POST the OAuth2 Client Credentials parameters to https://{your_site_interface}/opa-hub/api/12.2.17/auth and use the access token from the response in the Authorization header.
Back to Top

Response

Supported Media Types

201 Response

The request has been fulfilled and resulted in a new resource being created.
Body ()
Root Schema : users
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : user
Type: object
Show Source
Nested Schema : adminRoles
Type: array
An array of Administrator roles for this user.
Show Source
  • Allowed Values: [ "Permissions Administrator", "Connections Administrator" ]
Nested Schema : workspaces
Type: array
The list of workspaces that the user has roles in.
Show Source
Nested Schema : userWorkspace
Type: object
Show Source
Nested Schema : roles
Type: array
The list of roles that the user has in the workspace.
Show Source
  • Allowed Values: [ "Deploy Admin", "Policy Author", "Determinations API", "Chat Service", "Viewer" ]

400 Response

The request could not be processed because it contains missing or invalid information.
Back to Top