| 
                   API 
                 | 
                
                   ServicesPortal/api/login 
                 | 
              
| 
                   URI 
                 | 
                
                   https://portal_url/ServicesPortal/api/login 
                  where portal_url is the URL of a team portal to login to. 
                 | 
              
| 
                   HTTP Method 
                 | 
                
                   POST 
                 | 
              
| 
                   Request Content-Type 
                 | 
                
                   application/x-www-form-urlencoded 
                 | 
              
| 
                   Request body 
                 | 
                
                   j_username=username&j_password=password 
                 | 
              
| 
                   Expected Response status 
                 | 
                
                   200 OK and a HTTP session cookie which is then used for the duration of the session. 
                  The session times out after 30 minutes of inactivity. 
                  If a response such as 403 Forbidden is returned, check the user name and password provided. 
                 | 
              
| 
                   Response body 
                 | 
                
                   <val>Login succeed</val> 
                 | 
              
| 
                   API 
                 | 
                
                   SAML: ServicesPortal/public/users/ 
                 | 
              
| 
                   Active Directory (AD): ServicesPortal/public/domains/domain_name/adUsers/ 
                 | 
              |
| 
                   Neither SAML nor AD: ServicesPortal/public/users/username 
                 | 
              |
| 
                   URI 
                 | 
                
                   SAML: https://portal_url/ServicesPortal/public/users/ 
                  Active Directory (AD): https://portal_url/ServicesPortal/public/domains/domain_name/adUsers/ 
                  Neither SAML nor AD: https://portal_url/ServicesPortal/public/users/username 
                  where portal_url is the URL of a team portal to login to. 
                 | 
              
| 
                   HTTP Method 
                 | 
                
                   POST 
                 | 
              
| 
                   Request Content-Type 
                 | 
                
                   application/x-www-form-urlencoded 
                 | 
              
| 
                   Request body 
                 | 
                
                   <obj> 
                    <att id="name"> 
                       <val>attachMobileDevice</val> 
                    </att> 
                    <att id="param"> 
                      <obj class="AttachedMobileDeviceParams"> 
                        <att id="deviceMac"> 
                          <val>deviceMac</val> 
                        </att> 
                        <att id= "deviceType"> 
                          <val>deviceType</val> 
                        </att> 
                        <att id="password"> 
                          <val>password</val> 
                        </att> 
                        <att id="ssoActivationCode"> 
                          <val>ssoActivationCode</val> 
                        </att> 
                        <att id="hostname"> 
                          <val>devHostname</val> 
                        </att> 
                      </obj> 
                    </att> 
                  </obj> 
                 | 
              
| 
                   Expected Response status 
                 | 
                
                   200 OK. 
                 | 
              
| 
                   Response body 
                 | 
                
                   The response is the device Identifier and the SharedSecret. 
                 |