| Requires any of the roles: | Agent, Administrator |
| POST,OPTIONS | /v1/project/{ProjectID}/dependencies |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class JobDependency
Public Overridable Property JobDependencyID As Integer
Public Overridable Property TenantId As Guid
Public Overridable Property ProjectID As Integer
Public Overridable Property PredecessorJobID As Integer
Public Overridable Property SuccessorJobID As Integer
Public Overridable Property DependencyType As String
Public Overridable Property LagDays As Integer
Public Overridable Property CreatedBy As String
Public Overridable Property CreatedAt As Date?
Public Overridable Property UpdatedAt As Date?
End Class
Public Partial Class JobDependencyCreateRequest
Public Overridable Property ProjectID As Integer
Public Overridable Property PredecessorJobID As Integer
Public Overridable Property SuccessorJobID As Integer
Public Overridable Property DependencyType As String
Public Overridable Property LagDays As Integer
End Class
Public Partial Class JobDependencyResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property ProjectID As Integer
Public Overridable Property Dependencies As List(Of JobDependency) = New List(Of JobDependency)
End Class
End Namespace
End Namespace
VB.NET JobDependencyCreateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/project/{ProjectID}/dependencies HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ProjectID":0,"PredecessorJobID":0,"SuccessorJobID":0,"DependencyType":"String","LagDays":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectID":0,"Dependencies":[{"JobDependencyID":0,"TenantId":"00000000000000000000000000000000","ProjectID":0,"PredecessorJobID":0,"SuccessorJobID":0,"DependencyType":"String","LagDays":0,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}]}