Trendsic Platform Service

<back to all web services

DeclinePlatformRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/platform/requests/{PlatformRequestId}/decline
import Foundation
import ServiceStack

public class DeclinePlatformRequest : Codable
{
    public var platformRequestId:Int
    public var reason:String

    required public init(){}
}

public class PlatformRequestsResponse : Codable
{
    public var responseStatus:ResponseStatus
    public var requests:[PlatformRequestRow] = []
    public var closed:PlatformRequestRow

    required public init(){}
}

public class PlatformRequestRow : Codable
{
    public var platformRequestId:Int
    public var tenantId:String
    public var tenantName:String
    public var slug:String
    public var kind:String
    public var key:String
    public var message:String
    public var contactName:String
    public var contactEmail:String
    public var requestedBy:String
    public var requestedAt:Date
    public var status:String
    public var closedBy:String
    public var closedAt:Date?
    public var closeNote:String

    required public init(){}
}


Swift DeclinePlatformRequest 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/platform/requests/{PlatformRequestId}/decline HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	PlatformRequestId: 0,
	Reason: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Requests: 
	[
		{
			PlatformRequestId: 0,
			TenantId: 00000000000000000000000000000000,
			TenantName: String,
			Slug: String,
			Kind: String,
			Key: String,
			Message: String,
			ContactName: String,
			ContactEmail: String,
			RequestedBy: String,
			RequestedAt: 0001-01-01,
			Status: String,
			ClosedBy: String,
			ClosedAt: 0001-01-01,
			CloseNote: String
		}
	],
	Closed: 
	{
		PlatformRequestId: 0,
		TenantId: 00000000000000000000000000000000,
		TenantName: String,
		Slug: String,
		Kind: String,
		Key: String,
		Message: String,
		ContactName: String,
		ContactEmail: String,
		RequestedBy: String,
		RequestedAt: 0001-01-01,
		Status: String,
		ClosedBy: String,
		ClosedAt: 0001-01-01,
		CloseNote: String
	}
}