Projects

ProjectsList (Ver. 1.0)

Show all Projects that current user have access.
Return
projects (multi Array)(if success) projects list with fields

ProjectsList (Ver. 1.0)

Show Projects that current user have access with parameters (not available now).
Return
projects (multi Array)(if success) projects list with fields

ProjectSend (Ver. 1.0)

Send a project access email by parameters.
Params
projectId (integer)(required) Project Id
email (string)(required if userId and userType not defined) Recipient email
userId (string)(required if email not defined) Recipient User Id
userType (string)(required if email not defined) Recipient User Type. Values: "c" for customer, "u" for user
message (string)(optional) Email message
Return
state 0(if success)

projectId

email

userId

userType

message

ProjectDelete (Ver. 1.0)

Delete project by projectId.
Params
projectId (integer)(required) Project Id
Return
state 0(if success)

projectId

ProjectNew (Ver. 1.0)

Create new project by parameters.
Params
projectTitle (string)(required)
note (string)(optional)
protocol ()(optional)
typeProject ()(optional)
address (string)(optional)
province (string)(optional)
city (string)(optional)
cap (string)(optional)
building (string)(optional)
scale ()(optional)
intern ()(optional)
typeCustomer ()(optional)
startTime ()(optional)
endTime ()(optional)
responsibleId (integer)(optional)
responsibleUserId (integer)(optional)
pluginType ()(optional)
dateType (string)(optional) "free" for free dates, "fixed" for defined dates
dateCustomJson (string)(required if dateType value is "fixed") Custom Date array in json format (2017-06-22)
defaultAcl (string)(optional) "restricted" or "public"
Return
project (multi Array)(if success) project with fields

projectTitle

dateType

dateCustomJson

defaultAcl

ProjectEdit (Ver. 1.0)

Edit project by project Id.
Params
projectId (string)(required)
projectTitle (string)(optional)
note (string)(optional)
protocol ()(optional)
typeProject ()(optional)
address (string)(optional)
province (string)(optional)
city (string)(optional)
cap (string)(optional)
building (string)(optional)
scale ()(optional)
intern ()(optional)
typeCustomer ()(optional)
startTime ()(optional)
endTime ()(optional)
responsibleId (integer)(optional)
responsibleUserId (integer)(optional)
pluginType ()(optional)
dateType (string)(optional) "free" for free dates, "fixed" for defined dates
dateCustomJson (string)(required if dateType value is "fixed") Custom Date array in json format (2017-06-22)
defaultAcl (string)(optional) "restricted" or "public"
Return
project (multi Array)(if success) project with fields

projectTitle

projectId

dateType

dateCustomJson

defaultAcl

ProjectAclList (Ver. 1.0)

Get ACL permission list by project ID
Params
projectId (string)(required)
Return
acl (multi Array)(if success) project acl list - global and spec

projectId