PUT {repositoryId}/Data/{id}/Attachment/{attachmentId}/FileName

Updates the file name of the specified attachment.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID of the Data resource.

string

Required

attachmentId

The ID of the Attachment.

string

Required

repositoryId

ID of the resource repository (optional).

string

Default value is

Body Parameters

Parameters:
- "FileName" (new file name)

Dictionary of string [key] and Object [value]

Request Formats

application/json, text/json

Sample:
{
  "Key 1": {},
  "Key 2": {}
}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfstringanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfstringanyType>
    <Key>Key 1</Key>
    <Value />
  </KeyValueOfstringanyType>
  <KeyValueOfstringanyType>
    <Key>Key 2</Key>
    <Value />
  </KeyValueOfstringanyType>
</ArrayOfKeyValueOfstringanyType>

application/x-www-form-urlencoded

Sample:

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.