Trendsic Platform Service

<back to all web services

FormServiceLinkSetRequest

Requires Authentication
The following routes are available for this service:
PUT/v1/forms/service-links/{LineId}
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 FormServiceLinkForm
            Public Overridable Property FormUID As Guid
            Public Overridable Property Name As String
        End Class

        Public Partial Class FormServiceLinkSetRequest
            Public Overridable Property LineId As Guid
            Public Overridable Property FormUID As Guid?
            Public Overridable Property ForFormUID As Guid?
        End Class

        Public Partial Class FormServiceLinksResponse
            Public Overridable Property Services As List(Of FormServiceLinkView) = New List(Of FormServiceLinkView)
            Public Overridable Property Forms As List(Of FormServiceLinkForm) = New List(Of FormServiceLinkForm)
            Public Overridable Property Sentence As String
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class FormServiceLinkView
            Public Overridable Property LineId As Guid
            Public Overridable Property ServiceName As String
            Public Overridable Property BranchName As String
            Public Overridable Property SendsQuestionnaire As Boolean
            Public Overridable Property FormUID As Guid?
            Public Overridable Property FormName As String
            Public Overridable Property Mine As Boolean
            Public Overridable Property Live As Boolean
            Public Overridable Property Note As String
        End Class
    End Namespace
End Namespace

VB.NET FormServiceLinkSetRequest DTOs

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

HTTP + CSV

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

PUT /v1/forms/service-links/{LineId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"LineId":"00000000000000000000000000000000","FormUID":"00000000000000000000000000000000","ForFormUID":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Services":[{"LineId":"00000000000000000000000000000000","ServiceName":"String","BranchName":"String","SendsQuestionnaire":false,"FormUID":"00000000000000000000000000000000","FormName":"String","Mine":false,"Live":false,"Note":"String"}],"Forms":[{"FormUID":"00000000000000000000000000000000","Name":"String"}],"Sentence":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}