GET/companies/:companyId
Get company by his id
| Param | Type | Default | Description |
|---|---|---|---|
| companyd | Stri | hash id of customer |
GET/companies/all
Get companies
| Param | Type | Default | Description |
|---|---|---|---|
| page | Int | page number |
|
| query | String | search by first/last name, email | |
| limit | Int | limit list to response | |
| byColumn | String | column name sorting | |
| ascending | Int | 1-ASC -1-DSC |
POST/companies
Create new company
| Body | Type | Default | Validation | Description |
|---|---|---|---|---|
| companyName | Stri | required | name of company |
{
"companyName": "New company"
}PUT/companies/:companyId
Edit company. Can update all fields
| Param | Type | Default | Description |
|---|---|---|---|
| companyId | Stri | company id |
| Body | Type | Default | Validation | Description |
|---|---|---|---|---|
| companyName | String | required | name of company |
{
"companyName": "New company2"
}DELETE/companies/:companyId
Delete the company
| Param | Type | Default | Description |
|---|---|---|---|
| companyId | Stri | company hash id to delete |
See how MPower replaces your disconnected tools with one platform — from the first lead to the final shipment.
A product specialist will reach out within one business day to schedule your demo.