AddRoomsForProject

Description

This method is used to create rooms for a given project. It returns the created room details as the output.

Note: 

  • Multiple rooms can be added at the same time.
  • Any user that is connected to the given project can add rooms for that project.
  • Creation of multiple rooms with the same name for a given project is not allowed.

Request

ParameterTypeMandatory/OptionalDescription
inputAddRoomsForProjectInputMandatoryAddRoomsForProjectInput model


AddRoomsForProjectInput

ParameterTypeMandatory/OptionalMaximum character length/limitDescription
ProjectIdlongMandatory/Optional*Not relevantThe Id of the project.
ProjectCodestringMandatory/Optional*Not relevantProject code of the project E.g. ABC0001-A1 
RoomsList<ProjectRoomInput>MandatoryNot relevantList of project rooms to be added. roomName and roomTypeId are mandatory for this method


Note
It is mandatory to provide either the projectCode or the projectId. Preference is given to the projectId, if both the projectCode and the projectId are provided.


Request - sample input

<AddRoomsForProject>
  <MethodParameters>
    <UserAuthentication>
      <UserName>username</UserName>
      <Password>password</Password>
      <AnyAttr attr0="XmlAttributeArray" isNull="false">
        <XmlAttributeArray0>System.Xml.XmlAttribute</XmlAttributeArray0>
      </AnyAttr>
    </UserAuthentication>
    <input>
      <ProjectId>1211</ProjectId>
      <ProjectCode isNull="false" />
      <Rooms attr0="ProjectRoomInputArray" isNull="false">
        <ProjectRoomInputArray0>
          <RoomTypeId>1</RoomTypeId>
          <RoomName>Bedroom</RoomName>
          <RoomDescription isNull="false" />
        </ProjectRoomInputArray0>
      </Rooms>
    </input>
    <applicationName>test</applicationName>
  </MethodParameters>
</AddRoomsForProject>

Response

TypeDescription
AddRoomsForProjectOutputAddRoomsForProjectOutput model


AddRoomsForProjectOutput

ParameterTypeDescription
StatusesList<AddRoomForProjectStatus>Project room creation statuses list

Response - sample output

<AddRoomsForProject>
  <MethodParameters>
    <AddRoomsForProjectOutput>
      <Statuses attr0="AddRoomForProjectStatusArray" isNull="false">
        <AddRoomForProjectStatusArray0>
          <Status>1</Status>
          <Room>
            <RoomId>325</RoomId>
            <RoomTypeId>1</RoomTypeId>
            <RoomName>Bedroom</RoomName>
            <RoomDescription isNull="false" />
          </Room>
          <ErrorCode>0</ErrorCode>
        </AddRoomForProjectStatusArray0>
      </Statuses>
    </AddRoomsForProjectOutput>
  </MethodParameters>
</AddRoomsForProject>


Exceptions

Error CodeDescription
110Input parameters contain null or invalid data
123An exception occured while processing your request
138applicationName length has exceeded the maximum character limit allowed (10) 
146The applicationName is not set
167You are not authorized to use this method
227The project does not exist or the company is not connected to the given project or your license does not authorize you to access this project
252No input is provided for projectId or projectCode. Provide the input for at least one of these fields
253Ambiguous inputs. Make sure the projectCode and projectId refer to the same project 
254Invalid projectCode 
273Project does not exist
281Room already exists
283roomName is not provided
286Invalid roomType
296Do not insert a comma in the roomName
299The given project is closed.
300roomName length has exceeded the maximum character limit allowed (50) 
301Room description length has exceeded the maximum character limit allowed (250)