User authentication and session management for B2B integrations
- Removing a User from Companies
Get location users
Remove the user from the location
Get a list of rights
Getting a list of user roles
Getting a list of user roles in the context of a location user
Getting permission values and user role
Updating permission values and user role
Create and Send an Invitation
Copy a User to Companies
Deprecated. Get location users
Removing a User from Comp...
Business Management (1.0.0)
Full-featured B2B API for business operations.
Base URL: https://api.alteg.io/api
V1 will be gradually deprecated. We recommend using V2 API for new integrations. V1 endpoints are maintained for backward compatibility, but new features will be released in V2 only.
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://developer.alteg.io/_mock/en/b2b-v1/openapi/
Production
https://api.alteg.io/api/v1/
Request
Copies an active user and their permissions to multiple locations at once. If the user does not yet exist in a location, they will be added as an active user. If the user has already been invited to the location, only their permissions will be updated — however, they will still need to accept the invitation.
Security
BearerPartnerUser
List of locations to copy the user to
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/users/{user_id}/copy_to_companies
- Productionhttps://api.alteg.io/api/v1/company/{location_id}/users/{user_id}/copy_to_companies
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/company/123/users/123/copy_to_companies \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"user_company_links": [
{
"company_id": 123,
"user_permissions": [
{
"slug": "timetable_access",
"value": true
}
]
}
]
}'Response
application/json
{ "success": true, "data": null, "meta": {} }
Bodyapplication/json
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/users/{user_id}/remove_from_companies
- Productionhttps://api.alteg.io/api/v1/company/{location_id}/users/{user_id}/remove_from_companies
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/company/123/users/123/remove_from_companies \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"user_company_links": [
{
"company_id": 123
}
]
}'Response
application/json
{ "success": true, "data": null, "meta": {} }
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company_users/{location_id}
- Productionhttps://api.alteg.io/api/v1/company_users/{location_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/company_users/{location_id}' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Array of objects with data
Example: [{"id":224348,"firstname":"James","login":"j.smith","email":"j.smith@example.com","phone":"+13155550175","information":"Test user","access":{"stat_access":true,"schedule_edit_access":false,"client_phones_access":false,"clients_access":false,"settings_access":false,"edit_records_access":false,"timetable_access":true,"billing_access":false,"users_access":false,"excel_access":false,"finances_access":false,"storages_access":false,"send_sms":true,"master_id":0}},{"id":11,"firstname":"James","login":"j.smith","email":"j.smith@example.com","phone":"+13155550175","information":"Test user","access":{"stat_access":true,"schedule_edit_access":true,"client_phones_access":true,"clients_access":true,"settings_access":true,"edit_records_access":true,"timetable_access":true,"billing_access":true,"users_access":false,"excel_access":true,"finances_access":true,"storages_access":true,"send_sms":true,"master_id":0}}]
Response
application/json
{ "success": true, "data": [ { … }, { … } ], "meta": [] }