POST api/FileUploads/UploadFile

Accepts an .xls file upload and returns a list of users contained therein.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of mdl_user
NameDescriptionTypeAdditional information
id

integer

None.

auth

string

None.

confirmed

integer

None.

policyagreed

integer

None.

deleted

integer

None.

suspended

integer

None.

mnethostid

integer

None.

username

string

None.

idnumber

string

None.

firstname

string

None.

lastname

string

None.

email

string

None.

emailstop

integer

None.

icq

string

None.

skype

string

None.

yahoo

string

None.

aim

string

None.

msn

string

None.

phone1

string

None.

phone2

string

None.

institution

string

None.

department

string

None.

address

string

None.

city

string

None.

country

string

None.

lang

string

None.

theme

string

None.

timezone

string

None.

firstaccess

integer

None.

lastaccess

integer

None.

lastlogin

integer

None.

currentlogin

integer

None.

lastip

string

None.

secret

string

None.

picture

integer

None.

url

string

None.

description

string

None.

descriptionformat

integer

None.

mailformat

integer

None.

maildigest

integer

None.

maildisplay

integer

None.

autosubscribe

integer

None.

trackforums

integer

None.

timecreated

integer

None.

timemodified

integer

None.

trustbitmask

integer

None.

imagealt

string

None.

totarasync

integer

None.

lastnamephonetic

string

None.

firstnamephonetic

string

None.

middlename

string

None.

alternatename

string

None.

calendartype

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "auth": "sample string 2",
    "confirmed": 3,
    "policyagreed": 4,
    "deleted": 5,
    "suspended": 6,
    "mnethostid": 7,
    "username": "sample string 8",
    "idnumber": "sample string 9",
    "firstname": "sample string 10",
    "lastname": "sample string 11",
    "email": "sample string 12",
    "emailstop": 13,
    "icq": "sample string 14",
    "skype": "sample string 15",
    "yahoo": "sample string 16",
    "aim": "sample string 17",
    "msn": "sample string 18",
    "phone1": "sample string 19",
    "phone2": "sample string 20",
    "institution": "sample string 21",
    "department": "sample string 22",
    "address": "sample string 23",
    "city": "sample string 24",
    "country": "sample string 25",
    "lang": "sample string 26",
    "theme": "sample string 27",
    "timezone": "sample string 28",
    "firstaccess": 29,
    "lastaccess": 30,
    "lastlogin": 31,
    "currentlogin": 32,
    "lastip": "sample string 33",
    "secret": "sample string 34",
    "picture": 35,
    "url": "sample string 36",
    "description": "sample string 37",
    "descriptionformat": 38,
    "mailformat": 39,
    "maildigest": 40,
    "maildisplay": 41,
    "autosubscribe": 42,
    "trackforums": 43,
    "timecreated": 44,
    "timemodified": 45,
    "trustbitmask": 46,
    "imagealt": "sample string 47",
    "totarasync": 48,
    "lastnamephonetic": "sample string 49",
    "firstnamephonetic": "sample string 50",
    "middlename": "sample string 51",
    "alternatename": "sample string 52",
    "calendartype": "sample string 53"
  },
  {
    "id": 1,
    "auth": "sample string 2",
    "confirmed": 3,
    "policyagreed": 4,
    "deleted": 5,
    "suspended": 6,
    "mnethostid": 7,
    "username": "sample string 8",
    "idnumber": "sample string 9",
    "firstname": "sample string 10",
    "lastname": "sample string 11",
    "email": "sample string 12",
    "emailstop": 13,
    "icq": "sample string 14",
    "skype": "sample string 15",
    "yahoo": "sample string 16",
    "aim": "sample string 17",
    "msn": "sample string 18",
    "phone1": "sample string 19",
    "phone2": "sample string 20",
    "institution": "sample string 21",
    "department": "sample string 22",
    "address": "sample string 23",
    "city": "sample string 24",
    "country": "sample string 25",
    "lang": "sample string 26",
    "theme": "sample string 27",
    "timezone": "sample string 28",
    "firstaccess": 29,
    "lastaccess": 30,
    "lastlogin": 31,
    "currentlogin": 32,
    "lastip": "sample string 33",
    "secret": "sample string 34",
    "picture": 35,
    "url": "sample string 36",
    "description": "sample string 37",
    "descriptionformat": 38,
    "mailformat": 39,
    "maildigest": 40,
    "maildisplay": 41,
    "autosubscribe": 42,
    "trackforums": 43,
    "timecreated": 44,
    "timemodified": 45,
    "trustbitmask": 46,
    "imagealt": "sample string 47",
    "totarasync": 48,
    "lastnamephonetic": "sample string 49",
    "firstnamephonetic": "sample string 50",
    "middlename": "sample string 51",
    "alternatename": "sample string 52",
    "calendartype": "sample string 53"
  }
]

application/xml, text/xml

Sample:
<ArrayOfmdl_user xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Totara.WEBAPI">
  <mdl_user>
    <address>sample string 23</address>
    <aim>sample string 17</aim>
    <alternatename>sample string 52</alternatename>
    <auth>sample string 2</auth>
    <autosubscribe>42</autosubscribe>
    <calendartype>sample string 53</calendartype>
    <city>sample string 24</city>
    <confirmed>3</confirmed>
    <country>sample string 25</country>
    <currentlogin>32</currentlogin>
    <deleted>5</deleted>
    <department>sample string 22</department>
    <description>sample string 37</description>
    <descriptionformat>38</descriptionformat>
    <email>sample string 12</email>
    <emailstop>13</emailstop>
    <firstaccess>29</firstaccess>
    <firstname>sample string 10</firstname>
    <firstnamephonetic>sample string 50</firstnamephonetic>
    <icq>sample string 14</icq>
    <id>1</id>
    <idnumber>sample string 9</idnumber>
    <imagealt>sample string 47</imagealt>
    <institution>sample string 21</institution>
    <lang>sample string 26</lang>
    <lastaccess>30</lastaccess>
    <lastip>sample string 33</lastip>
    <lastlogin>31</lastlogin>
    <lastname>sample string 11</lastname>
    <lastnamephonetic>sample string 49</lastnamephonetic>
    <maildigest>40</maildigest>
    <maildisplay>41</maildisplay>
    <mailformat>39</mailformat>
    <middlename>sample string 51</middlename>
    <mnethostid>7</mnethostid>
    <msn>sample string 18</msn>
    <phone1>sample string 19</phone1>
    <phone2>sample string 20</phone2>
    <picture>35</picture>
    <policyagreed>4</policyagreed>
    <secret>sample string 34</secret>
    <skype>sample string 15</skype>
    <suspended>6</suspended>
    <theme>sample string 27</theme>
    <timecreated>44</timecreated>
    <timemodified>45</timemodified>
    <timezone>sample string 28</timezone>
    <totarasync>48</totarasync>
    <trackforums>43</trackforums>
    <trustbitmask>46</trustbitmask>
    <url>sample string 36</url>
    <username>sample string 8</username>
    <yahoo>sample string 16</yahoo>
  </mdl_user>
  <mdl_user>
    <address>sample string 23</address>
    <aim>sample string 17</aim>
    <alternatename>sample string 52</alternatename>
    <auth>sample string 2</auth>
    <autosubscribe>42</autosubscribe>
    <calendartype>sample string 53</calendartype>
    <city>sample string 24</city>
    <confirmed>3</confirmed>
    <country>sample string 25</country>
    <currentlogin>32</currentlogin>
    <deleted>5</deleted>
    <department>sample string 22</department>
    <description>sample string 37</description>
    <descriptionformat>38</descriptionformat>
    <email>sample string 12</email>
    <emailstop>13</emailstop>
    <firstaccess>29</firstaccess>
    <firstname>sample string 10</firstname>
    <firstnamephonetic>sample string 50</firstnamephonetic>
    <icq>sample string 14</icq>
    <id>1</id>
    <idnumber>sample string 9</idnumber>
    <imagealt>sample string 47</imagealt>
    <institution>sample string 21</institution>
    <lang>sample string 26</lang>
    <lastaccess>30</lastaccess>
    <lastip>sample string 33</lastip>
    <lastlogin>31</lastlogin>
    <lastname>sample string 11</lastname>
    <lastnamephonetic>sample string 49</lastnamephonetic>
    <maildigest>40</maildigest>
    <maildisplay>41</maildisplay>
    <mailformat>39</mailformat>
    <middlename>sample string 51</middlename>
    <mnethostid>7</mnethostid>
    <msn>sample string 18</msn>
    <phone1>sample string 19</phone1>
    <phone2>sample string 20</phone2>
    <picture>35</picture>
    <policyagreed>4</policyagreed>
    <secret>sample string 34</secret>
    <skype>sample string 15</skype>
    <suspended>6</suspended>
    <theme>sample string 27</theme>
    <timecreated>44</timecreated>
    <timemodified>45</timemodified>
    <timezone>sample string 28</timezone>
    <totarasync>48</totarasync>
    <trackforums>43</trackforums>
    <trustbitmask>46</trustbitmask>
    <url>sample string 36</url>
    <username>sample string 8</username>
    <yahoo>sample string 16</yahoo>
  </mdl_user>
</ArrayOfmdl_user>