Trendsic Platform Service

<back to all web services

FFAgentConfigTemplateRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
POST,OPTIONS/v1/FFAgentConfigTemplate
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 FFAgentConfig
    {
        public virtual Guid Id { get; set; }
        public virtual int AgentId { get; set; }
        public virtual DateTime DateCreated { get; set; }
        public virtual DateTime DateModified { get; set; }
    }

    public partial class FFAgentConfigExtended
        : FFAgentConfig
    {
        public virtual List<FFSectionExtended> FFSections { get; set; } = [];
    }

    public partial class FFAgentConfigResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
        public virtual FFAgentConfigExtended FFAgentConfig { get; set; }
    }

    public partial class FFAgentConfigTemplateRequest
    {
        public virtual Guid FFAgentConfigId { get; set; }
        public virtual Guid TemplateId { get; set; }
    }

    public partial class FFField
    {
        public virtual Guid Id { get; set; }
        public virtual Guid FFSectionId { get; set; }
        public virtual int FieldTypeId { get; set; }
        public virtual int x { get; set; }
        public virtual int y { get; set; }
        public virtual int height { get; set; }
        public virtual int width { get; set; }
        public virtual string Text { get; set; }
    }

    public partial class FFFieldExtended
        : FFField
    {
        public virtual string Name { get; set; }
        public virtual bool IsYesNo { get; set; }
    }

    public partial class FFSection
    {
        public virtual Guid Id { get; set; }
        public virtual Guid FFAgentConfigId { get; set; }
        public virtual int SectionTypeId { get; set; }
        public virtual string Nickname { get; set; }
        public virtual bool ShowHeader { get; set; }
        public virtual string Header { get; set; }
        public virtual int height { get; set; }
        public virtual int width { get; set; }
        public virtual int x { get; set; }
        public virtual int y { get; set; }
        public virtual bool IsActive { get; set; }
        public virtual bool HasBorder { get; set; }
        public virtual string BorderColor { get; set; }
        public virtual int BorderWidth { get; set; }
        public virtual int BorderRadius { get; set; }
        public virtual DateTime DateCreated { get; set; }
        public virtual DateTime DateModified { get; set; }
    }

    public partial class FFSectionExtended
        : FFSection
    {
        public virtual string SectionTypeDesc { get; set; }
        public virtual List<FFFieldExtended> FFFields { get; set; } = [];
    }

}

C# FFAgentConfigTemplateRequest DTOs

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

HTTP + OTHER

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

POST /v1/FFAgentConfigTemplate HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"FFAgentConfigId":"00000000000000000000000000000000","TemplateId":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"FFAgentConfig":{"FFSections":[{"SectionTypeDesc":"String","FFFields":[{"Name":"String","IsYesNo":false,"Id":"00000000000000000000000000000000","FFSectionId":"00000000000000000000000000000000","FieldTypeId":0,"x":0,"y":0,"height":0,"width":0,"Text":"String"}],"Id":"00000000000000000000000000000000","FFAgentConfigId":"00000000000000000000000000000000","SectionTypeId":0,"Nickname":"String","ShowHeader":false,"Header":"String","height":0,"width":0,"x":0,"y":0,"IsActive":false,"HasBorder":false,"BorderColor":"String","BorderWidth":0,"BorderRadius":0,"DateCreated":"0001-01-01T00:00:00.0000000","DateModified":"0001-01-01T00:00:00.0000000"}],"Id":"00000000000000000000000000000000","AgentId":0,"DateCreated":"0001-01-01T00:00:00.0000000","DateModified":"0001-01-01T00:00:00.0000000"}}