Before you call the Company API
Before you can call the methods on the Company API, you will need the “External ID”, “External Password” and "Company ID"

for the given company. You can find the required information by calling the reseller api and extracting the company.

(If any information is missing please contact support@rushfiles.com).

How to use methods to manage a Company and its Users, Groups and Shares

There is a REST like api avalible on the url:


     https://companyapi." + domain + "/companyapi.aspx"


In general there are two "fields" that needs to be filled in. And send in the header of the request.


Field 1 is the command, it holds the authentication data for the request.

Field 2 is the request data it self.


IMPORTANT Uri encode the request.


An example of create a user: (in C#)


RequestCommand command = new RequestCommand();

command.DeviceId = "companyconfigurator";

command.Method = "CreateUser";

command.Token = externalPassword;

command.UserId = externalId;


User user = new User(); //The new user to be created. 

user.Email = ""; //The email address of the user to be created

//Optionals

user.AltEmail = ""; //Alternative email of the user.

user.Name = ""; //Name of the new user

user.Company = ""; //Name of the company where user works/belongs

user.Title = ""; //Title of the user

user.Telephone = ""; //Phone number of the user

WebClient client = new WebClient();


CreateUserRequest request = new CreateUserRequest();

request.user = user;

request.companyId = companyId;

request.userAssociationType = AssociationType.Internal; //Can be set to Extrenal, Internal and Admin

string jsonCommand = JsonConvert.SerializeObject(command);

string jsonRequest = JsonConvert.SerializeObject(request);

jsonRequest = Uri.EscapeDataString(jsonRequest);


client.Headers["command"] = jsonCommand; 

client.Headers["data"] = jsonRequest;

string jsonResponse = client.DownloadString("https://companyapi." + domain + "/companyApi.aspx");

CreateUserResponce response = JsonConvert.DeserializeObject<CreateUserResponce>(jsonResponse);


An example of create a share: (in C#)


RequestCommand command = new RequestCommand();

command.DeviceId = "companyconfigurator";

command.Method = "CreateShare";

command.Token = externalPassword;

command.UserId = externalId;


Share share = new Share(); //The new user to be created. 

share.Name = ""; //Name of the share, illigal charaters will be removed on server.

share.ShareName= share.Name; //The ShareName needs to be set to the same as the Name property.

share.CompanyId = companyId; //Id of the company where the shares belongs.

share.ShareDefault = new ShareDefault();

share.ShareDefault.Owner = ""; //Email adderss of the owner of the share, has to be a user on the system (if you are in doubt set it to admin and let the users set them.)

share.ShareDefault.ShareCategory = ShareCategory.Corporate; // Can also be set to Team and Private.

//Optionals

share.HistoryCriterias = null; //If its not set its inherited from the company.


WebClient client = new WebClient();


CreateShareRequest request = new CreateShareRequest(); 

request.share = share;

request.companyId = companyId; //Same id as set in the share.

string jsonCommand = JsonConvert.SerializeObject(command);

string jsonRequest = JsonConvert.SerializeObject(request);

jsonRequest = Uri.EscapeDataString(jsonRequest);

client.Headers["command"] = jsonCommand;

client.Headers["data"] = jsonRequest;

string jsonResponse = client.DownloadString("https://companyapi." + domain + "/companyApi.aspx");

CreateShareResponce response = JsonConvert.DeserializeObject<CreateShareResponce>(jsonResponse);



How to call the API

 

First part:

Request Command Class :

 public class RequestCommand

 {

 public string Token { getset; } Use the externalPassword here

 public string UserId { getset; } Use the ExternalId here

 public string Method { getset; } // The method to use

 

 public string DeviceId { get; set; } //The Id of the Device sending the request. Use: "resellerconfigurator" or "companyconfigurator" on your own preferences.

 

 }

 

How to request/use a function in the API

The second part of parameters parameter need is a RequstObject from the list below
(The request object named with the desired method + Request should be used for that method
for example GetCompanyRequest for the GetCompany method, this also means the methods, has to have a

request object in order to be called.)

 

Under this paragraf the most common classed and requests are shown. Use the WDSL described on "My reseller" page to get the complete list and the class definitions.



public class GetAUserLogsRequest

{

        public DateTime Date { get; set; }

        public string UserId { get; set; }

}


public class UpdateCompanyMetadataRequest

{

        public string companyId { get; set; } //Id of the company to be updated

        public MetaData metaData { get; set; } //The new metadata for the company

        public HistoryCriterias HistoryCriterias { get; set; } //The new History Criterieas for the company

        public string ArchiveHostingUrl { get; set; }

        public string ArchiveLocalUrl { get; set; }

        public CompanyDefault CompanyDefault { get; set; } //The new Company defualts

}


public class ResendRequest

{

        public string companyId { get; set; }//Company which is sending the mail

        public string UserId { get; set; }//Resends an invitation or reset password mail to the given User

}


public class ResendResellerRequest

{

        public string resellerId { get; set; }

        public string UserId { get; set; }

}


public class UpdateResellerAdminRequest

{

        public string resellerId { get; set; }

        public string userId { get; set; }

        public bool add { get; set; }

}


public class RemoveUserFromShareRequest

{

        public string companyId { get; set; } //Company which the Share and User is located on

        public string userId { get; set; } //User to be removed

        public string shareId { get; set; } //Share to be removed from

}


public class RemoveGroupFromShareRequest

{

        public string companyId { get; set; } //Company which the Share and Group is located on

        public string groupId { get; set; } //Group to be removed

        public string shareId { get; set; } //Share to be removed from

}


public class GetUsersRequest

{

        public string companyId { get; set; } //Company which to get all the users from

}


public class GetResellersAdminsRequest

{

        public bool associatied { get; set; }

        public string resellerId { get; set; }

}


public class GetUsersFromShareRequest

{

        public bool associatied { get; set; } //True to get all users already associated with the given Share, False to get all users not associated with the given Share

        public string shareId { get; set; } //The Share to get the Users for

        public string companyId { get; set; } //The Company which the Share and Users are located on

}


public class GetUsersFromGroupRequest

{

        public bool associatied { get; set; } //True to get all users already associated with the given Group, False to get all users not associated with the given Group

        public string groupId { get; set; } //The Group to get the Users from

        public string companyId { get; set; } //The Company which the Share and Users are located on

}


public class CreateUserRequest

{

        public User user { get; set; } //The new User object

        public string companyId { get; set; } //The Company to add the User to

        public AssociationType userAssociationType { get; set; } //The Association Type to give the user (External, Internal and Admin)

        public UserDefault UserDefault { get; set; } //The new Users User Defaults (If none is sent company default is used)

}


public class UpdateUserRequest

{

        public User user { get; set; } //The updated User object

        public string companyId { get; set; } //The Company which the user is located on

        public AssociationType userAssociationType { get; set; } //The new AssociationType of the User (External, Internal and Admin)

        public UserDefault UserDefault { get; set; } //The new Users User Defaults (If none is sent old or company default is used)

}


public class DeleteUserRequest

{

        public string userId { get; set; } //The User to be deleted

        public string companyId { get; set; } //The Company to delete the User from

}


public class UpdateUserAclsRequest

{

        public string userId { get; set; } //The User to have updated it's ShareAcl's

        public List<ShareACL> userAcls { get; set; } //List of Updated(New) ShareAcl's to give or update a Users access to a Share

        public string companyId { get; set; } //The Company where the User and Shares are located

}


public class GetSharesRequest

{

        public string companyId { get; set; } //The Company to get the Shares from

}


public class GetSharesFromGroupRequest

{

        public bool associatied { get; set; } //True gets all Shares connected to the Group, False gets all shares not connected to the Group

        public string groupId { get; set; } //The group to get Shares from

        public string companyId { get; set; } //The Company where the Shares and Group are located

}


public class GetSharesFromUserRequest

{

        public bool associatied { get; set; } //True gets all Shares connected to the User, False gets all shares not connected to the User

        public string userId { get; set; } //The User to get Shares from

        public string companyId { get; set; } //The Company where the Shares and User are located

}


public class CreateShareRequest

{


        public Share share { get; set; } //The new Share object

        public string companyId { get; set; } //The Company on which to create the new Share

}


public class UpdateShareRequest

{

        public Share share { get; set; } //The updated Share object

        public string companyId { get; set; } //The Company which the Share is located on

}


public class DeleteShareRequest

{

        public string shareId { get; set; } //The Share to be deleted

        public string companyId { get; set; } //The Company which the Share is located on

}


public class GetGroupsRequest

{

        public string companyId { get; set; } //The Company to get all groups from

}


public class GetGroupsFromShareRequest

{

        public bool associatied { get; set; } //True gets all Groups connected to the Share, False gets all Groups not connected to the Share

        public string shareId { get; set; } //The Share to get Groups from

        public string companyId { get; set; } //The Company which the Share and Groups are located on

}


public class GetGroupsFromUserRequest

{

        public bool associatied { get; set; } //True gets all Groups connected to the User, False gets all Groups not connected to the User

        public string userId { get; set; } //The User to get Groups from

        public string companyId { get; set; } //The Company which the User and Groups are located on

}


public class CreateGroupRequest

{

        public Group group { get; set; } //The new Group object 

        public string companyId { get; set; } //The Company on which to create the new Group

}


public class AddUserToGroupRequest

{

        public string userId { get; set; } //The User to be added to the Group

        public string groupId { get; set; } //The Group to have added the User

        public string companyId { get; set; } //The Company on which the User and Group are located

}


public class RemoveUserFromGroupRequest

{

        public string userId { get; set; } //The User to be removed to the Group

        public string groupId { get; set; } //The Group to have removed the User

        public string companyId { get; set; } //The Company on which the User and Group are located

}


public class UpdateGroupAclsRequest

{

        public string groupId { get; set; } //The Group to have updated its ShareAcl's

        public List<ShareACL> acls { get; set; } //List of Updated(New) ShareAcl's to give or update a Group access to a Share

        public string companyId { get; set; } //The Company on which the Group and Shares are located

}


public class DeleteGroupRequest

{

        public string groupId { get; set; } //The Group to be deleted

        public string companyId { get; set; } //The Company on which the Group is located

}


public class UpdateGroupRequest

{

        public Group Group { get; set; } //The updated Group object

        public string companyId { get; set; } //The Company on which the Group is located

}


public class UpdateGlobalAdUserRequest 

{

        public string AdCode { get; set; }

        public User User { get; set; }

        public string ResellerId { get; set; }

}


public class UpdateAdUserRequest

{

        public string userId { get; set; }

        public string companyId { get; set; }

        public string alias { get; set; }

        public string name { get; set; }

}

   

public class GetShareWithAssociationsRequest

{

        public string CompanyId { get; set; }

        public string ShareId { get; set; }

}


public class GetShareWithAssociations2Request

{

        public string CompanyId { get; set; }

        public string ShareId { get; set; }

}


public class GetUserWithAssociationsRequest

{

        public string CompanyId { get; set; }

        public string UserId { get; set; }

}


public class GetGroupWithAssociationsRequest

{

        public string CompanyId { get; set; }

        public string GroupId { get; set; }

}


public abstract class ReportBaseRequest

{

        public bool IsForDownload { get; set; }

        public string CompanyId { get; set; }

        public string UserId { get; set; }

        public string ShareId { get; set; }

        public DateTime From { get; set; }

        public DateTime To { get; set; }

}


public class GetFileJournalReportRequest : ReportBaseRequest

{

        public ClientJournalEventType? JournalEventType { get; set; }

}


public class GetFileReportRequest : ReportBaseRequest

{

        public string SearchQuery { get; set; }

}


public class GetUserActionReportRequest : ReportBaseRequest

{

        public bool IncludeLogin { get; set; }

        public EventType? EventType { get; set; }

}

 

What does the API return

These response objects does all inherit from the class GeneralResponce, which contains a single property 

ResponceMessage and this property is always set on return with an appropriate response code.

 

public class UpdateCompanyMetadataResponce: GeneralResponce

{

        public bool responce { get; set; } //True if the Update wen't well, else false (Check ResponseMessage)

}

public class ResendResponce: GeneralResponce

{

        public bool responce { get; set; } //True if the mail was sent, else false (Check ResponseMessage)

}

public class RemoveUserFromShareResponce : GeneralResponce

{

        public bool responce { get; set; } //True if the User was removed from the Share, else false (Check ResponseMessage)

}

public class RemoveGroupFromShareResponce : GeneralResponce

{

        public bool responce { get; set; } //True if the Group was removed from the Share, else false (Check ResponseMessage)

}

//Deprecated

public class GetUserCompaniesResponce : GeneralResponce

{

        public List<AssociatedUser> responce { get; set; } //List of Associated Users for the given Company, Containing a User, an Association to the Company

                                                           //and if there is it, a Share Acl to the Users private Share (Check ResponseMessage)

}

public class GetUsersResponce : GeneralResponce

{

        public List<AssociatedUser> responce { get; set; }//List of Associated Users for the given Company, Containing a User, an Association to the Company

        //and if there a Share Acl to the Users private Share (Check ResponseMessage)

}

public class CreateUserResponce : GeneralResponce

{

        public bool responce { get; set; } //True if the User was created, else false (Check ResponseMessage)

        public User user { get; set; } //The new User object if created

}

public class UpdateUserResponce : GeneralResponce

{

        public bool responce { get; set; } //True if the User was updated, else false (Check ResponseMessage)

}

public class DeleteUserResponce : GeneralResponce

{

        public bool responce { get; set; } //True if the User was deleted, else false (Check ResponseMessage)

}

public class UpdateUserAclsResponce : GeneralResponce

{

        public bool responce { get; set; } //True if the Users Share Acls was updated/created, else false (Check ResponseMessage)

}

public class GetSharesResponce : GeneralResponce

{

        public List<Share> responce { get; set; } //List of Shares for the given Company

}

public class GetAssociatedSharesResponce : GeneralResponce

{

        public List<AssociatedShare> responce { get; set; }//List of Associated Shares for the given User, Containing a Share

                                                           //and if there is it, a Share Acl to the Users(Check ResponseMessage)

}


public class CreateShareResponce : GeneralResponce 

{

        public bool responce { get; set; } //True if the Share was created, else false (Check ResponseMessage)

        public Share share { get; set; } //The new Share object if created

}

public class UpdateShareResponce : GeneralResponce

{

        public bool responce { get; set; } //True if the Share was updated, else false (Check ResponseMessage)

}

public class DeleteShareResponce : GeneralResponce

{

        public bool responce { get; set; } //True if the Share was deleted, else false (Check ResponseMessage)

}

public class GetGroupsResponce : GeneralResponce

{

        public List<Group> responce { get; set; } //List of Groups for the given Company

}

public class GetAssociatedGroupsResponce : GeneralResponce

{

        public List<AssociatedGroup> responce { get; set; } //List of Associated Groups for the given User, Containing a Group

                                                            //and if there is it, a Group Acl to the Users(Check ResponseMessage)

}

public class CreateGroupResponce : GeneralResponce

{

        public bool responce { get; set; } //True if the Group was created, else false (Check ResponseMessage)

        public Group group { get; set; } //The new Group object

}

public class AddUserToGroupResponce : GeneralResponce

{

        public bool responce { get; set; } //True if the User was added to the Group, else false (Check ResponseMessage)

}

public class RemoveUserFromGroupResponce : GeneralResponce

{

        public bool responce { get; set; } //True if the User was removed to the Group, else false (Check ResponseMessage)

}

public class UpdateGroupAclsResponce : GeneralResponce

{

        public bool responce { get; set; } //True if the Group Acl was Updated, else false (Check ResponseMessage)

}

public class DeleteGroupResponce : GeneralResponce

{

        public bool responce { get; set; } //True if the User was deleted, else false (Check ResponseMessage)

}

public class UpdateGroupResponce : GeneralResponce

{

        public bool responce { get; set; } //True if the User was updated, else false (Check ResponseMessage)

}

     

public class UpdateGlobalAdUserResponse : GeneralResponce

{

        public User response { get; set; }

}

public class UpdateAdUserResponse : GeneralResponce

{

        public bool response;

}

public class GetShareWithAssociationsResponse : GeneralResponce

{

        public Share Share { get; set; }

        public List<AssociatedUser> Users { get; set; }

        public List<AssociatedGroup> Groups { get; set; }

}

public class GetShareWithAssociations2Response : GeneralResponce

{

        public UserAssociation CallerAssociation { get; set; }

        public Share Share { get; set; }

        public List<AssociatedUser> Users { get; set; }

        public List<AssociatedGroupWithMember> Groups { get; set; }

}

public class GetUserWithAssociationsResponse : GeneralResponce

{

        public User User { get; set; }

        public List<AssociatedShare> Shares { get; set; }

        public List<AssociatedGroupUser> Groups { get; set; }

        public UserAssociation Association { get; set; }

}

public class GetGroupWithAssociationsResponse : GeneralResponce

{

        public Group Group { get; set; }

        public List<AssociatedShare> Shares { get; set; }

        public List<AssociatedUserGroup> Users { get; set; }

}

   

public class FileJournalReportResponse : GeneralResponce

{

        public string ReportType { get; set; }

        public bool IsOverloaded { get; set; }

        public List<JournalSearchResult> ResultList { get; set; }

}

public class FileReportResponse : GeneralResponce

{

        public string ReportType { get; set; }

        public bool IsOverloaded { get; set; }

        public List<FileSearchResult> ResultList { get; set; }

}

public class UserActionReportResponse : GeneralResponce

{

        public string ReportType { get; set; }

        public bool IsOverloaded { get; set; }

        public List<DMJournalEvent> ResultList { get; set; }

        public string[] EventTypes { get; set; }

}

public class FileSearchResult

{

        public Share Share { get; set; }

        public List<FileWithPath> Files = new List<FileWithPath>();

}

public class FileWithPath

{

        public RfVirtualFile File { get; set; }

        public string FullPath { get; set; }

}

public class JournalSearchResult

{

        public Share Share { get; set; }

        public IEnumerable<ClientJournalEvent> Journals;

}

public class GetAUserLogsResponse : GeneralResponce

{

        public List<LoginJournalEvent> Logs { get; set; }

        public List<Device> Devices { get; set; }

}


Classes used for requests and responses


public class Company

{

        public string CompanyId { get; set; } //Cannot be set

        public string ExternalId { get; set; } //Can be set to a unique Id so it can be easily found.

        public string ExternalPassword { get; set; } //Cannot be set

        public string ResellerId { get; set; } //The reseller who is creating it or owns it.

        public string Name { get; set; }  //The name of the company and it has to be unique.

 

        //Optional

        public string Subdomain { get; set; } //Sub domain for personalized skinning of  webinterface for company

        public string Max_Space { get; set; } //In MB and is a soft limit.

        public string Max_Users { get; set; } //Is a soft limit

        public string Space_inUse { get; set; } //In MB and is a soft limit.

        public string History_Space { get; set; } //(Cannot be set) shows how much of the space used, that is history of files.

        public string Users_inUse { get; set; } //(Cannot be set)The number of users which is on the company

        public MetaData MetaData { get; set; } //Class containing address and contact information (Look further down for definition of the class).

        public HistoryCriterias HistoryCriterias { get; set; }  //Class containing history criterias for file versions(Look further down for definition of the class).

        public HistoryCriterias ResellerHistoryCriterias { get; set; }   //Class containing history criterias for file versions set by the reseller and is a minimum limit for HistoryCriterias on this company(Look further down for definition of the class).

        public bool IsCriteriasFrozen { get; set; } //Freezes the ResellerHistoryCriterias.

}

 

public enum CompanyStatus

        Activated, //0

        Deactivated, //1 

        Deleted,  //2

        Suspended //3

}

 

public class Share

{

        public string ShareId { get; set; } //Cannot be set 

        public string CompanyId { get; set; } //Id of the company where the shares belongs. 

        public string Name { get; set; } //Name of the share, illigal charaters will be removed on server. 

        public string ShareName { get; set; } //The ShareName should always be set to the same value as the Name property

        public ShareDefault ShareDefault { get; set; } //Contains the owner and type of the share (Look further down for a definition of the class). 


     //Optional

       public HistoryCriterias HistoryCriterias { get; set; } //History Criterias for the specific share (Look further down for a definition of the class).  

}


public class ShareDefault

{

        public string Owner { get; set; } //Email adderss of the owner of the share

        public ShareCategory ShareCategory { get; set; } //The type of the share (Look further down for definition of Enum)


public enum ShareCategory

{

        Coporate, //0

        Team, //1

        Private //2


public class MetaData

{

        public string Address { get; set; }

        public string ZipCode { get; set; }

        public string City { get; set; }

        public string Country { get; set; }

        public string Phone { get; set; }

        public string HomePage { get; set; }

        public string Fax { get; set; }

        public string NameContact { get; set; }

        public string EmailContact { get; set; }

}

 

public class HistoryCriterias

{

        public int MaxDays { get; set; } //Max number of days to keep a previous version of a file (Set to -1 for infinite days).

        public int MaxVersions { get; set; } //Max number of versions to keep of a file (set to -1 for infinite versions), version still gets deleted when MaxDays is exceeded. 

        public int KeepRestored { get; set; } //Max days to keep restored versions.

}


public class User

{

       public string UserId { get; set; } //(Cannot be set) Unique Id of the user, is automatically set to the value in Email on create 

       public string Email { get; set; } //Email address of the user

       public string Alias { get; set; } //(Cannot be set) alias used for AD login

       public string ResellerId { get; set; } //(Cannot be set) ResellerId of the reseller where the user is first created

       public UserStatus Status { get; set; } //(Cannot be set) the status of the user (Look further down for definition of the Enum)

       public bool AdUser { get; set; } //(Cannot be set) indicates if this user has been AD integrated

       //Optionals

       public string AltEmail { get; set; } //Alternative email for the user

       public string Name { get; set; } //If not set, it will automatically be set to Email field on create

       public string Company { get; set; } //Name of the company where user works/belongs

       public string Title { get; set; } //Title of the user

       public string Telephone { get; set; } //Phone number of the user

}

public class UserDefault

{

        public UserCrtShare UserCrtShare { get; set; } //Determins if the user can create shares (External users are never allowed to create shares). 

        public CrtPrivateShare CrtPrivateShare {get;set;} //Determins if there should be created a private share for the user.

        public int PrivateShareMax { get; set; } //Soft limit max size of the private share, is in GB's

}

public enum UserStatus

{

        Unconfirmed, //0

        Deleted, //1

        Actived, //2

        Deactived //3

}


public enum UserCrtShare

{

        Allowed, //0

        NotAllowed //1

}

public enum CrtPrivateShare

{

        Yes, //0

        No //1

}


public class Group

{

        public string GroupId { get; set; } //(Cannot be set) Unique Id of the group 

        public string GroupName { get; set; } //Name of the group

        public string Owner { get; set; } //UserId of the owner of the group


public class AssociatedGroupUser

{

        public Group Group { get; set; } //Group the user is associated with.

        public GroupUserRelation Relation { get; set; } //Relation object between the user and the group (Look further down for the definition of the class )


public class GroupUserRelation

        public string RelationId { get; set; } //(Cannot be set) the unique Id of the relation between the user and the group

        public string UserId { get; set; }  //Id of the user

        public string GroupId { get; set; }  //Id of the group


public class ShareACL

{

        public string ShareId; //Id of the share the user should be attached to

        public ACLType AclType; //Permissions the user should be given for the specific share (Look further down for definition of the Enum).

        //Optionals

        public string ByUserId; //Can be set to the UserId of the user who created the ACL, if using ExternalId and Password Ignore

        public ShareShareRights ShareShareRights; //Determins if the user is allowed to Share the share with others (Look further down for definition of the Enum)

        public FileShareRights FileShareRights; //This should just be set to ShareInternal (0)

}


public enum FileShareRights

{

        ShareInternal, //0

        ShareExternal //1

}


public enum ShareShareRights

{

        //Should be set to ShareInternal (0) if the user should be allowed to share the share with others.

        ShareInternal, //0

        ShareExternal, //1

        None //2

}


public enum ACLType

{

        Read, //0

        Modify, //1

}


public class AssociatedShare 

{

        public Share Share { get; set; } //The associated share.

        public ShareACL Acl { get; set; }  //The ShareAcl which shows the users rights on the given share.

}


public class UserAssociation

{

        public string AssociationId { get; set; } //(Cannot be set) Unique Id of the User Association.

        public string UserId { get; set; } //Id of the User

        public string CompanyId { get; set; } //Id of the Company

        public AssociationType AssociationType { get; set; } //If it's an Admin, Internal or External

        public AssociationStatus AssociationStatus { get; set; } //Unconfirmed or Confirmed, if confirmed the user has logged in on the given company.

        public UserDefault UserDefault { get; set; } //The UserDefault (Look further up for definition of the class) for the given user to that company.

        public string PrivateShareId { get; set; } //Share Id of the users private share if it has one.

        public long LastLogin { get; set; } //c# DateTime.Ticks of the last login.

        public long ActivationDate { get; set; } //The date the user first logged in on the given company.

}


Response codes

Each response object contains a messageCode in the variable ResponceMessage


Codes:

100:DeniedAccess – means you did not have admin rights for the given company or your token was rejected

101:Ok – Everything have been applied as it should

102:NoDocumentsAffected – the removal or update was not applied corretly

103:EntityNotFound – The entity to be update, removed, ect. was not found with the given Id.

104:OneOrMoreFailed - Not all entries where applied correctly

105:AlreadyExist – The given entity to be saved is already there

106:MethodNotFound – The given method was not found on the list of methods supported

107:InsufficientData – The data given in the command parameter was insufficient

108:RequestNotRecognized – The request object was not correctly desterilized by json

109:CommandNotRecognized – The given command wasn’t recognized

110:NotImplimented – The method is has not yet been implemented

111:ServiceConnectionFailed – The domain masters service wasn’t reachable

112:DataNotRecognized – The given in the request data wasn’t recognized

113:DuplicateNames – The given in the request data wasn’t recognized

120:FailedTalkingToServer – A call to another server failed.

AssociationTypes
AssociationTypes: External = 0, Internal = 1, Admin=2