Trendsic Platform Service

<back to all web services

ApprovePlatformRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/platform/requests/{PlatformRequestId}/approve
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class ApprovePlatformRequest
    {
        public Integer PlatformRequestId = null;
        public String Status = null;
        public Date ExpiresAt = null;
        public String Reason = null;
        
        public Integer getPlatformRequestId() { return PlatformRequestId; }
        public ApprovePlatformRequest setPlatformRequestId(Integer value) { this.PlatformRequestId = value; return this; }
        public String getStatus() { return Status; }
        public ApprovePlatformRequest setStatus(String value) { this.Status = value; return this; }
        public Date getExpiresAt() { return ExpiresAt; }
        public ApprovePlatformRequest setExpiresAt(Date value) { this.ExpiresAt = value; return this; }
        public String getReason() { return Reason; }
        public ApprovePlatformRequest setReason(String value) { this.Reason = value; return this; }
    }

    public static class PlatformRequestsResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<PlatformRequestRow> Requests = new ArrayList<PlatformRequestRow>();
        public PlatformRequestRow Closed = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public PlatformRequestsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<PlatformRequestRow> getRequests() { return Requests; }
        public PlatformRequestsResponse setRequests(ArrayList<PlatformRequestRow> value) { this.Requests = value; return this; }
        public PlatformRequestRow getClosed() { return Closed; }
        public PlatformRequestsResponse setClosed(PlatformRequestRow value) { this.Closed = value; return this; }
    }

    public static class PlatformRequestRow
    {
        public Integer PlatformRequestId = null;
        public UUID TenantId = null;
        public String TenantName = null;
        public String Slug = null;
        public String Kind = null;
        public String Key = null;
        public String Message = null;
        public String ContactName = null;
        public String ContactEmail = null;
        public String RequestedBy = null;
        public Date RequestedAt = null;
        public String Status = null;
        public String ClosedBy = null;
        public Date ClosedAt = null;
        public String CloseNote = null;
        
        public Integer getPlatformRequestId() { return PlatformRequestId; }
        public PlatformRequestRow setPlatformRequestId(Integer value) { this.PlatformRequestId = value; return this; }
        public UUID getTenantId() { return TenantId; }
        public PlatformRequestRow setTenantId(UUID value) { this.TenantId = value; return this; }
        public String getTenantName() { return TenantName; }
        public PlatformRequestRow setTenantName(String value) { this.TenantName = value; return this; }
        public String getSlug() { return Slug; }
        public PlatformRequestRow setSlug(String value) { this.Slug = value; return this; }
        public String getKind() { return Kind; }
        public PlatformRequestRow setKind(String value) { this.Kind = value; return this; }
        public String getKey() { return Key; }
        public PlatformRequestRow setKey(String value) { this.Key = value; return this; }
        public String getMessage() { return Message; }
        public PlatformRequestRow setMessage(String value) { this.Message = value; return this; }
        public String getContactName() { return ContactName; }
        public PlatformRequestRow setContactName(String value) { this.ContactName = value; return this; }
        public String getContactEmail() { return ContactEmail; }
        public PlatformRequestRow setContactEmail(String value) { this.ContactEmail = value; return this; }
        public String getRequestedBy() { return RequestedBy; }
        public PlatformRequestRow setRequestedBy(String value) { this.RequestedBy = value; return this; }
        public Date getRequestedAt() { return RequestedAt; }
        public PlatformRequestRow setRequestedAt(Date value) { this.RequestedAt = value; return this; }
        public String getStatus() { return Status; }
        public PlatformRequestRow setStatus(String value) { this.Status = value; return this; }
        public String getClosedBy() { return ClosedBy; }
        public PlatformRequestRow setClosedBy(String value) { this.ClosedBy = value; return this; }
        public Date getClosedAt() { return ClosedAt; }
        public PlatformRequestRow setClosedAt(Date value) { this.ClosedAt = value; return this; }
        public String getCloseNote() { return CloseNote; }
        public PlatformRequestRow setCloseNote(String value) { this.CloseNote = value; return this; }
    }

}

Java ApprovePlatformRequest DTOs

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

HTTP + XML

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

POST /v1/platform/requests/{PlatformRequestId}/approve HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ApprovePlatformRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <ExpiresAt>0001-01-01T00:00:00</ExpiresAt>
  <PlatformRequestId>0</PlatformRequestId>
  <Reason>String</Reason>
  <Status>String</Status>
</ApprovePlatformRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PlatformRequestsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Closed>
    <CloseNote>String</CloseNote>
    <ClosedAt>0001-01-01T00:00:00</ClosedAt>
    <ClosedBy>String</ClosedBy>
    <ContactEmail>String</ContactEmail>
    <ContactName>String</ContactName>
    <Key>String</Key>
    <Kind>String</Kind>
    <Message>String</Message>
    <PlatformRequestId>0</PlatformRequestId>
    <RequestedAt>0001-01-01T00:00:00</RequestedAt>
    <RequestedBy>String</RequestedBy>
    <Slug>String</Slug>
    <Status>String</Status>
    <TenantId>00000000-0000-0000-0000-000000000000</TenantId>
    <TenantName>String</TenantName>
  </Closed>
  <Requests>
    <PlatformRequestRow>
      <CloseNote>String</CloseNote>
      <ClosedAt>0001-01-01T00:00:00</ClosedAt>
      <ClosedBy>String</ClosedBy>
      <ContactEmail>String</ContactEmail>
      <ContactName>String</ContactName>
      <Key>String</Key>
      <Kind>String</Kind>
      <Message>String</Message>
      <PlatformRequestId>0</PlatformRequestId>
      <RequestedAt>0001-01-01T00:00:00</RequestedAt>
      <RequestedBy>String</RequestedBy>
      <Slug>String</Slug>
      <Status>String</Status>
      <TenantId>00000000-0000-0000-0000-000000000000</TenantId>
      <TenantName>String</TenantName>
    </PlatformRequestRow>
  </Requests>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</PlatformRequestsResponse>