| POST,OPTIONS | /v1/projects/{ProjectID}/submittals |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProjectID | path | int | No | |
| SubmittalNo | body | string | No | |
| SpecSection | body | string | No | |
| Title | body | string | No | |
| SubType | body | string | No | |
| Rev | body | int | No | |
| BallInCourt | body | string | No | |
| DueDate | body | DateTime? | No | |
| Notes | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Submittal | form | Submittal | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SubmittalID | form | int | No | |
| SubmittalUID | form | Guid | No | |
| ProjectID | form | int | No | |
| SubmittalNo | form | string | No | |
| SpecSection | form | string | No | |
| Title | form | string | No | |
| SubType | form | string | No | |
| Rev | form | int | No | |
| BallInCourt | form | string | No | |
| Status | form | string | No | |
| DueDate | form | DateTime? | No | |
| SubmittedDate | form | DateTime? | No | |
| DecidedDate | form | DateTime? | No | |
| Notes | form | string | No | |
| CreatedBy | form | string | No | |
| CreatedAt | form | DateTime? | No | |
| UpdatedAt | form | DateTime? | No | |
| IsOverdue | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/projects/{ProjectID}/submittals HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ProjectID: 0,
SubmittalNo: String,
SpecSection: String,
Title: String,
SubType: String,
Rev: 0,
BallInCourt: String,
DueDate: 0001-01-01,
Notes: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Submittal:
{
SubmittalID: 0,
SubmittalUID: 00000000000000000000000000000000,
ProjectID: 0,
SubmittalNo: String,
SpecSection: String,
Title: String,
SubType: String,
Rev: 0,
BallInCourt: String,
Status: String,
DueDate: 0001-01-01,
SubmittedDate: 0001-01-01,
DecidedDate: 0001-01-01,
Notes: String,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01,
IsOverdue: False
}
}