Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

...

Description

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

NotesNote

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

Request

ParameterTypeMandatory/Optional
Comments
Description
inputAddRoomsForProjectInputMandatoryAddRoomsForProjectInput model

 

AddRoomsForProjectInput 

ParameterTypeMandatory/Optional
Comments
Maximum 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
roomName and
RoomTypeId
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 

ParameterType
Comments
Description
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
138
ApplicationName
applicationName length
is
has exceeded the maximum
allowed
character limit allowed (10) 
146The
application name
applicationName is not set
167You are not authorized to use this
web
method
227The project does not exist or the company
 
is not connected to the given project
252No input is provided
to project Id or project code. Need atleast one of them 
for projectId or projectCode. Provide the input for at least one of these fields
253Ambiguous inputs. Make sure
projet code and project id referred
the projectCode and projectId refer to the same project 
254Invalid
project code 
projectCode 
273Project does not exist
281Room already exists
283
Room Name
roomName is not provided
286
Invalid Room Type
Invalid roomType
296
Please do
Do not
provide comma for room name
insert a comma in the roomName
299The given project is closed.
300
Room name
roomName length
is
has exceeded the maximum
allowed
character limit allowed (50) 
301Room
description
description length
is
has exceeded the maximum
allowed
character limit allowed (250)