fkm

<back to all web services

DocumentUpdate

Requires Authentication
The following routes are available for this service:
POST/DocumentUpdate
DocumentUpdate Parameters:
NameParameterData TypeRequiredDescription
UidbodystringYes
UserNamebodystringYes
UidParentbodystringNo
ObjectUidbodystringNo
ProjectUidbodystringNo
NumberbodystringNo
CreateDatebodystringNo
AuthorbodystringNo
DocumentTypebodyDocumentType?No
KindOfMaintenancebodyMaintenanceKinds?No
CommentbodystringNo
CommentSMSbodystringNo
MaintenancePlanbodyUpdateMaintenancePlanNo
CompletionStatusbodyCompletionStatus?No
DocumentStatusbodyDocumentStatus?No
IsFaultbodybool?No
FilesbodyList<string>No
IsReadbodybool?No
ReadDatebodystringNo
ClientbodystringNo
StoreObjectbodyPushStoreObjectNo
DocumentNotebodystringNo
FilesCommentbodystringNo
SurveyCommentbodystringNo
MainTaskbodybool?No
DeadlineDatebodystringNo
DocumentType Enum:
failure
warrantyService
additionalWorks
maintenance
MaintenanceKinds Enum:
texno
xolod
stroyka
vik
UpdateMaintenancePlan Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
PlanStartformstringNo
PlanEndformstringNo
MaintenanceDateformstringNo
CompletionStatus Enum:
completed
needItems
completedButNotSendRemedi
DocumentStatus Enum:
active
closed
PushStoreObject Parameters:
NameParameterData TypeRequiredDescription
NameformstringYes
AddressformPushStoreObjectAddressNo
DistrictformstringNo
ClientformstringNo
ContactsformList<PushStoreObjectContact>No
ObjectNumberformstringNo
PushStoreObjectAddress Parameters:
NameParameterData TypeRequiredDescription
AddressformstringNo
LongitudeformstringNo
LatitudeformstringNo
PushStoreObjectContact Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
PhoneformstringNo
PositionformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /DocumentUpdate HTTP/1.1 
Host: s10.tdfkm.ru 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"uid":"String","userName":"String","uidParent":"String","objectUid":"String","projectUid":"String","number":"String","createDate":"String","author":"String","documentType":"failure","kindOfMaintenance":"texno","comment":"String","commentSMS":"String","maintenancePlan":{"name":"String","planStart":"String","planEnd":"String","maintenanceDate":"String"},"completionStatus":"completed","documentStatus":"active","isFault":false,"files":["String"],"isRead":false,"readDate":"String","client":"String","storeObject":{"name":"String","address":{"address":"String","longitude":"String","latitude":"String"},"district":"String","client":"String","contacts":[{"name":"String","phone":"String","position":"String"}],"objectNumber":"String"},"documentNote":"String","filesComment":"String","surveyComment":"String","mainTask":false,"deadlineDate":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"updated":false,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}