| Requires any of the roles: | Agent, Administrator |
| DELETE,OPTIONS | /v1/project/{ProjectID}/dependencies/{JobDependencyID} |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;
namespace CRM.AgencyPlatform.API.Internal
{
public partial class JobDependency
{
public virtual int JobDependencyID { get; set; }
public virtual Guid TenantId { get; set; }
public virtual int ProjectID { get; set; }
public virtual int PredecessorJobID { get; set; }
public virtual int SuccessorJobID { get; set; }
public virtual string DependencyType { get; set; }
public virtual int LagDays { get; set; }
public virtual string CreatedBy { get; set; }
public virtual DateTime? CreatedAt { get; set; }
public virtual DateTime? UpdatedAt { get; set; }
}
public partial class JobDependencyDeleteRequest
{
public virtual int ProjectID { get; set; }
public virtual int JobDependencyID { get; set; }
}
public partial class JobDependencyResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual int ProjectID { get; set; }
public virtual List<JobDependency> Dependencies { get; set; } = [];
}
}
C# JobDependencyDeleteRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /v1/project/{ProjectID}/dependencies/{JobDependencyID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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"}]}