| PUT | /v1/forms/service-links/{LineId} |
|---|
"use strict";
export class FormServiceLinkView {
/** @param {{LineId?:string,ServiceName?:string,BranchName?:string,SendsQuestionnaire?:boolean,FormUID?:string,FormName?:string,Mine?:boolean,Live?:boolean,Note?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
LineId;
/** @type {string} */
ServiceName;
/** @type {string} */
BranchName;
/** @type {boolean} */
SendsQuestionnaire;
/** @type {?string} */
FormUID;
/** @type {string} */
FormName;
/** @type {boolean} */
Mine;
/** @type {boolean} */
Live;
/** @type {string} */
Note;
}
export class FormServiceLinkForm {
/** @param {{FormUID?:string,Name?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
FormUID;
/** @type {string} */
Name;
}
export class FormServiceLinksResponse {
/** @param {{Services?:FormServiceLinkView[],Forms?:FormServiceLinkForm[],Sentence?:string,ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {FormServiceLinkView[]} */
Services = [];
/** @type {FormServiceLinkForm[]} */
Forms = [];
/** @type {string} */
Sentence;
/** @type {ResponseStatus} */
ResponseStatus;
}
export class FormServiceLinkSetRequest {
/** @param {{LineId?:string,FormUID?:string,ForFormUID?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
LineId;
/** @type {?string} */
FormUID;
/** @type {?string} */
ForFormUID;
}
JavaScript FormServiceLinkSetRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}
}
}