Platform API

<back to all web services

InsertObjectSubscription

Inseets a new object subscription record

Requires Authentication
The following routes are available for this service:
All Verbs/api/insertobjectsubscription
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Eros.Subtle.Canvara.WebAPIModel.ServiceModel
Imports Eros.Causal.Common.Entity

Namespace Global

    Namespace Eros.Causal.Common.Entity

        Public Partial Class ObjectSubscription
            Public Overridable Property ObjectSubscriptionId As Guid?
            Public Overridable Property ObjectId As Guid
            Public Overridable Property SuiteDataSourceInstanceId As Guid
            Public Overridable Property RmsTableContextId As Guid
            Public Overridable Property AlternateKey As String
            Public Overridable Property SuiteDataSourceName As String
            Public Overridable Property CreatedAt As Date
            Public Overridable Property LastModified As Date?
            Public Overridable Property RecordStatus As String
            Public Overridable Property SuiteInstanceId As Guid
            Public Overridable Property SuiteInstanceName As String
            Public Overridable Property ContactIdLicensee As Guid
            Public Overridable Property SubscriptionUpdateResultId As Guid?
            Public Overridable Property SubscriptionUpdateResult As String
            Public Overridable Property IsExport As Boolean?
            Public Overridable Property ProcessedAt As Date?
            Public Overridable Property AcknowledgedAt As Date?
            Public Overridable Property Failures As Integer
            Public Overridable Property Result As String
            Public Overridable Property ObjectHash As String
        End Class
    End Namespace

    Namespace Eros.Subtle.Canvara.WebAPIModel.ServiceModel

        '''<Summary>
        '''Inseets a new object subscription record
        '''</Summary>
        <Api(Description:="Inseets a new object subscription record")>
        Public Partial Class InsertObjectSubscription
            Public Overridable Property ObjectSubscription As ObjectSubscription
        End Class

        Public Partial Class ObjectSubscriptionResponse
            Public Overridable Property Success As Boolean
            Public Overridable Property Message As String
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET InsertObjectSubscription DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /api/insertobjectsubscription HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ObjectSubscription":{"ObjectSubscriptionId":"00000000000000000000000000000000","ObjectId":"00000000-0000-0000-0000-000000000000","SuiteDataSourceInstanceId":"00000000-0000-0000-0000-000000000000","RmsTableContextId":"00000000-0000-0000-0000-000000000000","AlternateKey":"String","SuiteDataSourceName":"String","CreatedAt":"0001-01-01T00:00:00.0000000","LastModified":"0001-01-01T00:00:00.0000000","RecordStatus":"String","SuiteInstanceId":"00000000-0000-0000-0000-000000000000","SuiteInstanceName":"String","ContactIdLicensee":"00000000-0000-0000-0000-000000000000","SubscriptionUpdateResultId":"00000000000000000000000000000000","SubscriptionUpdateResult":"String","IsExport":false,"ProcessedAt":"0001-01-01T00:00:00.0000000","AcknowledgedAt":"0001-01-01T00:00:00.0000000","Failures":0,"Result":"String","ObjectHash":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Success":false,"Message":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}