| PUT,OPTIONS | /v1/workspace/modules |
|---|
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 SetWorkspaceModulesRequest
{
public virtual List<WorkspaceFeatureSelection> Features { get; set; } = [];
}
public partial class WorkspaceFeatureSelection
{
public virtual string Key { get; set; }
public virtual bool Enabled { get; set; }
}
public partial class WorkspaceModule
{
public virtual string Key { get; set; }
public virtual string Name { get; set; }
public virtual string Letter { get; set; }
public virtual string Color { get; set; }
public virtual string Question { get; set; }
public virtual string Description { get; set; }
public virtual List<WorkspaceModuleFeature> Features { get; set; } = [];
}
public partial class WorkspaceModuleFeature
{
public virtual string Key { get; set; }
public virtual string Name { get; set; }
public virtual bool Enabled { get; set; }
}
public partial class WorkspaceModulesResponse
{
public virtual List<WorkspaceModule> Modules { get; set; } = [];
public virtual ResponseStatus ResponseStatus { get; set; }
}
}
C# SetWorkspaceModulesRequest 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/workspace/modules HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Features:
[
{
Key: String,
Enabled: False
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Modules:
[
{
Key: String,
Name: String,
Letter: String,
Color: String,
Question: String,
Description: String,
Features:
[
{
Key: String,
Name: String,
Enabled: False
}
]
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}