Trendsic Platform Service

<back to all web services

RfiCreateRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/projects/{ProjectID}/rfis
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 Rfi
            Public Overridable Property RfiID As Integer
            Public Overridable Property RfiUID As Guid
            Public Overridable Property ProjectID As Integer
            Public Overridable Property RfiNo As String
            Public Overridable Property Subject As String
            Public Overridable Property Question As String
            Public Overridable Property Answer As String
            Public Overridable Property Discipline As String
            Public Overridable Property AskedOf As String
            Public Overridable Property Status As String
            Public Overridable Property CostImpact As Boolean
            Public Overridable Property ScheduleImpact As Boolean
            Public Overridable Property SubmittedDate As Date?
            Public Overridable Property DueDate As Date?
            Public Overridable Property AnsweredDate As Date?
            Public Overridable Property ClosedDate As Date?
            Public Overridable Property PromotedChangeOrderID As Integer?
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property UpdatedAt As Date?
            Public Overridable Property DaysOpen As Integer
        End Class

        Public Partial Class RfiCreateRequest
            Public Overridable Property ProjectID As Integer
            Public Overridable Property RfiNo As String
            Public Overridable Property Subject As String
            Public Overridable Property Question As String
            Public Overridable Property Discipline As String
            Public Overridable Property AskedOf As String
            Public Overridable Property CostImpact As Boolean
            Public Overridable Property ScheduleImpact As Boolean
            Public Overridable Property DueDate As Date?
        End Class

        Public Partial Class RfiResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Rfi As Rfi
        End Class
    End Namespace
End Namespace

VB.NET RfiCreateRequest 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.

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

{"ProjectID":0,"RfiNo":"String","Subject":"String","Question":"String","Discipline":"String","AskedOf":"String","CostImpact":false,"ScheduleImpact":false,"DueDate":"0001-01-01T00:00:00.0000000"}
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"}},"Rfi":{"RfiID":0,"RfiUID":"00000000000000000000000000000000","ProjectID":0,"RfiNo":"String","Subject":"String","Question":"String","Answer":"String","Discipline":"String","AskedOf":"String","Status":"String","CostImpact":false,"ScheduleImpact":false,"SubmittedDate":"0001-01-01T00:00:00.0000000","DueDate":"0001-01-01T00:00:00.0000000","AnsweredDate":"0001-01-01T00:00:00.0000000","ClosedDate":"0001-01-01T00:00:00.0000000","PromotedChangeOrderID":0,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","DaysOpen":0}}