Rename a file.
Changed onThis endpoint updates the name of an existing File, identified by its assetId. This operation is only permitted if the requester has appropriate write-level permissions on the file.
NOTE:
- Only the name of the file can be modified using this endpoint.
- All other file metadata remains unchanged.
- If the requester lacks the required permissions or the file does not exist, an appropriate error response will be returned.
Request
- Base URL: https://cloudstorage.adobe.io/v1
- URL: https://cloudstorage.adobe.io/v1/files/{assetId}/rename
- Auth: HTTP bearer
Path parameters
A globally unique identifier for the asset
The ID of the asset to get.
Headers
The X-Request-Id header is used to identify a request.
It can be used to correlate logs and other resources and is intended to be a non-persistent identifier.
Request body
Example request
{
"options": {
"autorename": true
}
}Response
Updated - The file was renamed successfully.
Example response
{
"assetId": "urn:aaid:sc:US:4f2fc15c-c062-4951-b37b-1f65ed62a174",
"name": "My Asset",
"createdDate": "2021-01-01T00:00:00Z",
"modifiedDate": "2021-01-01T00:00:00Z",
"createdBy": "08D81E3B665BE5640A495C2C@AdobeOrg",
"modifiedBy": "08D81E3B665BE5640A495C2C@AdobeOrg",
"path": "/My Project/My Folder/My Asset",
"ancestors": [
"urn:aaid:sc:US:4f2fc15c-c062-4951-b37b-1f65ed62a174",
"urn:aaid:sc:US:4f2fc15c-c062-4951-b37b-1f65ed62a175",
"urn:aaid:sc:US:4f2fc15c-c062-4951-b37b-1f65ed62a176"
],
"mediaType": "image/jpeg",
"size": 1048576
}Changes
- breaking
added the pattern
^(?!^([Cc][Oo][Nn]|[Pp][Rr][Nn]|[Aa][Uu][Xx]|[Nn][Uu][Ll]|[Cc][Oo][Mm][1-9]|[Ll][Pp][Tt][1-9])$)[^\\\/:*?"|><]+$to the request property - warning
added the new
conflictenum value to theresponse property for the response status - warning
added the new
conflictenum value to theresponse property for the response status - warning
added the new
conflictenum value to theresponse property for the response status - warning
added the new
conflictenum value to theresponse property for the response status - warning
added the new
conflictenum value to theresponse property for the response status - warning
added the new
conflictenum value to theresponse property for the response status - warning
added the new
conflictenum value to theresponse property for the response status - warning
added the new
conflictenum value to theresponse property for the response status - warning
added the new
conflictenum value to theresponse property for the response status - warning
added the new
conflictenum value to theresponse property for the response status - warning
added the new
conflictenum value to theresponse property for the response status - info
the
request property's minLength was decreased from1to0
- breaking
- info
endpoint added
- info