Users
Was this helpful?
Was this helpful?
Get a user by their ID.
The ID of the user to retrieve.
3131f219-16bb-4c95-853a-894ae12db42a
GET /api/v1/user/{id} HTTP/1.1
Host: api.secoda.co
Authorization: Bearer string
Accept: */*
{
"id": "3131f219-16bb-4c95-853a-894ae12db42a",
"first_name": "Sample",
"last_name": "User",
"email": "sample@sample.com",
"role": "editor",
"workspace_id": "f71585fa-251c-4102-8d81-c97c57c8d435",
"profile_picture": "image.jpg",
"pending": "False",
"user_groups": [
"f71585fa-251c-4102-8d81-c97c57c8d435"
],
"bookmarks": [
"f71585fa-251c-4102-8d81-c97c57c8d435"
],
"workspace": "f71585fa-251c-4102-8d81-c97c57c8d435",
"is_service_account": false,
"service_account_count_popularity": true,
"last_login": "None",
"new_feature_acknowledged": true,
"disabled": false
}
Delete a user by their ID.
The ID of the user to delete.
3131f219-16bb-4c95-853a-894ae12db42a
DELETE /api/v1/user/{id} HTTP/1.1
Host: api.secoda.co
Authorization: Bearer string
Accept: */*
No content
Get a list of users.
GET /api/v1/user HTTP/1.1
Host: api.secoda.co
Authorization: Bearer string
Accept: */*
{
"links": {
"next": "https://api.secoda.co/resource/all/?page=2",
"previous": "None"
},
"meta": {
"page": 1,
"previous_page": "None",
"next_page": 2
},
"count": 315,
"total_pages": 7,
"results": [
{
"id": "3131f219-16bb-4c95-853a-894ae12db42a",
"first_name": "Sample",
"last_name": "User",
"email": "sample@sample.com",
"role": "editor",
"workspace_id": "f71585fa-251c-4102-8d81-c97c57c8d435",
"profile_picture": "image.jpg",
"pending": "False",
"user_groups": [
"f71585fa-251c-4102-8d81-c97c57c8d435"
],
"bookmarks": [
"f71585fa-251c-4102-8d81-c97c57c8d435"
],
"workspace": "f71585fa-251c-4102-8d81-c97c57c8d435",
"is_service_account": false,
"service_account_count_popularity": true,
"last_login": "None",
"new_feature_acknowledged": true,
"disabled": false
}
]
}
Create a new user in the workspace.
Indicates the first name of the user.
Sample
Indicates the last name of the user.
User
Indicates the email id of the user.
sample@sample.com
Indicates the role of the user. Values can be - Admin Editor Viewer Guest
editor
List of team IDs (optional). It is mandatory if the role is guest.
["33733f42-8ff7-460b-9e20-50a2133d3bb0","c90dedee-40ee-47ec-9c27-96dc3b2ec363"]
List of group IDs (optional)
["33733f42-8ff7-460b-9e20-50a2133d3bb0","c90dedee-40ee-47ec-9c27-96dc3b2ec363"]
POST /api/v1/user HTTP/1.1
Host: api.secoda.co
Authorization: Bearer string
Content-Type: application/json
Accept: */*
Content-Length: 268
{
"first_name": "Sample",
"last_name": "User",
"email": "sample@sample.com",
"role": "editor",
"teams": [
"33733f42-8ff7-460b-9e20-50a2133d3bb0",
"c90dedee-40ee-47ec-9c27-96dc3b2ec363"
],
"user_groups": [
"33733f42-8ff7-460b-9e20-50a2133d3bb0",
"c90dedee-40ee-47ec-9c27-96dc3b2ec363"
]
}
{
"id": "3131f219-16bb-4c95-853a-894ae12db42a",
"first_name": "Sample",
"last_name": "User",
"email": "sample@sample.com",
"role": "editor",
"workspace_id": "f71585fa-251c-4102-8d81-c97c57c8d435",
"profile_picture": "image.jpg",
"pending": "False",
"user_groups": [
"f71585fa-251c-4102-8d81-c97c57c8d435"
],
"bookmarks": [
"f71585fa-251c-4102-8d81-c97c57c8d435"
],
"workspace": "f71585fa-251c-4102-8d81-c97c57c8d435",
"is_service_account": false,
"service_account_count_popularity": true,
"last_login": "None",
"new_feature_acknowledged": true,
"disabled": false
}
Use this endpoint to update the user. Editable fields include the first name, last name, and role.
The ID of the user to update.
3131f219-16bb-4c95-853a-894ae12db42a
Indicates the first name of the user.
Sample
Indicates the last name of the user.
User
PATCH /api/v1/user/{id} HTTP/1.1
Host: api.secoda.co
Authorization: Bearer string
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"first_name": "Sample",
"last_name": "User"
}
{
"id": "3131f219-16bb-4c95-853a-894ae12db42a",
"first_name": "Sample",
"last_name": "User",
"email": "sample@sample.com",
"role": "editor",
"workspace_id": "f71585fa-251c-4102-8d81-c97c57c8d435",
"profile_picture": "image.jpg",
"pending": "False",
"user_groups": [
"f71585fa-251c-4102-8d81-c97c57c8d435"
],
"bookmarks": [
"f71585fa-251c-4102-8d81-c97c57c8d435"
],
"workspace": "f71585fa-251c-4102-8d81-c97c57c8d435",
"is_service_account": false,
"service_account_count_popularity": true,
"last_login": "None",
"new_feature_acknowledged": true,
"disabled": false
}