LeadsyGroup
  1. User Company Relation
LeadsyGroup
  • API V1
    • Users
      • Remove a user avatar
      • Upload a user avatar
      • Create a user
      • Validate JWT
      • Find a user by email
      • Show all users
      • Login into the application
      • Reset user password
      • Show a user
      • Update a user
    • Stages
      • List stages
    • Companies
      • Remove a company avatar
      • Upload a company avatar
      • Create company
      • List companies
      • Get an specific company
    • User Onboarding
      • Mark as completed the onboarding
      • Approve T&C
    • User Company Relation
      • Create user_accesses for a user
        POST
      • Show user_accesses for a user
        GET
      • Remove an specific user_access
        DELETE
      • Update user_accesses for a user
        PUT
    • Accesses
      • List all available accesses
      • List access by id
    • Memberships
      • List available memberships
      • Info of a membership
    • Legal Terms
      • Current available for signature
      • Get legal terms per id
    • Invitations
      • Creates user invitation
      • Get pending invitations by email
    • Import
      • List of ImportFiles
      • Check status of an import
      • Import leads for a company
    • Campaigns
      • List campaigns for a company
      • Get campaign by id
    • Questions
      • Bulk update question options for a campaign
      • List questions for a campaign
      • Get question for ID
    • Cycles
      • Modify cycles flag in company
      • Create a cycle for company
    • Membership
      • Attach membership to company
      • Cancel current subscription
    • Company Users
      • Get users from an specific company
  1. User Company Relation

Create user_accesses for a user

POST
/api/v1/users/{user_id}/user_access

Request

Path Params

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢201
application/json
User access created successfully
Body

🟠401
🟠403
🟠404
🟠422
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/users//user_access' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "user_id": 0,
    "company_id": 0,
    "primary": true,
    "access_id": 0
}'
Response Response Example
201 - Example 1
{
    "user_access": {
        "id": 0,
        "primary": true,
        "company": {
            "id": 0,
            "name": "string",
            "default": true,
            "parent_company_id": 0
        },
        "access": {
            "id": 0,
            "name": "string",
            "code": "string"
        },
        "user": {
            "id": 0,
            "first_name": "string",
            "last_name": "string",
            "email": "user@example.com",
            "status": "string",
            "lang": "string",
            "theme": "string",
            "currency": "string",
            "birthdate": "string",
            "full_name": "string",
            "avatar_route": "string"
        }
    }
}
Modified at 2026-02-17 21:54:09
Previous
Approve T&C
Next
Show user_accesses for a user
Built with