• Free Trial
  • Products
    • LMSThe world’s easiest-to-use learning management system.
    • Training ContentA robust library of off-the-shelf learning content.
  • Solutions
    • By Use Case
      • Employee Training
      • Sales Training
      • Customer Training
      • Partner Training
      • Compliance Training
      • View all
    • By Industry
      • Technology
      • Nonprofit
      • Retail
      • Hospitality
      • Healthcare
      • View all
  • Customers
    • Learn more about Litmos customer success stories.
      • Case Studies
      • Video Testimonials
      • I Love Litmos
      • Lenny Awards
    • Featured Customer
      • Sabre, a global travel technology provider, increases revenue by using Litmos to train their sales and technical teams.
  • Pricing
  • Resources
    • Ebooks & Infographics
    • Webinars & Podcasts
    • Events
    • Integrations
    • Blog
  • About
    • Company
    • Partners
    • Awards
    • Careers
    • Sustainability
  • Free Trial
Litmos
Log in
Contact us
Support
Search
  • Free Trial
  • Products
    • LMSThe world’s easiest-to-use learning management system.
    • Training ContentA robust library of off-the-shelf learning content.
  • Solutions
    • By Use Case
      • Employee Training
      • Sales Training
      • Customer Training
      • Partner Training
      • Compliance Training
      • View all
    • By Industry
      • Technology
      • Nonprofit
      • Retail
      • Hospitality
      • Healthcare
      • View all
  • Customers
    • Learn more about Litmos customer success stories.
      • Case Studies
      • Video Testimonials
      • I Love Litmos
      • Lenny Awards
    • Featured Customer
      • Sabre, a global travel technology provider, increases revenue by using Litmos to train their sales and technical teams.
  • Pricing
  • Resources
    • Ebooks & Infographics
    • Webinars & Podcasts
    • Events
    • Integrations
    • Blog
  • About
    • Company
    • Partners
    • Awards
    • Careers
    • Sustainability
  • Free Trial

Litmos Training Operations Documentation

APIs

Home › Litmos Training Operations Documentation › LTO REST API: Location (Get, Create, Update)

LTO REST API: Location (Get, Create, Update)

Location API (Get , Create and Update)

Get Locations : Provides the details of Locations via Litmos Commerce API.

Note: All requests must be Authenticated.

Authentication and Authorization

Information used for API authentication and authorization is submitted in the request header. The following header name/values are required with each request.

Header Description
CompanyLoginId Company Login Id (provisioned by ViewCentral account management)
ProductId Product Id. 1=Learning Management, 2=Event Management
Username User account username
Password User account password

Request URI :

1. Get details of all Locations in Litmos commerce application (subscription listing and bundle are excluded) –

GET https://api.viewcentral.com/api/Locations

Response Codes:

HTTP Status Description
200 Operation successful. Location object returned in response
400 Operation not successful. Response contains error information
404 Operation not successful. Location object not found

Response Example:

{
  "Success": true,
  "Error": null,
  "Data": [
    {
      "Active": "Bool",
      "City": "String [max length 100]",
      "Country": "String [max length 2]",
      "Id": "Int [auto generated]",
      "Fax": "String [max length 50]",
      "ScheduleDefaultStartTime": "datetime [yyyy-mm-ddThh:mm:ssZ]",
      "ScheduleDefaultEndTime": "datetime [yyyy-mm-ddThh:mm:ssZ]",
      "Description": "String [max length unlimited]",
      "Group": "String [max length 255]",
      "Name": "String [max length 200]",
      "Type": "String [max length 255]",
      "Url": "String [max length 255]",
      "MinSeats": "Int [max length 10]",
      "MaxSeats": "Int [max length10]",
      "OtherStateProvince": "String [max length 100]",
      "Phone": "String [max length 50]",
      "PostalCode": "String [max length 20]",
      "ResourceGroup": "String [max length 255]",
      "RoomRentalRate": "Int [max length 9]",
      "StateProvince": "String [max length 2]",
      "Street1": "String [max length 50]",
      "Street2": "String [max length 50]",
      "ScheduleDefaultTimeZone": "String [max length 72]",
      "CustomDetail1": "String [max length 1024]",
      "CustomDetail2": "String [max length 1024]",
      "CustomDetail3": "String [max length 1024]",
      "DeliveryMethod": "String [INSTRUCTOR]",
      "Vendor": {
        "ID": "Int [max length 20]"
      },
      "AttendeeJoinInstructions": "String [max length 255]",
      "AttendeeJoinAudio": "String [max length 255]",
      "HostJoinInstructions": "String [max length 255]",
      "HostJoinAudio": "String [max length 255]",
      "JoinMeetingUrl": "String [max length 255]",
      "TaxShipAddress": "Bool",
      "SuppressAttendeeView": "Bool",
      "Modified": {
        "CreatedBy": "string [max length 50]",
        "CreatedDate": "datetime [yyyy-mm-ddThh:mm:ssZ]",
        "UpdatedBy": "string [max length 50]",
        "UpdatedDate": "datetime [yyyy-mm-ddThh:mm:ssZ]"
      },
      "Links": [
        {
          "Rel": "Self",
          "Href": "/locations/{id}",
          "Method": "GET"
        },
        {
          "Rel": "Sublocations",
          "Href": "/locations/{id}/sublocations",
          "Method": "GET"
        }
      ]
    }
  ]
}

2.Get details of locations using filter in Litmos commerce application (subscription listing and bundle are excluded) –

GET https://api.viewcentral.com/api/locations?name=

Request Filters : Name = Location name.

Sl.No Key Value
1 name String [max length 200]

Response Codes:

HTTP Status Description
200 Operation successful. Location object returned in response
400 Operation not successful. Response contains error information
404 Operation not successful. Location object not found

Response Example:

Please refer to the above response example found in point 1.

1. Get details of location using location id in Litmos commerce application (subscription listing and bundle are excluded) –

GET https://api.viewcentral.com/api/locations/{ID}

Response :

HTTP Status Description
200 Operation successful. Location object returned in response
400 Operation not successful. Response contains error information
404 Operation not successful. Location object not found

Response Example:

Please refer to the above response example found in point 1.

—

Create Location (ClassRoom only) :

Create location via Litmos Commerce API. (Provide location object in request body).

Note: All requests must be Authenticated.

Authentication and Authorization

Information used for API authentication and authorization is submitted in the request header. The following header name/values are required with each request.

Header Description
CompanyLoginId Company Login Id (provisioned by LTO account management)
ProductId Product Id. 1=Learning Management, 2=Event Management
Username User account username
Password User account password

Request: Provide create location object in request body

URI: POST https://api.viewcentral.com/api/Locations

Request Example :

{
  "Active": "Bool [Required]",
  "City": "Optional String [max length 100]",
  "Country": "Required String [max length 2]",
  "Fax": "Optional String [max length 50]",
  "ScheduleDefaultStartTime": "Optional datetime [yyyy-mm-ddThh:mm:ssZ]",
  "ScheduleDefaultEndTime": "Optional datetime [yyyy-mm-ddThh:mm:ssZ]",
  "Description": "Optional String [max length unlimited]",
  "Group": "Optional String [max length 255]",
  "Name": "Required String [max length 200]",
  "Type": "Optional String [max length 255]",
  "Url": "Optional String [max length 255]",
  "MinSeats": "Optional Int [max length 10]",
  "MaxSeats": "Optional Int [max length 10]",
  "OtherStateProvince": "Optional String [max length 100]",
  "Phone": "Optional String [max length 50]",
  "PostalCode": "Optional String [max length 20]",
  "ResourceGroup": "Optional String [max length 255]",
  "RoomRentalRate": "Optional Int [max length 9]",
  "StateProvince": "Optional String [max length 2]",
  "Street1": "Optional String [max length 50]",
  "Street2": "Optional String [max length 50]",
  "ScheduleDefaultTimeZone": "Optional String [max length 72]",
  "CustomDetail1": "Optional String [max length 1024]",
  "CustomDetail2": "Optional String [max length 1024]",
  "CustomDetail3": "Optional String [max length 1024]",
  "DeliveryMethod": "Required  String [INSTRUCTOR]",
  "Vendor": {
    "ID": "Optional Int [max length 20]"
  }
}

Response Codes:

HTTP Status Description
200 Operation successful. Location object returned in response
400 Operation not successful. Response contains error information
404 Operation not successful. Location object not found

Response Example:

{
  "Success": true,
  "Error": null,
  "Data": [
    {
      "Active": "Bool",
      "City": "String [max length 100]",
      "Country": "String [max length 2]",
      "Id": "Int [auto generated]",
      "Fax": "String [max length 50]",
      "ScheduleDefaultStartTime": "datetime [yyyy-mm-ddThh:mm:ssZ]",
      "ScheduleDefaultEndTime": "datetime [yyyy-mm-ddThh:mm:ssZ]",
      "Description": "String [max length unlimited]",
      "Group": "String [max length 255]",
      "Name": "String [max length 200]",
      "Type": "String [max length 255]",
      "Url": "String [max length 255]",
      "MinSeats": "Int [max length 10]",
      "MaxSeats": "Int [max length10]",
      "OtherStateProvince": "String [max length 100]",
      "Phone": "String [max length 50]",
      "PostalCode": "String [max length 20]",
      "ResourceGroup": "String [max length 255]",
      "RoomRentalRate": "Int [max length 9]",
      "StateProvince": "String [max length 2]",
      "Street1": "String [max length 50]",
      "Street2": "String [max length 50]",
      "ScheduleDefaultTimeZone": "String [max length 72]",
      "CustomDetail1": "String [max length 1024]",
      "CustomDetail2": "String [max length 1024]",
      "CustomDetail3": "String [max length 1024]",
      "DeliveryMethod": "String [INSTRUCTOR]",
      "Vendor": {
        "ID": "Int [max length 20]"
      },
      "AttendeeJoinInstructions": "String [max length 255]",
      "AttendeeJoinAudio": "String [max length 255]",
      "HostJoinInstructions": "String [max length 255]",
      "HostJoinAudio": "String [max length 255]",
      "JoinMeetingUrl": "String [max length 255]",
      "TaxShipAddress": "Bool",
      "SuppressAttendeeView": "Bool",
      "Modified": {
        "CreatedBy": "string [max length 50]",
        "CreatedDate": "datetime [yyyy-mm-ddThh:mm:ssZ]",
        "UpdatedBy": "string [max length 50]",
        "UpdatedDate": "datetime [yyyy-mm-ddThh:mm:ssZ]"
      },
      "Links": [
        {
          "Rel": "Self",
          "Href": "/locations/{id}",
          "Method": "GET"
        },
        {
          "Rel": "Sublocations",
          "Href": "/locations/{id}/sublocations",
          "Method": "GET"
        }
      ]
    }
  ]
}

—

Update Location (ClassRoom only) :

Update location via Litmos Commerce API. (Provide location object in request body).

Note: All requests must be Authenticated.

Authentication and Authorization

Information used for API authentication and authorization is submitted in the request header. The following header name/values are required with each request.

Header Description
CompanyLoginId Company Login Id (provisioned by ViewCentral account management)
ProductId Product Id. 1=Learning Management, 2=Event Management
Username User account username
Password User account password

Request : Provide updated Location object in request body.

URI: PUT https://api.viewcentral.com/api/locations/{ID}

NOTE: this operation supports complete object update as well as partial object update. If the API request data does not supply ALL properties/fields with their intended values, the fields not supplied will be assigned the default value: NULL. If record previously had data in this field, the value will now be set to previous value.  For example, location record is added with the ‘Description’ set to “Location Description”. With the API (PUT action) to update, if the location.‘Description’ property is not supplied in the API request, the ‘Description’ value will not be changed means it has value of “Location Description”.

Request example:

{
  "Active": "Bool [Required]",
  "City": "Optional String [max length 100]",
  "Country": "Required String [max length 2]",
  "Fax": "Optional String [max length 50]",
  "ScheduleDefaultStartTime": "Optional datetime [yyyy-mm-ddThh:mm:ssZ]",
  "ScheduleDefaultEndTime": "Optional datetime [yyyy-mm-ddThh:mm:ssZ]",
  "Description": "Optional String [max length unlimited]",
  "Group": "Optional String [max length 255]",
  "Name": "Required String [max length 200]",
  "Type": "Optional String [max length 255]",
  "Url": "Optional String [max length 255]",
  "MinSeats": "Optional Int [max length 10]",
  "MaxSeats": "Optional Int [max length 10]",
  "OtherStateProvince": "Optional String [max length 100]",
  "Phone": "Optional String [max length 50]",
  "PostalCode": "Optional String [max length 20]",
  "ResourceGroup": "Optional String [max length 255]",
  "RoomRentalRate": "Optional Int [max length 9]",
  "StateProvince": "Optional String [max length 2]",
  "Street1": "Optional String [max length 50]",
  "Street2": "Optional String [max length 50]",
  "ScheduleDefaultTimeZone": "Optional String [max length 72]",
  "CustomDetail1": "Optional String [max length 1024]",
  "CustomDetail2": "Optional String [max length 1024]",
  "CustomDetail3": "Optional String [max length 1024]",
  "DeliveryMethod": "Optional String [INSTRUCTOR]",
  "Vendor": {
    "ID": "Optional Int [max length 20]"
  }
}

Response Codes:

HTTP Status Description
200 Operation successful. Location object returned in response
400 Operation not successful. Response contains error information
404 Operation not successful. Location object not found

Response Example:

{
  "Success": true,
  "Error": null,
  "Data": [
    {
      "Active": "Bool",
      "City": "String [max length 100]",
      "Country": "String [max length 2]",
      "Id": "Int [auto generated]",
      "Fax": "String [max length 50]",
      "ScheduleDefaultStartTime": "datetime [yyyy-mm-ddThh:mm:ssZ]",
      "ScheduleDefaultEndTime": "datetime [yyyy-mm-ddThh:mm:ssZ]",
      "Description": "String [max length unlimited]",
      "Group": "String [max length 255]",
      "Name": "String [max length 200]",
      "Type": "String [max length 255]",
      "Url": "String [max length 255]",
      "MinSeats": "Int [max length 10]",
      "MaxSeats": "Int [max length10]",
      "OtherStateProvince": "String [max length 100]",
      "Phone": "String [max length 50]",
      "PostalCode": "String [max length 20]",
      "ResourceGroup": "String [max length 255]",
      "RoomRentalRate": "Int [max length 9]",
      "StateProvince": "String [max length 2]",
      "Street1": "String [max length 50]",
      "Street2": "String [max length 50]",
      "ScheduleDefaultTimeZone": "String [max length 72]",
      "CustomDetail1": "String [max length 1024]",
      "CustomDetail2": "String [max length 1024]",
      "CustomDetail3": "String [max length 1024]",
      "DeliveryMethod": "String [INSTRUCTOR]",
      "Vendor": {
        "ID": "Int [max length 20]"
      },
      "AttendeeJoinInstructions": "String [max length 255]",
      "AttendeeJoinAudio": "String [max length 255]",
      "HostJoinInstructions": "String [max length 255]",
      "HostJoinAudio": "String [max length 255]",
      "JoinMeetingUrl": "String [max length 255]",
      "TaxShipAddress": "Bool",
      "SuppressAttendeeView": "Bool",
      "Modified": {
        "CreatedBy": "string [max length 50]",
        "CreatedDate": "datetime [yyyy-mm-ddThh:mm:ssZ]",
        "UpdatedBy": "string [max length 50]",
        "UpdatedDate": "datetime [yyyy-mm-ddThh:mm:ssZ]"
      },
      "Links": [
        {
          "Rel": "Self",
          "Href": "/locations/{id}",
          "Method": "GET"
        },
        {
          "Rel": "Sublocations",
          "Href": "/locations/{id}/sublocations",
          "Method": "GET"
        }
      ]
    }
  ]
}

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of Litmos.

The information contained herein may be changed without prior notice. Some software products marketed by Litmos and its distributors contain proprietary software components of other software vendors. National product specifications may vary.

These materials are provided by Litmos for informational purposes only, without representation or warranty of any kind, and Litmos or its affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for Litmos company products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.

In particular Litmos or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation, and Litmos or its affiliated companies’ strategy and possible future developments, products, and/or platform directions and functionality are all subject to change and may be changed by Litmos or its affiliated companies at any time for any reason without notice.

The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, and they should not be relied upon in making purchasing decisions.

© 2022 Litmos or a Litmos affiliate company. All rights reserved.

Litmos and other Litmos products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Litmos (or a Litmos affiliate company) in the United States and other countries. All other product and service names mentioned are the trademarks of their respective companies.

Match keywords.

Useful Links

  • Release Notes
  • Customer Portal

In this article

Related articles

  1. LTO REST API: Attendee (Get Create, Update, Delete)
  2. LTO REST API: Vendor (Get, Create, Update)
  3. LTO REST API: vClassroom Schedule (Get, Create, Update)

Also of Interest

  • Learning Management System Process
  • What Is Employee Performance?
  • Mobile Learning for Education
  • Corporate LMS
  • Enterprise Learning Management System
  • LMS Platform
  • eLearning Platform
  • What is a learning management system?
  • See Additional Resources

Solutions by Use Case

  • Employee Training
  • Customer Training
  • Compliance Training
  • Sales Training
  • Operations Training
  • Gig Worker Training
  • Contractor Training
  • Supplier Training

Solutions by Industry

  • Technology
  • Nonprofit
  • Retail
  • Hospitality
  • Healthcare

Contact Us

Contact
UK: +44 20 4551 1606
USA: +1 925 490 0401
AUS: +61 3 7066 4851
Email
Support
Address
Contact Us
Litmos Reviews Litmos Reviews
Litmos Careers Careers

© 2023 Litmos US, L.P. and affiliates. All rights reserved.

  • Privacy Statement
  • Terms & Conditions
  • Website Terms