LTO REST API: SubLocation (Get, Create, Update)Get, create and update sublocations through the Litmos Commerce API.Sep 26, 2026Knowledge
FieldsTitleLTO REST API: SubLocation (Get, Create, Update)Last Updated5/9/2023ProductTraining OpsSummaryHelp SummaryGet, create and update sublocations through the Litmos Commerce API.BodySubLocation API (Get , Create and Update) Get SubLocations : Provides the details of SubLocations 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. HeaderDescriptionCompanyLoginIdCompany Login Id (provisioned by ViewCentral account management)ProductIdProduct Id. 1=Learning Management, 2=Event ManagementUsernameUser account usernamePasswordUser account password Request URI : Get details of all SubLocations in Litmos commerce application (subscription listing and bundle are excluded) - GET https://api.viewcentral.com/api/locations/{id}/sublocations Response Codes: HTTP StatusDescription200Operation successful. SubLocation object returned in response400Operation not successful. Response contains error information404Operation not successful. SubLocation object not found Response Example: { "Success": true, "Error": null, "Data": [ { "Active": "Bool", "City": "String [max length 100]", "Country": "String [max length 2]", "CustomDetail1": "String [max length 1024]", "CustomDetail2": "String [max length 1024]", "Fax": "String [max length 50]", "Location": { "ID": "Int [autogenerated]" }, "MaxSeats": "Int [max length 10]", "MinSeats": "Int [max length 10]", "OtherStateProvince": "String [max length 100]", "Phone": "String [max length 50]", "PostalCode": "String [max length 50]", "StateProvince": "String [max length 2]", "Street1": "String [max length 50]", "Street2": "String [max length 50]", "ScheduleDefaultStartTime": "datetime [yyyy-mm-ddThh:mm:ssZ]", "ScheduleDefaultEndTime": "datetime [yyyy-mm-ddThh:mm:ssZ]", "ScheduleDefaultTimeZone": "String [max length 72]", "Description": "String [Unlimited]", "Id": "Int [autogenerated]", "Name": "String [max length 100]", "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]", "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}/sublocations", "Method": "GET" }, { "Rel": "Location", "Href": "/locations/{id}", "Method": "GET" } ] } ]} Get details of SubLocations using filter in Litmos commerce application (Get SubLocations is applicable only for Classroom) - GET https://api.viewcentral.com/api/locations/{id}/sublocations?name= Request Filters : Name = SubLocation name. Sl.NoKeyValue1nameString [max length 100] Response Codes: HTTP StatusDescription200Operation successful. Sublocation object returned in response400Operation not successful. Response contains error information404Operation not successful. SubLocation object not found Response Example: Please refer to the above response example found in point 1. Get details of SubLocations using SubLocation id in Litmos commerce application(Get SubLocation is applicable only for Classroom) - GET https://api.viewcentral.com/api/locations/{id}/sublocations?id= Response : HTTP StatusDescription200Operation successful. SubLocation object returned in response400Operation not successful. Response contains error information404Operation not successful. Sublocation object not found Response Example: Please refer to the above response example found in point 1. Create SubLocation (Classroom only) : Create sublocation via Litmos Commerce API. (Provide sublocation 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. HeaderDescriptionCompanyLoginIdCompany Login Id (provisioned by ViewCentral account management)ProductIdProduct Id. 1=Learning Management, 2=Event ManagementUsernameUser account usernamePasswordUser account password Request: Provide create sublocation object in request body URI: POST https://api.viewcentral.com/api/Locations{id}/sublocations Request Example : { "Active": "Bool [Required]", "City": "Optional String [max length 100]", "Country": "Optional String [max length 2]", "CustomDetail1": "Optional String [max length 1024]", "CustomDetail2": "Optional String [max length 1024]", "Fax": "Optional String [max length 50]", "Location": { "ID": "Optional Int [autogenerated]" }, "MaxSeats": "Optional Int [max length 10]", "MinSeats": "Optional Int [max length 10]", "OtherStateProvince": "Optional String [max length 100]", "Phone": "Optional String [max length 50]", "PostalCode": "Optional String [max length 50]", "StateProvince": "Optional String [max length 2]", "Street1": "Optional String [max length 50]", "Street2": "Optional String [max length 50]", "ScheduleDefaultStartTime": "Optional datetime [yyyy-mm-ddThh:mm:ssZ]]", "ScheduleDefaultEndTime": "Optional datetime [yyyy-mm-ddThh:mm:ssZ]]", "ScheduleDefaultTimeZone": "Optional String [max length 72]", "Description": "Optional String [max length unlimited]", "Name": "Required String [max length 100]"} Response Codes: HTTP StatusDescription200Operation successful. SubLocation object returned in response400Operation not successful. Response contains error information404Operation not successful. SubLocation object not found Response Example: { "Success": true, "Error": null, "Data": [ { "Active": "Bool", "City": "String [max length 100]", "Country": "String [max length 2]", "CustomDetail1": "String [max length 1024]", "CustomDetail2": "String [max length 1024]", "Fax": "String [max length 50]", "Location": { "ID": "Int [autogenerated]" }, "MaxSeats": "Int [max length 10]", "MinSeats": "Int [max length 10]", "OtherStateProvince": "String [max length 100]", "Phone": "String [max length 50]", "PostalCode": "String [max length 50]", "StateProvince": "String [max length 2]", "Street1": "String [max length 50]", "Street2": "String [max length 50]", "ScheduleDefaultStartTime": "datetime [yyyy-mm-ddThh:mm:ssZ]]", "ScheduleDefaultEndTime": "datetime [yyyy-mm-ddThh:mm:ssZ]]", "ScheduleDefaultTimeZone": "String [max length 72]", "Description": "String [Unlimited]", "Id": "Int [autogenerated]", "Name": "String [max length 100]", "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]", "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}/sublocations", "Method": "GET" }, { "Rel": "Location", "Href": "/locations/{id}", "Method": "GET" } ] } ]} Update Sub-Location (Classroom only): Update sublocation via Litmos Commerce API. (Provide sublocation 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. HeaderDescriptionCompanyLoginIdCompany Login Id (provisioned by LTO account management)ProductIdProduct Id. 1=Learning Management, 2=Event ManagementUsernameUser account usernamePasswordUser account password Request : Provide updated SubLocation object in request body. URI: PUT https://api.viewcentral.com/api/locations/{LocationID}/sublocations/{sublocationID} 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 “SubLocation 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 “SubLocation Description”. Request example: { "Active": "Bool [Required]", "City": "Optional String [max length 100]", "Country": "Optional String [max length 2]", "CustomDetail1": "Optional String [max length 1024]", "CustomDetail2": "Optional String [max length 1024]", "Fax": "Optional String [max length 50]", "Location": { "ID": "Optional Int [autogenerated]" }, "MaxSeats": "Optional Int [max length 10]", "MinSeats": "Optional Int [max length 10]", "OtherStateProvince": "Optional String [max length 100]", "Phone": "Optional String [max length 50]", "PostalCode": "Optional String [max length 50]", "StateProvince": "Optional String [max length 2]", "Street1": "Optional String [max length 50]", "Street2": "Optional String [max length 50]", "ScheduleDefaultStartTime": "Optional datetime [yyyy-mm-ddThh:mm:ssZ]]", "ScheduleDefaultEndTime": "Optional datetime [yyyy-mm-ddThh:mm:ssZ]]", "ScheduleDefaultTimeZone": "Optional String [max length 72]", "Description": "Optional String [max length unlimited]", "Name": "Required String [max length 100]"} Response Codes: HTTP StatusDescription200Operation successful. SubLocation object returned in response400Operation not successful. Response contains error information404Operation not successful. SubLocation object not found Response Example: { "Success": true, "Error": null, "Data": [ { "Active": "Bool", "City": "String [max length 100]", "Country": "String [max length 2]", "CustomDetail1": "String [max length 1024]", "CustomDetail2": "String [max length 1024]", "Fax": "String [max length 50]", "Location": { "ID": "Int [autogenerated]" }, "MaxSeats": "Int [max length 10]", "MinSeats": "Int [max length 10]", "OtherStateProvince": "String [max length 100]", "Phone": "String [max length 50]", "PostalCode": "String [max length 50]", "StateProvince": "String [max length 2]", "Street1": "String [max length 50]", "Street2": "String [max length 50]", "ScheduleDefaultStartTime": "datetime[ yyyy-mm-ddThh:mm:ssZ]", "ScheduleDefaultEndTime": "datetime [yyyy-mm-ddThh:mm:ssZ]", "ScheduleDefaultTimeZone": "String [max length 72]", "Description": "String [Unlimited]", "Id": "Int [autogenerated]", "Name": "String [max length 100]", "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]", "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}/sublocations", "Method": "GET" }, { "Rel": "Location", "Href": "/locations/{id}", "Method": "GET" } ] } ]}URL Namelto-rest-api-sublocation-get-create-update