Files
Rename a file
PATCH
bearer files:writeheader
AuthorizationBearer <token>An API key, an OAuth access token, or a signed-in session token.
Scope: files:write
id*stringLength
1 <= lengthapplication/json- body
name*stringLength
1 <= length <= 255Renamed
application/json- response
id*stringname*stringsizeBytes*integermimeType*stringtype*stringValue in
"video""audio""image""subtitle""other"playable*booleanmediaInfo*|nulloriginal?|nullsubtitleCount*integertransferId*stringfolder?string|nullprogress*|nullexpiresAt*|Format
date-timekept?|Value in
"self""folder"nullclearedAt?|Format
date-timemedia?|nullclutter?booleanthumbnailUrl?string|nullmarkers?|nullcreatedAt*stringFormat
date-timeupdatedAt*stringFormat
date-timecurl -X PATCH 'https://fastwater.app/v1/files/string' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "id": "string", "name": "string", "sizeBytes": 0, "mimeType": "string", "type": "video", "playable": true, "mediaInfo": { "container": "string", "durationSeconds": 0, "bitRate": 0, "video": { "codec": "string", "profile": "string", "width": 0, "height": 0, "pixFmt": "string" }, "audio": [ { "codec": "string", "channels": 0, "language": "string", "title": "string", "default": true } ], "subtitles": [ { "codec": "string", "language": "string", "title": "string", "forced": true, "default": true } ], "playable": true }, "original": { "name": "string", "sizeBytes": 0, "mimeType": "string", "mediaInfo": { "container": "string", "durationSeconds": 0, "bitRate": 0, "video": { "codec": "string", "profile": "string", "width": 0, "height": 0, "pixFmt": "string" }, "audio": [ { "codec": "string", "channels": 0, "language": "string", "title": "string", "default": true } ], "subtitles": [ { "codec": "string", "language": "string", "title": "string", "forced": true, "default": true } ], "playable": true } }, "subtitleCount": 0, "transferId": "string", "folder": "string", "progress": { "fileId": "string", "positionSeconds": 0, "durationSeconds": 0, "completed": true, "clientId": "string", "updatedAt": "2019-08-24T14:15:22Z" }, "expiresAt": "2019-08-24T14:15:22Z", "kept": "self", "clearedAt": "2019-08-24T14:15:22Z", "media": { "titleId": "string", "kind": "movie", "title": "string", "year": 0, "season": 0, "episode": 0, "episodeName": "string", "stillPath": "string", "posterPath": "string", "backdropPath": "string", "logoPath": "string" }, "clutter": true, "thumbnailUrl": "string", "markers": { "intro": { "startSeconds": 0, "endSeconds": 0 }, "credits": { "startSeconds": 0 } }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}