Users
Overview
Available Operations
getAllTokens - Get All Tokens
removeToken - Remove Token
list - Get All Users
add - Add User
updateOrgLevelPermissions - Update Org Level Permissions
delete - Delete User
getRoles - Get User Roles
removeFromOrg - Remove User From Org
getById - Get User By ID
updateById - Update User by userID
getAllTokens
Returns generated api tokens of all the users of the organization. Requires access_token as a Bearer {{token}} in the Authorization header with read scope.
Example Usage
Standalone function
The standalone function version of this method:
Parameters
options
RequestOptions
➖
Used to set various options for making HTTP requests.
options.fetchOptions
➖
Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
Response
Promise<operations.UsersGetAllTokensResponse>
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
removeToken
Removes refresh token of a user from organization. Upon success the refresh token of a user will be removed from the organization. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.
Example Usage
Standalone function
The standalone function version of this method:
Parameters
options
RequestOptions
➖
Used to set various options for making HTTP requests.
options.fetchOptions
➖
Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
Response
Promise<Uint8Array>
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
list
Returns all the users of the organization. Requires access_token as a Bearer {{token}} in the Authorization header with read scope.
Example Usage
Standalone function
The standalone function version of this method:
Parameters
options
RequestOptions
➖
Used to set various options for making HTTP requests.
options.fetchOptions
➖
Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
Response
Promise<operations.UsersGetAllUsersResponse>
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
add
Add user to the organization with given role if not exists. Returns the user object in response. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.
Example Usage
Standalone function
The standalone function version of this method:
Parameters
options
RequestOptions
➖
Used to set various options for making HTTP requests.
options.fetchOptions
➖
Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
Response
Promise<operations.UsersAddUserResponse>
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
updateOrgLevelPermissions
Update Org Level Permissions
Example Usage
Standalone function
The standalone function version of this method:
Parameters
options
RequestOptions
➖
Used to set various options for making HTTP requests.
options.fetchOptions
➖
Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
Response
Promise<operations.UsersUpdateOrgLevelPermissionsResponse>
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
delete
This API replaces the swap_user for all the entities in Squadcast with user_id provided and deletes the user.
Example Usage
Standalone function
The standalone function version of this method:
Parameters
options
RequestOptions
➖
Used to set various options for making HTTP requests.
options.fetchOptions
➖
Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
Response
Promise<operations.UsersDeleteUserResponse>
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
getRoles
Returns all available user roles. Requires access_token as a Bearer {{token}} in the Authorization header with read scope.
Example Usage
Standalone function
The standalone function version of this method:
Parameters
options
RequestOptions
➖
Used to set various options for making HTTP requests.
options.fetchOptions
➖
Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
Response
Promise<operations.UsersGetUserRolesResponse>
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
removeFromOrg
Remove user from organization. Upon sccess the user will be removed from the organization. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.
Example Usage
Standalone function
The standalone function version of this method:
Parameters
options
RequestOptions
➖
Used to set various options for making HTTP requests.
options.fetchOptions
➖
Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
Response
Promise<Uint8Array>
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
getById
Returns a users details of the given userID in the request param. Requires access_token as a Bearer {{token}} in the Authorization header with read scope.
Example Usage
Standalone function
The standalone function version of this method:
Parameters
options
RequestOptions
➖
Used to set various options for making HTTP requests.
options.fetchOptions
➖
Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
Response
Promise<operations.UsersGetUserByIdResponse>
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
updateById
Update User by userID. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.
Example Usage
Standalone function
The standalone function version of this method:
Parameters
options
RequestOptions
➖
Used to set various options for making HTTP requests.
options.fetchOptions
➖
Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
Response
Promise<operations.UsersUpdateUserByIDResponse>
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
Last updated