Search...
/
Community
Create Account
Sign in
Overview
Welcome
Authentication
Using Environments
API Reference
Accounts
Actions
Agents
Apps
Assistant
Commits
Data Retention Policies
Documents
Entitlements
Environments
Events
Files
Guests
Jobs
Mapping
Records
Roles
Secrets
Sheets
Snapshots
Spaces
Users
GET
List users
POST
Create and Invite User
POST
Resend User Invite
PATCH
Update a user
GET
Get a user
DEL
Delete a user
GET
List User Roles
POST
Assign Role to User
DEL
Remove Role from User
Versions
Views
Workbooks
Community
Create Account
Sign in
API Reference
Users
Assign Role to User
POST
https://api.x.flatfile.com/v1
/
users
/
:userId
/
roles
Assigns a role to a user.
Path parameters
userId
string
Required
The user id
Headers
X-Disable-Hooks
"true"
Required
Request
This endpoint expects an object.
roleId
string
Required
Role ID
resourceId
string
Required
Show 3 variants
Response
This endpoint returns an object.
data
object
Show 6 properties
Errors
400
Bad Request
403
Forbidden
404
Not Found
Built with