Trendsic Platform Service

<back to all web services

QcTestUpdateRequest

Requires Authentication
The following routes are available for this service:
PUT,OPTIONS/v1/projects/{ProjectID}/qc-tests/{QcTestID}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class QcTestUpdateRequest
    {
        public Integer ProjectID = null;
        public Integer QcTestID = null;
        public String TestType = null;
        public String Location = null;
        public String CostCode = null;
        public String Spec = null;
        public String TargetValue = null;
        public String ResultValue = null;
        public String Lab = null;
        public String Notes = null;
        public Date TestedAt = null;
        
        public Integer getProjectID() { return ProjectID; }
        public QcTestUpdateRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
        public Integer getQcTestID() { return QcTestID; }
        public QcTestUpdateRequest setQcTestID(Integer value) { this.QcTestID = value; return this; }
        public String getTestType() { return TestType; }
        public QcTestUpdateRequest setTestType(String value) { this.TestType = value; return this; }
        public String getLocation() { return Location; }
        public QcTestUpdateRequest setLocation(String value) { this.Location = value; return this; }
        public String getCostCode() { return CostCode; }
        public QcTestUpdateRequest setCostCode(String value) { this.CostCode = value; return this; }
        public String getSpec() { return Spec; }
        public QcTestUpdateRequest setSpec(String value) { this.Spec = value; return this; }
        public String getTargetValue() { return TargetValue; }
        public QcTestUpdateRequest setTargetValue(String value) { this.TargetValue = value; return this; }
        public String getResultValue() { return ResultValue; }
        public QcTestUpdateRequest setResultValue(String value) { this.ResultValue = value; return this; }
        public String getLab() { return Lab; }
        public QcTestUpdateRequest setLab(String value) { this.Lab = value; return this; }
        public String getNotes() { return Notes; }
        public QcTestUpdateRequest setNotes(String value) { this.Notes = value; return this; }
        public Date getTestedAt() { return TestedAt; }
        public QcTestUpdateRequest setTestedAt(Date value) { this.TestedAt = value; return this; }
    }

    public static class QcTestResponse
    {
        public ResponseStatus ResponseStatus = null;
        public QcTest Test = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public QcTestResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public QcTest getTest() { return Test; }
        public QcTestResponse setTest(QcTest value) { this.Test = value; return this; }
    }

    public static class QcTest
    {
        public Integer QcTestID = null;
        public UUID QcTestUID = null;
        public Integer ProjectID = null;
        public String TestNo = null;
        public String TestType = null;
        public String Location = null;
        public String CostCode = null;
        public String Spec = null;
        public String TargetValue = null;
        public String ResultValue = null;
        public String Result = null;
        public String Lab = null;
        public String ReportName = null;
        public String Notes = null;
        public Date TestedAt = null;
        public String CreatedBy = null;
        public Date CreatedAt = null;
        public Date UpdatedAt = null;
        public Integer NcrCount = null;
        
        public Integer getQcTestID() { return QcTestID; }
        public QcTest setQcTestID(Integer value) { this.QcTestID = value; return this; }
        public UUID getQcTestUID() { return QcTestUID; }
        public QcTest setQcTestUID(UUID value) { this.QcTestUID = value; return this; }
        public Integer getProjectID() { return ProjectID; }
        public QcTest setProjectID(Integer value) { this.ProjectID = value; return this; }
        public String getTestNo() { return TestNo; }
        public QcTest setTestNo(String value) { this.TestNo = value; return this; }
        public String getTestType() { return TestType; }
        public QcTest setTestType(String value) { this.TestType = value; return this; }
        public String getLocation() { return Location; }
        public QcTest setLocation(String value) { this.Location = value; return this; }
        public String getCostCode() { return CostCode; }
        public QcTest setCostCode(String value) { this.CostCode = value; return this; }
        public String getSpec() { return Spec; }
        public QcTest setSpec(String value) { this.Spec = value; return this; }
        public String getTargetValue() { return TargetValue; }
        public QcTest setTargetValue(String value) { this.TargetValue = value; return this; }
        public String getResultValue() { return ResultValue; }
        public QcTest setResultValue(String value) { this.ResultValue = value; return this; }
        public String getResult() { return Result; }
        public QcTest setResult(String value) { this.Result = value; return this; }
        public String getLab() { return Lab; }
        public QcTest setLab(String value) { this.Lab = value; return this; }
        public String getReportName() { return ReportName; }
        public QcTest setReportName(String value) { this.ReportName = value; return this; }
        public String getNotes() { return Notes; }
        public QcTest setNotes(String value) { this.Notes = value; return this; }
        public Date getTestedAt() { return TestedAt; }
        public QcTest setTestedAt(Date value) { this.TestedAt = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public QcTest setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public QcTest setCreatedAt(Date value) { this.CreatedAt = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public QcTest setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
        public Integer getNcrCount() { return NcrCount; }
        public QcTest setNcrCount(Integer value) { this.NcrCount = value; return this; }
    }

}

Java QcTestUpdateRequest 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.

PUT /v1/projects/{ProjectID}/qc-tests/{QcTestID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<QcTestUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <CostCode>String</CostCode>
  <Lab>String</Lab>
  <Location>String</Location>
  <Notes>String</Notes>
  <ProjectID>0</ProjectID>
  <QcTestID>0</QcTestID>
  <ResultValue>String</ResultValue>
  <Spec>String</Spec>
  <TargetValue>String</TargetValue>
  <TestType>String</TestType>
  <TestedAt>0001-01-01T00:00:00</TestedAt>
</QcTestUpdateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<QcTestResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <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>
  <Test>
    <CostCode>String</CostCode>
    <CreatedAt>0001-01-01T00:00:00</CreatedAt>
    <CreatedBy>String</CreatedBy>
    <Lab>String</Lab>
    <Location>String</Location>
    <NcrCount>0</NcrCount>
    <Notes>String</Notes>
    <ProjectID>0</ProjectID>
    <QcTestID>0</QcTestID>
    <QcTestUID>00000000-0000-0000-0000-000000000000</QcTestUID>
    <ReportName>String</ReportName>
    <Result>String</Result>
    <ResultValue>String</ResultValue>
    <Spec>String</Spec>
    <TargetValue>String</TargetValue>
    <TestNo>String</TestNo>
    <TestType>String</TestType>
    <TestedAt>0001-01-01T00:00:00</TestedAt>
    <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
  </Test>
</QcTestResponse>