Trendsic Platform Service

<back to all web services

FormGoSentRemoveRequest

Requires Authentication
The following routes are available for this service:
POST/v1/forms/go-sent/remove
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class FormGoSentRow:
    id: int = 0
    name: Optional[str] = None
    position: Optional[str] = None
    first_sent_at: Optional[str] = None
    first_sent_by: Optional[str] = None
    last_sent_at: Optional[str] = None
    last_sent_by: Optional[str] = None
    times: int = 0
    how: Optional[str] = None
    went: Optional[str] = None
    where: Optional[str] = None
    can_remove: bool = False


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class FormGoSentResponse:
    rows: List[FormGoSentRow] = field(default_factory=list)
    message: Optional[str] = None
    response_status: Optional[ResponseStatus] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class FormGoSentRemoveRequest:
    form_u_i_d: Optional[str] = None
    worker: int = 0

Python FormGoSentRemoveRequest DTOs

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

HTTP + JSV

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

POST /v1/forms/go-sent/remove HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	FormUID: 00000000000000000000000000000000,
	Worker: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Rows: 
	[
		{
			Id: 0,
			Name: String,
			Position: String,
			FirstSentAt: String,
			FirstSentBy: String,
			LastSentAt: String,
			LastSentBy: String,
			Times: 0,
			How: String,
			Went: String,
			Where: String,
			CanRemove: False
		}
	],
	Message: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}