Reference for https://api.circuitree.com/Attachments/SaveAttachment.json
Url: https://api.circuitree.com/Attachments/SaveAttachment.json
HTTP Method: POST
Message direction | Format | Body |
---|---|---|
Request | Xml | Example,Schema |
Request | Json | Example |
Response | N/A | The Response body is empty. |
The following is an example request Xml body:
<CopyAttachmentRequest xmlns="http://schemas.datacontract.org/2004/07/CircuiTree.Business.Components.AttachmentComponent.Models"> <ApiToken>String content</ApiToken> <AttachmentCategoryID>2147483647</AttachmentCategoryID> <AttachmentFormID>2147483647</AttachmentFormID> <AttachmentTypeID>2147483647</AttachmentTypeID> <EntryDate>1999-05-31T11:20:00</EntryDate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FilePathServer>String content</FilePathServer> <IsAttachmentDeleted>true</IsAttachmentDeleted> <IsProtected>true</IsProtected> <Name>String content</Name> <Notes>String content</Notes> <ObjectID>9223372036854775807</ObjectID> <ObjectTypeID>2147483647</ObjectTypeID> <TempFile>QmFzZSA2NCBTdHJlYW0=</TempFile> <TempFilePath>String content</TempFilePath> </CopyAttachmentRequest>
The following is an example request Json body:
{ "ApiToken":"String content", "AttachmentCategoryID":2147483647, "AttachmentFormID":2147483647, "AttachmentTypeID":2147483647, "EntryDate":"\/Date(928167600000-0500)\/", "ExpirationDate":"\/Date(928167600000-0500)\/", "FilePathServer":"String content", "IsAttachmentDeleted":true, "IsProtected":true, "Name":"String content", "Notes":"String content", "ObjectID":9223372036854775807, "ObjectTypeID":2147483647, "TempFile":[81, 109, 70, 122, 90, 83, 65, 50, 78, 67, 66, 84, 100, 72, 74, 108, 89, 87, 48, 61], "TempFilePath":"String content" }
The following is the request Xml Schema:
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/CircuiTree.Business.Components.AttachmentComponent.Models" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/CircuiTree.Business.Components.AttachmentComponent.Models" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:complexType name="CopyAttachmentRequest"> <xs:sequence> <xs:element name="ApiToken" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="AttachmentCategoryID" type="xs:int" /> <xs:element minOccurs="0" name="AttachmentFormID" type="xs:int" /> <xs:element minOccurs="0" name="AttachmentTypeID" type="xs:int" /> <xs:element minOccurs="0" name="EntryDate" type="xs:dateTime" /> <xs:element minOccurs="0" name="ExpirationDate" nillable="true" type="xs:dateTime" /> <xs:element minOccurs="0" name="FilePathServer" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="IsAttachmentDeleted" type="xs:boolean" /> <xs:element minOccurs="0" name="IsProtected" type="xs:boolean" /> <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="Notes" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="ObjectID" type="xs:long" /> <xs:element minOccurs="0" name="ObjectTypeID" type="xs:int" /> <xs:element minOccurs="0" name="TempFile" nillable="true" type="xs:base64Binary" /> <xs:element minOccurs="0" name="TempFilePath" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> <xs:element name="CopyAttachmentRequest" nillable="true" type="tns:CopyAttachmentRequest" /> </xs:schema>
Additional request Xml Schemas:
<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="anyType" nillable="true" type="xs:anyType" /> <xs:element name="anyURI" nillable="true" type="xs:anyURI" /> <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" /> <xs:element name="boolean" nillable="true" type="xs:boolean" /> <xs:element name="byte" nillable="true" type="xs:byte" /> <xs:element name="dateTime" nillable="true" type="xs:dateTime" /> <xs:element name="decimal" nillable="true" type="xs:decimal" /> <xs:element name="double" nillable="true" type="xs:double" /> <xs:element name="float" nillable="true" type="xs:float" /> <xs:element name="int" nillable="true" type="xs:int" /> <xs:element name="long" nillable="true" type="xs:long" /> <xs:element name="QName" nillable="true" type="xs:QName" /> <xs:element name="short" nillable="true" type="xs:short" /> <xs:element name="string" nillable="true" type="xs:string" /> <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" /> <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" /> <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" /> <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" /> <xs:element name="char" nillable="true" type="tns:char" /> <xs:simpleType name="char"> <xs:restriction base="xs:int" /> </xs:simpleType> <xs:element name="duration" nillable="true" type="tns:duration" /> <xs:simpleType name="duration"> <xs:restriction base="xs:duration"> <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" /> <xs:minInclusive value="-P10675199DT2H48M5.4775808S" /> <xs:maxInclusive value="P10675199DT2H48M5.4775807S" /> </xs:restriction> </xs:simpleType> <xs:element name="guid" nillable="true" type="tns:guid" /> <xs:simpleType name="guid"> <xs:restriction base="xs:string"> <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" /> </xs:restriction> </xs:simpleType> <xs:attribute name="FactoryType" type="xs:QName" /> <xs:attribute name="Id" type="xs:ID" /> <xs:attribute name="Ref" type="xs:IDREF" /> </xs:schema>
<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="schema"> <xs:complexType /> </xs:element> </xs:schema>