Trendsic Platform Service

<back to all web services

PinsForEntityRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/pins/{EntityType}/{EntityID}
GET,OPTIONS/v1/pins/{EntityType}
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 PinsForEntityRequest
    {
        public virtual string EntityType { get; set; }
        public virtual int? EntityID { get; set; }
        public virtual Guid? EntityUID { get; set; }
    }

    public partial class SheetPin
    {
        public virtual int SheetPinID { get; set; }
        public virtual int SheetID { get; set; }
        public virtual string EntityType { get; set; }
        public virtual int? EntityID { get; set; }
        public virtual Guid? EntityUID { get; set; }
        public virtual double X { get; set; }
        public virtual double Y { get; set; }
        public virtual string Label { get; set; }
        public virtual string CreatedBy { get; set; }
        public virtual DateTime? CreatedAt { get; set; }
        public virtual string EntityNo { get; set; }
        public virtual string EntityTitle { get; set; }
        public virtual string EntityStatus { get; set; }
        public virtual Guid? InspectionUID { get; set; }
        public virtual string SheetNumber { get; set; }
        public virtual string SheetTitle { get; set; }
        public virtual int? PlanSetID { get; set; }
        public virtual Guid? PlanSetUID { get; set; }
        public virtual string PlanSetName { get; set; }
    }

    public partial class SheetPinListResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
        public virtual List<SheetPin> Pins { get; set; } = [];
    }

}

C# PinsForEntityRequest 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.

GET /v1/pins/{EntityType}/{EntityID} 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"}},"Pins":[{"SheetPinID":0,"SheetID":0,"EntityType":"String","EntityID":0,"EntityUID":"00000000000000000000000000000000","X":0,"Y":0,"Label":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","EntityNo":"String","EntityTitle":"String","EntityStatus":"String","InspectionUID":"00000000000000000000000000000000","SheetNumber":"String","SheetTitle":"String","PlanSetID":0,"PlanSetUID":"00000000000000000000000000000000","PlanSetName":"String"}]}