POST api/Attachment/Post?apiKey={apiKey}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
apiKey | string |
Required |
Body Parameters
AttachmentName | Description | Type | Additional information |
---|---|---|---|
AttachmentID | globally unique identifier |
None. |
|
ImageString | string |
None. |
|
AttachmentDataBase64 | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "AttachmentID": "f4f06d9b-0ea4-48c5-b893-4d3d843bc41e", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }
application/xml, text/xml
Sample:
<Attachment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Entity"> <AttachmentDataBase64>sample string 7</AttachmentDataBase64> <AttachmentID>f4f06d9b-0ea4-48c5-b893-4d3d843bc41e</AttachmentID> <ImageString>sample string 6</ImageString> </Attachment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultName | Description | Type | Additional information |
---|---|---|---|
IsValid | boolean |
None. |
|
Message | string |
None. |
|
Code | string |
None. |
|
ID | globally unique identifier |
None. |
|
Errors | Collection of string |
None. |
|
ErrorCodes | Collection of ErrorCode |
None. |
Response Formats
application/json, text/json
Sample:
{ "IsValid": true, "Message": "sample string 2", "Code": "sample string 3", "ID": "225d2f23-d53d-4f47-8370-32a7fd2f6298", "Errors": [ "sample string 1", "sample string 2" ], "ErrorCodes": [ 1, 1 ] }
application/xml, text/xml
Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Entity"> <Code>sample string 3</Code> <ErrorCodes> <ErrorCode>Success</ErrorCode> <ErrorCode>Success</ErrorCode> </ErrorCodes> <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Errors> <ID>225d2f23-d53d-4f47-8370-32a7fd2f6298</ID> <IsValid>true</IsValid> <Message>sample string 2</Message> </Result>