Trendsic Platform Service

<back to all web services

JobDependencyUpdateRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
PUT,OPTIONS/v1/project/{ProjectID}/dependencies/{JobDependencyID}

export class JobDependency
{
    public JobDependencyID: number;
    public TenantId: string;
    public ProjectID: number;
    public PredecessorJobID: number;
    public SuccessorJobID: number;
    public DependencyType: string;
    public LagDays: number;
    public CreatedBy: string;
    public CreatedAt?: string;
    public UpdatedAt?: string;

    public constructor(init?: Partial<JobDependency>) { (Object as any).assign(this, init); }
}

export class JobDependencyResponse
{
    public ResponseStatus: ResponseStatus;
    public ProjectID: number;
    public Dependencies: JobDependency[] = [];

    public constructor(init?: Partial<JobDependencyResponse>) { (Object as any).assign(this, init); }
}

export class JobDependencyUpdateRequest
{
    public ProjectID: number;
    public JobDependencyID: number;
    public DependencyType: string;
    public LagDays: number;

    public constructor(init?: Partial<JobDependencyUpdateRequest>) { (Object as any).assign(this, init); }
}

TypeScript JobDependencyUpdateRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /v1/project/{ProjectID}/dependencies/{JobDependencyID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"ProjectID":0,"JobDependencyID":0,"DependencyType":"String","LagDays":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}]}