{"info":{"_postman_id":"3036d6f4-392d-4cb1-81e1-2fc3fdad7525","name":"WoCreateCommand2","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"19494308","collectionId":"3036d6f4-392d-4cb1-81e1-2fc3fdad7525","publishedId":"UVz1NBwe","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-04-12T17:12:10.000Z"},"item":[{"name":"WoCreateCommand2","id":"18e6f3d1-bf3a-4f17-a13e-fa7a1e5eae82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"},{"key":"client_authentication","value":"<client_authentication>"},{"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\" : 12584\r\n               },\r\n               \"Task\" : {\r\n                  \"Id\" : 14389\r\n               }\r\n            }\r\n         ],\r\n         \"TypeCategory\" : 4,\r\n         \"Priority\" : {\r\n            \"Id\" : 1\r\n         },\r\n         \"SubType\" : {\r\n            \"Id\" : 259\r\n         },\r\n         \"Customer\" : {\r\n            \"Id\" : 3\r\n         }\r\n      },\r\n      \"Specialityid\":1,\r\n      \"ExpenseAccountid\":601,\r\n      \"VendorNte\":0,\r\n      \"ComputeSchedule\" : true,\r\n      \"ComputeAssignment\" : true,\r\n      \"EmergencyDisabled\" : false,\r\n      \"Comment\" : \"Creation Comment here\"\r\n   },\r\n   \"RequestId\" : \"1234\"\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":"ce941e37-e4d7-41ae-abc7-52be1d53035e","name":"WoCreateCommand2","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\" : 12584\r\n               },\r\n               \"Task\" : {\r\n                  \"Id\" : 14389\r\n               }\r\n            }\r\n         ],\r\n         \"TypeCategory\" : 4,\r\n         \"Priority\" : {\r\n            \"Id\" : 1\r\n         },\r\n         \"SubType\" : {\r\n            \"Id\" : 259\r\n         },\r\n         \"Customer\" : {\r\n            \"Id\" : 3\r\n         }\r\n      },\r\n      \"Specialityid\":1,\r\n      \"ExpenseAccountid\":601,\r\n      \"VendorNte\":0,\r\n      \"ComputeSchedule\" : true,\r\n      \"ComputeAssignment\" : true,\r\n      \"EmergencyDisabled\" : false,\r\n      \"Comment\" : \"Creation Comment here\"\r\n   },\r\n   \"RequestId\" : \"1234\"\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":"Tue, 08 Mar 2022 14:12:29 GMT"},{"key":"Content-Length","value":"1101"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"CommandResult\": {\n        \"Wo\": {\n            \"Number\": \"ASN0013661\",\n            \"TypeCategory\": \"Request\",\n            \"WorkOrderCost\": {\n                \"Id\": 388093\n            },\n            \"Priority\": {\n                \"Id\": 3\n            },\n            \"StatusId\": \"New\",\n            \"Access\": \"NotApplicable\",\n            \"MainAsset\": {\n                \"Id\": 12584\n            },\n            \"ShortLocation\": \"NHQ 03 East\",\n            \"TaskRefinement\": \"TN - NHQ (Nashville Headquarters):NHQ 03 East:Other\",\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\": 10095\n            },\n            \"PoNumber\": \"\",\n            \"SubType\": {\n                \"Id\": 259\n            },\n            \"Customer\": {\n                \"Id\": 3\n            },\n            \"ContactName\": \"\",\n            \"WonId\": 0,\n            \"IsWarranty\": false,\n            \"FlagId\": 0,\n            \"TimeZone\": 35,\n            \"CurrencyTypeId\": \"USD\",\n            \"LastActionDate\": \"2022-03-08T09:12:29.2585836\",\n            \"DtCreated\": \"2022-03-08T09:12:29.2585836\",\n            \"DtDue\": \"2022-03-25T12:30:00\",\n            \"DtAcknowledgeBy\": \"2022-03-10T15:30:00\",\n            \"AcknowledgeByUtc\": \"2022-03-10T20:30:00Z\",\n            \"LastActionDateUtc\": \"2022-03-08T14:12:29.2585836Z\",\n            \"CreatedDateUtc\": \"2022-03-08T14:12:29.2585836Z\",\n            \"DueDateUtc\": \"2022-03-25T16:30:00Z\",\n            \"DtOnSiteBy\": \"2022-03-15T12:30:00\",\n            \"DtUtcOnSiteBy\": \"2022-03-15T16:30:00Z\",\n            \"LastAction\": {\n                \"Id\": 388093\n            },\n            \"InductionAndSafetyStatusID\": \"NotApplicable\",\n            \"ConcurrencyId\": 1,\n            \"Id\": 388093\n        }\n    },\n    \"RequestId\": \"1234\"\n}"}],"_postman_id":"18e6f3d1-bf3a-4f17-a13e-fa7a1e5eae82"}]}