POST api/ApiIntegration/SBApiAddJobsToProject
Request Information
URI Parameters
None.
Body Parameters
ApiAddJobsToProject| Name | Description | Type | Additional information |
|---|---|---|---|
| PrivateApiKey | string |
None. |
|
| Project | ApiProjectInfo |
None. |
|
| JobsInfo | Collection of ApiJobInfo |
None. |
Request Formats
application/json, text/json
Sample:
{
"privateApiKey": "sample string 1",
"project": {
"projectKey": "36c8697e-945f-4fe2-b262-834060a3b8fa",
"projectName": "sample string 2"
},
"jobsInfo": [
{
"jobKey": "2f94c703-cd29-421f-8cfb-7c877e283b2c",
"jobName": "sample string 2",
"scenarioName": "sample string 3",
"estimator": "sample string 4",
"jobNote1": "sample string 5",
"jobNote2": "sample string 6",
"quoteNumber": "sample string 7",
"jobNumber": "sample string 8",
"quoteValue1": 1.0
},
{
"jobKey": "2f94c703-cd29-421f-8cfb-7c877e283b2c",
"jobName": "sample string 2",
"scenarioName": "sample string 3",
"estimator": "sample string 4",
"jobNote1": "sample string 5",
"jobNote2": "sample string 6",
"quoteNumber": "sample string 7",
"jobNumber": "sample string 8",
"quoteValue1": 1.0
}
]
}
application/xml, text/xml
Sample:
<ApiAddJobsToProject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels">
<JobsInfo>
<ApiJobInfo>
<Estimator>sample string 4</Estimator>
<JobKey>2f94c703-cd29-421f-8cfb-7c877e283b2c</JobKey>
<JobName>sample string 2</JobName>
<JobNote1>sample string 5</JobNote1>
<JobNote2>sample string 6</JobNote2>
<JobNumber>sample string 8</JobNumber>
<QuoteNumber>sample string 7</QuoteNumber>
<QuoteValue1>1</QuoteValue1>
<ScenarioName>sample string 3</ScenarioName>
</ApiJobInfo>
<ApiJobInfo>
<Estimator>sample string 4</Estimator>
<JobKey>2f94c703-cd29-421f-8cfb-7c877e283b2c</JobKey>
<JobName>sample string 2</JobName>
<JobNote1>sample string 5</JobNote1>
<JobNote2>sample string 6</JobNote2>
<JobNumber>sample string 8</JobNumber>
<QuoteNumber>sample string 7</QuoteNumber>
<QuoteValue1>1</QuoteValue1>
<ScenarioName>sample string 3</ScenarioName>
</ApiJobInfo>
</JobsInfo>
<PrivateApiKey>sample string 1</PrivateApiKey>
<Project>
<ProjectKey>36c8697e-945f-4fe2-b262-834060a3b8fa</ProjectKey>
<ProjectName>sample string 2</ProjectName>
</Project>
</ApiAddJobsToProject>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ResponseCode | integer |
None. |
|
| ReturnKey | globally unique identifier |
None. |
|
| ResponseNote | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"responseCode": 1,
"returnKey": "bde2986f-eca1-4e29-8e02-2ac432539c88",
"responseNote": "sample string 2"
}
application/xml, text/xml
Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels"> <ResponseCode>1</ResponseCode> <ResponseNote>sample string 2</ResponseNote> <ReturnKey>bde2986f-eca1-4e29-8e02-2ac432539c88</ReturnKey> </ApiResponse>