Field Squared API Services

<back to all web services

Undelete

Handles undelete of data.

The following routes are available for this service:
GET,POST/{Workspace}/Undelete
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Field2Office.API.Model.Undelete

Namespace Global

    Namespace Field2Office.API.Model.Undelete

        Public Partial Class DeletedItem
            Public Overridable Property ObjectId As String
            Public Overridable Property [Class] As String
            Public Overridable Property Name As String
            Public Overridable Property Type As String
            Public Overridable Property DeletedBy As String
            Public Overridable Property DeletedDate As String
            Public Overridable Property Created As String
            Public Overridable Property LastUpdated As String
        End Class

        '''<Summary>
        '''Handles undelete of data.
        '''</Summary>
        Public Partial Class Undelete
            Public Sub New()
                DeletedItems = New List(Of DeletedItem)
                DeletedItemsToRestore = New List(Of DeletedItem)
            End Sub

            Public Overridable Property Workspace As String
            Public Overridable Property DeletedItems As List(Of DeletedItem)
            Public Overridable Property DeletedItemsToRestore As List(Of DeletedItem)
        End Class
    End Namespace
End Namespace

VB.NET Undelete 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 /{Workspace}/Undelete HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Workspace":"String","DeletedItems":[{"ObjectId":"String","Class":"String","Name":"String","Type":"String","DeletedBy":"String","DeletedDate":"String","Created":"String","LastUpdated":"String"}],"DeletedItemsToRestore":[{"ObjectId":"String","Class":"String","Name":"String","Type":"String","DeletedBy":"String","DeletedDate":"String","Created":"String","LastUpdated":"String"}]}