{"info":{"_postman_id":"67c8da26-453c-43d3-b710-9e12281a94ed","name":"WoCreateCommandWithDocLink","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"19494308","collectionId":"67c8da26-453c-43d3-b710-9e12281a94ed","publishedId":"UVz1PCcm","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-04-13T08:04:12.000Z"},"item":[{"name":"WoCreateCommandWithDocLink","id":"74dcd664-7753-43a6-abcd-b8d0bbf84033","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"tokenType","value":"<token-type>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"POST","header":[{"key":"CompanyName","value":"RDC CE Sandbox","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"Command\": {\r\n        \"WorkOrder\": {\r\n            \"Items\": [\r\n                {\r\n                    \"Asset\": {\r\n                        \"Id\": 4182\r\n                    },\r\n                    \"Task\": {\r\n                        \"Id\": 14818\r\n                    },\r\n                    \"Comment\": \"Creation Comment here\"\r\n                }\r\n            ],\r\n            \"ContactName\": \"Contact Name\",\r\n            \"ContactAddress\": {\r\n                \"AddrTypeId\": \"Contact\",\r\n                \"Address\": \"214-555-5555\"\r\n            },\r\n            \"TypeCategory\": 4,\r\n            \"SubType\": {\r\n                \"Id\": 259\r\n            },\r\n            \"Customer\": {\r\n                \"Id\": 3\r\n            },\r\n            \"Documents\": [\r\n                {\r\n                    \"Title\": \"Link Example\",\r\n                    \"Description\": \"Description of link. This is optional\",\r\n                    \"IsShared\": true,\r\n                    \"IsPublic\": true,\r\n                    \"StorageTypeId\": \"URL\",\r\n                    \"DocUrl\": \"https://www.google.com/\",\r\n                    \"DocType\": {\r\n                        \"DisplayAs\": \"Link\"\r\n                    }\r\n                }\r\n            ]\r\n        },\r\n        \"ComputeSchedule\": true,\r\n        \"ComputeAssignment\": true\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://am-ce98c.corrigo.com/api/v1/cmd/Workorder/Create","urlObject":{"protocol":"https","path":["api","v1","cmd","Workorder","Create"],"host":["am-ce98c","corrigo","com"],"query":[],"variable":[]}},"response":[{"id":"627a04e9-d0ac-4848-9b62-d474fe910544","name":"WoCreateCommandWithDocLink","originalRequest":{"method":"POST","header":[{"key":"CompanyName","value":"RDC CE Sandbox","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"Command\": {\r\n        \"WorkOrder\": {\r\n            \"Items\": [\r\n                {\r\n                    \"Asset\": {\r\n                        \"Id\": 4182\r\n                    },\r\n                    \"Task\": {\r\n                        \"Id\": 14818\r\n                    },\r\n                    \"Comment\": \"Creation Comment here\"\r\n                }\r\n            ],\r\n            \"ContactName\": \"Contact Name\",\r\n            \"ContactAddress\": {\r\n                \"AddrTypeId\": \"Contact\",\r\n                \"Address\": \"214-555-5555\"\r\n            },\r\n            \"TypeCategory\": 4,\r\n            \"SubType\": {\r\n                \"Id\": 259\r\n            },\r\n            \"Customer\": {\r\n                \"Id\": 3\r\n            },\r\n            \"Documents\": [\r\n                {\r\n                    \"Title\": \"Link Example\",\r\n                    \"Description\": \"Description of link. This is optional\",\r\n                    \"IsShared\": true,\r\n                    \"IsPublic\": true,\r\n                    \"StorageTypeId\": \"URL\",\r\n                    \"DocUrl\": \"https://www.google.com/\",\r\n                    \"DocType\": {\r\n                        \"DisplayAs\": \"Link\"\r\n                    }\r\n                }\r\n            ]\r\n        },\r\n        \"ComputeSchedule\": true,\r\n        \"ComputeAssignment\": true\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://am-ce98c.corrigo.com/api/v1/cmd/Workorder/Create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Date","value":"Wed, 13 Apr 2022 08:06:42 GMT"},{"key":"Content-Length","value":"1145"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"CommandResult\": {\n        \"Wo\": {\n            \"Number\": \"ASN0013687\",\n            \"TypeCategory\": \"Request\",\n            \"WorkOrderCost\": {\n                \"Id\": 388128\n            },\n            \"Priority\": {\n                \"Id\": 4\n            },\n            \"StatusId\": \"New\",\n            \"Access\": \"NotApplicable\",\n            \"MainAsset\": {\n                \"Id\": 4084\n            },\n            \"ShortLocation\": \"ARRU Floor 1\",\n            \"TaskRefinement\": \"Building Interior>Building/Structure Repair & Maintenance:Pest Control:Proactive:Creation Comment here\",\n            \"WorkZone\": {\n                \"Id\": 1\n            },\n            \"Employee\": {\n                \"Id\": 154\n            },\n            \"Duration\": 0,\n            \"VendorNte\": {\n                \"CurrencyTypeId\": \"USD\",\n                \"Value\": 0\n            },\n            \"Specialty\": {\n                \"Id\": 10087\n            },\n            \"PoNumber\": \"\",\n            \"SubType\": {\n                \"Id\": 259\n            },\n            \"Customer\": {\n                \"Id\": 3\n            },\n            \"ContactName\": \"Contact Name\",\n            \"WonId\": 0,\n            \"IsWarranty\": false,\n            \"FlagId\": 0,\n            \"TimeZone\": 35,\n            \"CurrencyTypeId\": \"USD\",\n            \"LastActionDate\": \"2022-04-13T04:06:42.3955637\",\n            \"DtCreated\": \"2022-04-13T04:06:42.3955637\",\n            \"DtDue\": \"2022-06-27T11:00:00\",\n            \"DtAcknowledgeBy\": \"2022-05-02T11:00:00\",\n            \"AcknowledgeByUtc\": \"2022-05-02T15:00:00Z\",\n            \"LastActionDateUtc\": \"2022-04-13T08:06:42.3955637Z\",\n            \"CreatedDateUtc\": \"2022-04-13T08:06:42.3955637Z\",\n            \"DueDateUtc\": \"2022-06-27T15:00:00Z\",\n            \"DtOnSiteBy\": \"2022-05-05T14:00:00\",\n            \"DtUtcOnSiteBy\": \"2022-05-05T18:00:00Z\",\n            \"LastAction\": {\n                \"Id\": 388128\n            },\n            \"InductionAndSafetyStatusID\": \"NotApplicable\",\n            \"ConcurrencyId\": 1,\n            \"Id\": 388128\n        }\n    }\n}"}],"_postman_id":"74dcd664-7753-43a6-abcd-b8d0bbf84033"}]}