sfgboxapi

<back to all web services

SystemEntitiesAdd

Requires Authentication
The following routes are available for this service:
POST/system_entities
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using sfgboxapi.ServiceModel;

namespace sfgboxapi.ServiceModel
{
    [DataContract]
    public partial class SystemEntitiesAdd
    {
        [DataMember(Order=2)]
        [Validate("NotNull")]
        public virtual string Entity { get; set; }

        [DataMember(Order=3)]
        [Validate("NotNull")]
        public virtual string LongDescription { get; set; }
    }

    public partial class SystemEntitiesAddResponse
    {
        [DataMember(Order=2)]
        public virtual string Entity { get; set; }

        [DataMember(Order=3)]
        public virtual string LongDescription { get; set; }

        [DataMember(Order=5)]
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

}

C# SystemEntitiesAdd 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 /system_entities HTTP/1.1 
Host: sfgboxapi.dev.scadsoftware.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"entity":"String","longDescription":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"entity":"String","longDescription":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}