Trendsic Platform Service

<back to all web services

MarkupRaiseRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/markup/{AttachmentId}/{VersionNo}/{PageIndex}/shapes/{ShapeId}/{Raise}
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class DocumentMarkupLink implements IConvertible
{
    int? DocumentMarkupLinkID;
    String? AttachmentId;
    int? VersionNo;
    int? PageIndex;
    String? ShapeId;
    String? EntityType;
    int? EntityID;
    String? EntityNo;
    String? CreatedBy;
    DateTime? CreatedAt;

    DocumentMarkupLink({this.DocumentMarkupLinkID,this.AttachmentId,this.VersionNo,this.PageIndex,this.ShapeId,this.EntityType,this.EntityID,this.EntityNo,this.CreatedBy,this.CreatedAt});
    DocumentMarkupLink.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        DocumentMarkupLinkID = json['DocumentMarkupLinkID'];
        AttachmentId = json['AttachmentId'];
        VersionNo = json['VersionNo'];
        PageIndex = json['PageIndex'];
        ShapeId = json['ShapeId'];
        EntityType = json['EntityType'];
        EntityID = json['EntityID'];
        EntityNo = json['EntityNo'];
        CreatedBy = json['CreatedBy'];
        CreatedAt = JsonConverters.fromJson(json['CreatedAt'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'DocumentMarkupLinkID': DocumentMarkupLinkID,
        'AttachmentId': AttachmentId,
        'VersionNo': VersionNo,
        'PageIndex': PageIndex,
        'ShapeId': ShapeId,
        'EntityType': EntityType,
        'EntityID': EntityID,
        'EntityNo': EntityNo,
        'CreatedBy': CreatedBy,
        'CreatedAt': JsonConverters.toJson(CreatedAt,'DateTime',context!)
    };

    getTypeName() => "DocumentMarkupLink";
    TypeContext? context = _ctx;
}

class MarkupRaiseResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    DocumentMarkupLink? Link;
    List<DocumentMarkupLink>? Links = [];

    MarkupRaiseResponse({this.ResponseStatus,this.Link,this.Links});
    MarkupRaiseResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        Link = JsonConverters.fromJson(json['Link'],'DocumentMarkupLink',context!);
        Links = JsonConverters.fromJson(json['Links'],'List<DocumentMarkupLink>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
        'Link': JsonConverters.toJson(Link,'DocumentMarkupLink',context!),
        'Links': JsonConverters.toJson(Links,'List<DocumentMarkupLink>',context!)
    };

    getTypeName() => "MarkupRaiseResponse";
    TypeContext? context = _ctx;
}

class MarkupRaiseRequest implements IConvertible
{
    String? AttachmentId;
    int? VersionNo;
    int? PageIndex;
    String? ShapeId;
    String? Raise;
    int? ProjectID;
    String? Title;
    String? Description;
    String? Area;
    String? Trade;
    String? AssignedSub;
    String? Priority;
    String? AskedOf;
    String? Discipline;
    DateTime? DueDate;

    MarkupRaiseRequest({this.AttachmentId,this.VersionNo,this.PageIndex,this.ShapeId,this.Raise,this.ProjectID,this.Title,this.Description,this.Area,this.Trade,this.AssignedSub,this.Priority,this.AskedOf,this.Discipline,this.DueDate});
    MarkupRaiseRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        AttachmentId = json['AttachmentId'];
        VersionNo = json['VersionNo'];
        PageIndex = json['PageIndex'];
        ShapeId = json['ShapeId'];
        Raise = json['Raise'];
        ProjectID = json['ProjectID'];
        Title = json['Title'];
        Description = json['Description'];
        Area = json['Area'];
        Trade = json['Trade'];
        AssignedSub = json['AssignedSub'];
        Priority = json['Priority'];
        AskedOf = json['AskedOf'];
        Discipline = json['Discipline'];
        DueDate = JsonConverters.fromJson(json['DueDate'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'AttachmentId': AttachmentId,
        'VersionNo': VersionNo,
        'PageIndex': PageIndex,
        'ShapeId': ShapeId,
        'Raise': Raise,
        'ProjectID': ProjectID,
        'Title': Title,
        'Description': Description,
        'Area': Area,
        'Trade': Trade,
        'AssignedSub': AssignedSub,
        'Priority': Priority,
        'AskedOf': AskedOf,
        'Discipline': Discipline,
        'DueDate': JsonConverters.toJson(DueDate,'DateTime',context!)
    };

    getTypeName() => "MarkupRaiseRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'DocumentMarkupLink': TypeInfo(TypeOf.Class, create:() => DocumentMarkupLink()),
    'MarkupRaiseResponse': TypeInfo(TypeOf.Class, create:() => MarkupRaiseResponse()),
    'List<DocumentMarkupLink>': TypeInfo(TypeOf.Class, create:() => <DocumentMarkupLink>[]),
    'MarkupRaiseRequest': TypeInfo(TypeOf.Class, create:() => MarkupRaiseRequest()),
});

Dart MarkupRaiseRequest DTOs

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

HTTP + XML

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

POST /v1/markup/{AttachmentId}/{VersionNo}/{PageIndex}/shapes/{ShapeId}/{Raise} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<MarkupRaiseRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Area>String</Area>
  <AskedOf>String</AskedOf>
  <AssignedSub>String</AssignedSub>
  <AttachmentId>00000000-0000-0000-0000-000000000000</AttachmentId>
  <Description>String</Description>
  <Discipline>String</Discipline>
  <DueDate>0001-01-01T00:00:00</DueDate>
  <PageIndex>0</PageIndex>
  <Priority>String</Priority>
  <ProjectID>0</ProjectID>
  <Raise>String</Raise>
  <ShapeId>String</ShapeId>
  <Title>String</Title>
  <Trade>String</Trade>
  <VersionNo>0</VersionNo>
</MarkupRaiseRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<MarkupRaiseResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Link>
    <AttachmentId>00000000-0000-0000-0000-000000000000</AttachmentId>
    <CreatedAt>0001-01-01T00:00:00</CreatedAt>
    <CreatedBy>String</CreatedBy>
    <DocumentMarkupLinkID>0</DocumentMarkupLinkID>
    <EntityID>0</EntityID>
    <EntityNo>String</EntityNo>
    <EntityType>String</EntityType>
    <PageIndex>0</PageIndex>
    <ShapeId>String</ShapeId>
    <VersionNo>0</VersionNo>
  </Link>
  <Links>
    <DocumentMarkupLink>
      <AttachmentId>00000000-0000-0000-0000-000000000000</AttachmentId>
      <CreatedAt>0001-01-01T00:00:00</CreatedAt>
      <CreatedBy>String</CreatedBy>
      <DocumentMarkupLinkID>0</DocumentMarkupLinkID>
      <EntityID>0</EntityID>
      <EntityNo>String</EntityNo>
      <EntityType>String</EntityType>
      <PageIndex>0</PageIndex>
      <ShapeId>String</ShapeId>
      <VersionNo>0</VersionNo>
    </DocumentMarkupLink>
  </Links>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</MarkupRaiseResponse>