Note
This is an upgraded version of the EditProject method with more metadata. Use this method as the previous is now obsolete.
EditProjectInput is a single input parameter introduced in this method to enclose all the existing input parameters of the previous method in a single place with the exception of the applicationName.
...
Parameter | Type | Mandatory/Optional | Maximum character length/limit | Description |
---|---|---|---|---|
ProjectId | long | Mandatory | Not relevant | The Id of the project |
ProjectName | long | Mandatory/Optional | Not relevant | Name of the project |
ProjectDescription | string | Optional | Not relevant | Description of the project |
ContactPersonName | string | Mandatory | Not relevant | Name of the contact person |
ContactNumber | string | Optional | Not relevant | Contact telephone number of the contact person |
ContactEmailAddress | string | Mandatory | Not relevant | Contact email address |
Reference | string | Optional | Not relevant |
Request - sample input
<EditProject2>
<MethodParameters>
<UserAuthentication>
<UserName>username</UserName>
<Password>password</Password>
<AnyAttr attr0="XmlAttributeArray" isNull="false">
<XmlAttributeArray0>System.Xml.XmlAttribute</XmlAttributeArray0>
</AnyAttr>
</UserAuthentication>
<input>
<ProjectId>1236</ProjectId>
<ProjectName>Test project</ProjectName>
<ProjectDescription isNull="false" />
<ContactPersonName>Harshani</ContactPersonName>
<ContactNumber isNull="false" />
<ContactEmailAddress>Harshani@99x.lk</ContactEmailAddress>
<Reference isNull="false" />
</input>
<applicationName>test</applicationName>
</MethodParameters>
</EditProject2>
Response
Type | Description |
---|---|
Project | EditProject2 method updates the edited project related information and returns the project model. |
Response - sample output
<EditProject2>
<MethodParameters>
<Project actualtype="Project" basetype="Project">
<ProjectId>1236</ProjectId>
<ProjectName>Test project</ProjectName>
<ProjectCode>WAA0002-T6</ProjectCode>
<ProjectType>0</ProjectType>
<BoligmappaNumber isNull="true" />
<IsAdmin>True</IsAdmin>
<OwnerCompany>
<Id>197</Id>
<OrganizationNumber>914350840</OrganizationNumber>
<CompanyName>VEGA 1 AS Avdeling Admninistrasjon</CompanyName>
<Address>
<StreetName>c/o KPMG Accounting AS Sørkedalsveien</StreetName>
<HouseNumber>6</HouseNumber>
<HouseLetter isNull="false" />
<ZipCode>0369</ZipCode>
<City>Oslo</City>
</Address>
<Municipality>OSLO</Municipality>
<Longitude>10.7117473</Longitude>
<Latitude>59.9300847</Latitude>
<ContactPerson isNull="false" />
<PhoneNumber>23445678</PhoneNumber>
<Email>harshaniw@99x.lk</Email>
<UseBoligmappa>True</UseBoligmappa>
<Professions attr0="StringArray" isNull="false">
<StringArray0>Elektro/tele</StringArray0>
<StringArray1>Tak/blikkenslager</StringArray1>
</Professions>
<MemberAsssociations attr0="StringArray" isNull="false">
<StringArray0>NELFO</StringArray0>
<StringArray1>VBL</StringArray1>
</MemberAsssociations>
<ContactPersonDetails isNull="true" />
<CompanyDescription isNull="true" />
<CompanyWebSite isNull="true" />
<CompanyLogo isNull="true" />
<CompanyProfileImage isNull="true" />
<FacebookAddress isNull="true" />
<ButtonTextForHelpLink isNull="true" />
<HelpLink isNull="true" />
<FranchiserCompanies isNull="true" />
<EmployeeCount>0</EmployeeCount>
<LastFinancialStatementSubmissionYear>0</LastFinancialStatementSubmissionYear>
<IsVatRegistered>False</IsVatRegistered>
<IsNavaaRegistered>False</IsNavaaRegistered>
<ShareCapital>0</ShareCapital>
<Equity>0</Equity>
<CreditRating isNull="true" />
<StartBankStatus isNull="true" />
<Revenue>0</Revenue>
<Earning>0</Earning>
<IsNHOAuthorized isNull="true" />
</OwnerCompany>
<Description isNull="false" />
<ProjectStatus>1</ProjectStatus>
<StartedDate>11/14/2017 4:19:03 PM</StartedDate>
<UpdatedDate>11/15/2017 12:08:36 PM</UpdatedDate>
<ProjectCompanies isNull="true" />
<ProjectAddress isNull="true" />
<ProjectContactPersonName>Harshani</ProjectContactPersonName>
<ProjectContactPersonEmail>Harshani@99x.lk</ProjectContactPersonEmail>
<ProjectContactPersonNumber isNull="false" />
<Reference isNull="false" />
</Project>
</MethodParameters>
</EditProject2>
Exceptions
Error Code | Description |
---|---|
113 | One or more mandatory fields have not been provided |
123 | An exception occurred while processing your request |
138 | applicationName length has exceeded the maximum character limit allowed (10) |
146 | The applicationName is not set |
167 | You are not authorized to use this method |
223 | The given project is not owned by the company or does not exist, therefore this action cannot be performed |
228 | projectId is not provided |
260 | contactEmailAddress is not valid |
263 | contactPersonName is required |
264 | contactEmailAddress is required |
273 | Project does not exist |
316 | You cannot perform this operation on a closed project |
...