Company Users are the people within a Company account that need access to the CleverFox Backup website. Company Users have access to all associated devices, jobs, and logs.
All of the attribute fields are returned from GET (read) operations. Only those attributes not marked as read only may be set via POST (create) or PUT (update) operations.
Name | Type | Notes |
---|---|---|
CompanyUserId | Integer | Read Only |
CompanyId | Integer | Required on POST, otherwise Read Only |
Company | Object | See API Companies |
FirstName | String 25 | Required |
LastName | String 25 | Required |
String 256 | Required | |
HomePhone | String 20 | |
MobilePhone | String 20 | |
WorkPhone | String 20 | |
IsAccountOwner | Boolean | Read Only |
IsInactive | Boolean | |
AddedOn | DateTime UTC | Read Only |
UpdatedOn | DateTime UTC | Read Only |
Token | String 50 | See API Duplication Prevention |
Returns an array of Company Users in descending order.
https://cleverfoxbackup.com/api/companyusers
{ "data": [ { "CompanyUserId": 1, "CompanyId": 1, "Company": { "CompanyId": 1, "PartnerId": 1, "Partner": null, "PlanTypeId": 1, "PlanType": null, "Name": "ABC Company, Inc.", "AddressLine1": "1000 Main St", "AddressLine2": null, "CityMunicipality": "Anytown", "StateProvidence": "MI", "PostalCode": "12345", "Country": null, "Phone": null, "ExternalId": null, "IsInactive": false, "AddedOn": "2015-01-01T00:00:00.000", "UpdatedOn": null, "Token": null }, "FirstName": "John", "LastName": "Smith", "Email": "johnsmith@abccompany.com", "HomePhone": null, "MobilePhone": null, "WorkPhone": null, "IsAccountOwner": true, "IsInactive": false, "AddedOn": "2015-01-01T00:00:00.000", "UpdatedOn": null, "Token": null } ], "page_no": 1, "page_size": 25 }
Returns a single Company User.
https://cleverfoxbackup.com/api/companyusers/{CompanyUserId}
{ "data": { "CompanyUserId": 1, "CompanyId": 1, "Company": { "CompanyId": 1, "PartnerId": 1, "Partner": null, "PlanTypeId": 1, "PlanType": null, "Name": "ABC Company, Inc.", "AddressLine1": "1000 Main St", "AddressLine2": null, "CityMunicipality": "Anytown", "StateProvidence": "MI", "PostalCode": "12345", "Country": null, "Phone": null, "ExternalId": null, "IsInactive": false, "AddedOn": "2015-01-01T00:00:00.000", "UpdatedOn": null, "Token": null }, "FirstName": "John", "LastName": "Smith", "Email": "johnsmith@abccompany.com", "HomePhone": null, "MobilePhone": null, "WorkPhone": null, "IsAccountOwner": true, "IsInactive": false, "AddedOn": "2015-01-01T00:00:00.000", "UpdatedOn": null, "Token": null } }
Creates a Company User and returns the updated data.
https://cleverfoxbackup.com/api/companyusers
{ "data": { "CompanyId": 1, "FirstName": "John", "LastName": "Smith", "Email": "johnsmith@abccompany.com", "HomePhone": null, "MobilePhone": null, "WorkPhone": null, "IsAccountOwner": true, "IsInactive": false, "Token": null } }
Updates a Company User and returns the updated data.
https://cleverfoxbackup.com/api/companyusers/{CompanyUserId}
{ "data": { "FirstName": "John", "LastName": "Smith", "Email": "johnsmith@abccompany.com", "HomePhone": null, "MobilePhone": null, "WorkPhone": null, "IsInactive": false, "Token": null } }
Deletes a Company User.
https://cleverfoxbackup.com/api/companyusers/{CompanyUserId}