PUT api/v1/Attachments

Request Information

URI Parameters

None.

Body Parameters

UpdateAttachmentRequestModel
NameDescriptionTypeAdditional information
AttachmentID

integer

None.

ShortDescription

string

None.

CustomFields

Collection of CustomField

None.

Request Formats

application/json, text/json

Sample:
{
  "AttachmentID": 1,
  "ShortDescription": "sample string 2",
  "CustomFields": [
    {
      "FieldLabel": "sample string 1",
      "FieldValue": "sample string 2"
    },
    {
      "FieldLabel": "sample string 1",
      "FieldValue": "sample string 2"
    }
  ]
}

text/xml

Sample:
<UpdateAttachmentRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DPApiModels">
  <AttachmentID>1</AttachmentID>
  <CustomFields>
    <CustomField>
      <FieldLabel>sample string 1</FieldLabel>
      <FieldValue>sample string 2</FieldValue>
    </CustomField>
    <CustomField>
      <FieldLabel>sample string 1</FieldLabel>
      <FieldValue>sample string 2</FieldValue>
    </CustomField>
  </CustomFields>
  <ShortDescription>sample string 2</ShortDescription>
</UpdateAttachmentRequestModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UpdateAttachmentRequestModel'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.