POST api/v2/works
Request
URI Parameters
Body Parameters
WorkNew| Name | Description | Type | Additional information |
|---|---|---|---|
| Identification | string | ||
| ReferenceKey | string | ||
| WorkTypeId | integer | ||
| OwnerUserId | integer | ||
| PriceListId | integer | ||
| AccountId | integer | ||
| RelatedAccountId | integer | ||
| Confidential | boolean | ||
| ServiceCenterId | integer | ||
| PriorityId | integer | ||
| WorkClassId | integer | ||
| WorkSubclassId | integer | ||
| WorkConclusionId | integer | ||
| InheritAccount | boolean | ||
| ExchangeDate | date | ||
| MultiCurrencyConfigCurrencyId | integer | ||
| CurrentWorkFlow | WorkFlowNew | ||
| WorkFlowEstimatedTimes | Collection of WorkFlowEstimatedTimeNew | ||
| WorkAccount | Collection of WorkAccountNew |
Request Formats
application/json, text/json
Sample:
{
"Identification": "sample string 1",
"ReferenceKey": "sample string 2",
"WorkTypeId": 3,
"OwnerUserId": 4,
"PriceListId": 1,
"AccountId": 1,
"RelatedAccountId": 1,
"Confidential": true,
"ServiceCenterId": 1,
"PriorityId": 1,
"WorkClassId": 1,
"WorkSubclassId": 1,
"WorkConclusionId": 1,
"InheritAccount": true,
"ExchangeDate": "2026-02-02T21:08:45.4305918Z",
"MultiCurrencyConfigCurrencyId": 1,
"CurrentWorkFlow": {
"WorkFlowStepToId": 1,
"ResponsibleUserId": 1,
"ResponsibleServiceAreaId": 1,
"Conclusion": "2026-02-02T21:08:45.4305918Z",
"Execution": "2026-02-02T21:08:45.4305918Z",
"SampleStatusId": 1,
"RequiredAccount": true,
"RequireAccountFields": true,
"EstimatedWork": 1.1,
"AllowSamples": true,
"EditEstimatedTimes": true,
"PriorityRequired": true,
"RequiredConclusion": true,
"RequiredClass": true,
"RequiredSubclass": true,
"RequiredPerformTime": true,
"AllowEditTemplateSample": true,
"Infos": [
{
"InfoId": 1,
"InfoTypeId": 2,
"MeasurementUnitId": 1,
"DisplayValue": "sample string 3",
"ForceScale": 1,
"ForceSignifDigits": 1,
"InputScale": 1,
"InputSignifDigits": 1,
"InputFormat": "sample string 4",
"ValueText": "sample string 5",
"ValueInteger": 1,
"ValueFloat": 1.1,
"ValueDateTime": "2026-02-02T21:08:45.4305918Z",
"ValueBoolean": true,
"ValueAccountId": 1,
"DependentInfoId": 1,
"Inherited": true,
"Order": 7,
"WorkModelInherited": true,
"RequireWhenEnterStep": true,
"RequireWhenLeaveStep": true,
"EditOnlyAtThisStep": true,
"Propagate": true,
"AllowEditPropagate": true,
"Attribute": "sample string 14",
"InfoGroupId": 1
},
{
"InfoId": 1,
"InfoTypeId": 2,
"MeasurementUnitId": 1,
"DisplayValue": "sample string 3",
"ForceScale": 1,
"ForceSignifDigits": 1,
"InputScale": 1,
"InputSignifDigits": 1,
"InputFormat": "sample string 4",
"ValueText": "sample string 5",
"ValueInteger": 1,
"ValueFloat": 1.1,
"ValueDateTime": "2026-02-02T21:08:45.4305918Z",
"ValueBoolean": true,
"ValueAccountId": 1,
"DependentInfoId": 1,
"Inherited": true,
"Order": 7,
"WorkModelInherited": true,
"RequireWhenEnterStep": true,
"RequireWhenLeaveStep": true,
"EditOnlyAtThisStep": true,
"Propagate": true,
"AllowEditPropagate": true,
"Attribute": "sample string 14",
"InfoGroupId": 1
}
]
},
"WorkFlowEstimatedTimes": [
{
"WorkFlowStepId": 1,
"Required": true,
"EstimatedTime": 1.1
},
{
"WorkFlowStepId": 1,
"Required": true,
"EstimatedTime": 1.1
}
],
"WorkAccount": [
{
"RelationshipWorkAccountId": 1,
"AccountId": 1,
"RelatedAccountId": 1,
"Inherited": true
},
{
"RelationshipWorkAccountId": 1,
"AccountId": 1,
"RelatedAccountId": 1,
"Inherited": true
}
]
}
text/html
Sample:
{"Identification":"sample string 1","ReferenceKey":"sample string 2","WorkTypeId":3,"OwnerUserId":4,"PriceListId":1,"AccountId":1,"RelatedAccountId":1,"Confidential":true,"ServiceCenterId":1,"PriorityId":1,"WorkClassId":1,"WorkSubclassId":1,"WorkConclusionId":1,"InheritAccount":true,"ExchangeDate":"2026-02-02T21:08:45.4305918Z","MultiCurrencyConfigCurrencyId":1,"CurrentWorkFlow":{"WorkFlowStepToId":1,"ResponsibleUserId":1,"ResponsibleServiceAreaId":1,"Conclusion":"2026-02-02T21:08:45.4305918Z","Execution":"2026-02-02T21:08:45.4305918Z","SampleStatusId":1,"RequiredAccount":true,"RequireAccountFields":true,"EstimatedWork":1.1,"AllowSamples":true,"EditEstimatedTimes":true,"PriorityRequired":true,"RequiredConclusion":true,"RequiredClass":true,"RequiredSubclass":true,"RequiredPerformTime":true,"AllowEditTemplateSample":true,"Infos":[{"InfoId":1,"InfoTypeId":2,"MeasurementUnitId":1,"DisplayValue":"sample string 3","ForceScale":1,"ForceSignifDigits":1,"InputScale":1,"InputSignifDigits":1,"InputFormat":"sample string 4","ValueText":"sample string 5","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2026-02-02T21:08:45.4305918Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"Order":7,"WorkModelInherited":true,"RequireWhenEnterStep":true,"RequireWhenLeaveStep":true,"EditOnlyAtThisStep":true,"Propagate":true,"AllowEditPropagate":true,"Attribute":"sample string 14","InfoGroupId":1},{"InfoId":1,"InfoTypeId":2,"MeasurementUnitId":1,"DisplayValue":"sample string 3","ForceScale":1,"ForceSignifDigits":1,"InputScale":1,"InputSignifDigits":1,"InputFormat":"sample string 4","ValueText":"sample string 5","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2026-02-02T21:08:45.4305918Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"Order":7,"WorkModelInherited":true,"RequireWhenEnterStep":true,"RequireWhenLeaveStep":true,"EditOnlyAtThisStep":true,"Propagate":true,"AllowEditPropagate":true,"Attribute":"sample string 14","InfoGroupId":1}]},"WorkFlowEstimatedTimes":[{"WorkFlowStepId":1,"Required":true,"EstimatedTime":1.1},{"WorkFlowStepId":1,"Required":true,"EstimatedTime":1.1}],"WorkAccount":[{"RelationshipWorkAccountId":1,"AccountId":1,"RelatedAccountId":1,"Inherited":true},{"RelationshipWorkAccountId":1,"AccountId":1,"RelatedAccountId":1,"Inherited":true}]}
Response
integerResponse Format
application/json, text/json, text/html
Sample:
1