Media
Rename or move a file, set its alt text, title or tags, or restore it
name and folder change the path in the library (the extension stays); the 640 version moves with it. A site keeps the file under the path it has until you deploy again. alt sets the alt text; null removes it. title, description and tags (replacing the old ones) are yours to fill. restore: true puts a file from the trash back on its old path (or next to it when that is taken now); a file in the trash cannot change otherwise (409). 409 conflict when another file already has the new path.
patch/media/{id}
Request
- Base URL: https://api.hypamoon.com/api/v1
- URL: https://api.hypamoon.com/api/v1/media/{id}
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://app.hypamoon.com/oauth/authorize, token URL https://api.hypamoon.com/oauth/token, scopes: sites:write)
Path parameters
idstring uuid required
The id of the file.
Request body
Response
The file after the change.
Changes
No recorded changes to this operation across all 1 revision of this API.