Trendsic Platform Service

<back to all web services

CloseoutItemPatchRequest

Requires Authentication
The following routes are available for this service:
PATCH,PUT,OPTIONS/v1/projects/{ProjectID}/closeout/{CloseoutItemID}
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 CloseoutItem
    {
        public virtual int CloseoutItemID { get; set; }
        public virtual Guid CloseoutItemUID { get; set; }
        public virtual int ProjectID { get; set; }
        public virtual string ItemKey { get; set; }
        public virtual string Label { get; set; }
        public virtual string Detail { get; set; }
        public virtual string Status { get; set; }
        public virtual bool IsApplicable { get; set; }
        public virtual int SortOrder { get; set; }
        public virtual DateTime? CompletedAt { get; set; }
        public virtual string CompletedBy { get; set; }
        public virtual string CreatedBy { get; set; }
        public virtual DateTime? CreatedAt { get; set; }
        public virtual DateTime? UpdatedAt { get; set; }
    }

    public partial class CloseoutItemPatchRequest
    {
        public virtual int ProjectID { get; set; }
        public virtual int CloseoutItemID { get; set; }
        public virtual string Status { get; set; }
        public virtual string Detail { get; set; }
        public virtual bool? IsApplicable { get; set; }
    }

    public partial class CloseoutListResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
        public virtual int ProjectID { get; set; }
        public virtual List<CloseoutItem> Items { get; set; } = [];
        public virtual CloseoutStatus Status { get; set; }
    }

    public partial class CloseoutStatus
    {
        public virtual int ProjectID { get; set; }
        public virtual int TotalItems { get; set; }
        public virtual int DoneCount { get; set; }
        public virtual int OutstandingCount { get; set; }
        public virtual bool AllClear { get; set; }
        public virtual decimal RetainageAmount { get; set; }
        public virtual bool RetainageReleased { get; set; }
        public virtual int? ReleasedPayApplicationID { get; set; }
        public virtual int? ReleasedInvoiceID { get; set; }
        public virtual DateTime? ReleasedAt { get; set; }
    }

}

C# CloseoutItemPatchRequest 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

HTTP + JSON

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

PUT /v1/projects/{ProjectID}/closeout/{CloseoutItemID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ProjectID":0,"CloseoutItemID":0,"Status":"String","Detail":"String","IsApplicable":false}
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,"Items":[{"CloseoutItemID":0,"CloseoutItemUID":"00000000000000000000000000000000","ProjectID":0,"ItemKey":"String","Label":"String","Detail":"String","Status":"String","IsApplicable":false,"SortOrder":0,"CompletedAt":"0001-01-01T00:00:00.0000000","CompletedBy":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"Status":{"ProjectID":0,"TotalItems":0,"DoneCount":0,"OutstandingCount":0,"AllClear":false,"RetainageAmount":0,"RetainageReleased":false,"ReleasedPayApplicationID":0,"ReleasedInvoiceID":0,"ReleasedAt":"0001-01-01T00:00:00.0000000"}}