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}
import Foundation
import ServiceStack

public class FormServiceLinkSetRequest : Codable
{
    public var lineId:String
    public var formUID:String?
    public var forFormUID:String?

    required public init(){}
}

public class FormServiceLinksResponse : Codable
{
    public var services:[FormServiceLinkView] = []
    public var forms:[FormServiceLinkForm] = []
    public var sentence:String
    public var responseStatus:ResponseStatus

    required public init(){}
}

public class FormServiceLinkView : Codable
{
    public var lineId:String
    public var serviceName:String
    public var branchName:String
    public var sendsQuestionnaire:Bool
    public var formUID:String?
    public var formName:String
    public var mine:Bool
    public var live:Bool
    public var note:String

    required public init(){}
}

public class FormServiceLinkForm : Codable
{
    public var formUID:String
    public var name:String

    required public init(){}
}


Swift FormServiceLinkSetRequest DTOs

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

HTTP + JSV

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/jsv
Content-Type: text/jsv
Content-Length: length

{
	LineId: 00000000000000000000000000000000,
	FormUID: 00000000000000000000000000000000,
	ForFormUID: 00000000000000000000000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
		}
	}
}