ClickHelp User Manual

[API] Update File

Updates existing file content.

PATCH storage/{file-path}

Authentication

This request requires basic authentication.

Request Parameters

Path params
file-path string
File path relative to the root, i.e., everything after ...resources/Storage/.
Body params
content string
Base64-encoded file content.
updatedFields string
A comma-separated list of field names that will be updated. If a field name is not in the list, it will not be updated even if the field value is specified in other request parameters.

Samples

Request sample
Bash (Unix Shell)
curl --location -g --request PATCH 'https://{portal-url}/api/v1/storage/project-deep-space-exploration/info.png' ^
--data-raw '{
"content":"iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5gsICiIy3F/ZtwAAC95JREFUeNrtm19QW9edxz/3CgkQIIGE+A82BjuAsWwgCAyecZ3a3pmknmy3k05eNrN1nLQznTYP7VM7s9uHTd8y2c2Dm8ZtdtpJk6k7bt02u6ETtnYTY/7IKIDcAAYRgWywwAgkAfqD7r37ANZyA8GORKymzm9GL+eec+7v9z2/c37f3+9cCYqiAOQAZ4DngL1AGn+fsgq4gNeBV4GgoChKDvAi8E1Al2oNHyAQrwI/TAO+tf7TplqrByha1hb8I0FRlGGgJtUapUiGBUVRojxcq79RYoKyfgo+rCKmWoFUyxcApFqBVEvKCE84HMbv96PRaMjLy0Oj0Tw8AEiSxG/On6e7uxudTsczzzxDY1PTwwOAoijcvHmT2dlZNBoNC4uLKTEeUngGiKKIIAjx30MFgCiKsMFoMYUAPNAtEAqFuDM3h3d2lgWfL77yozduYDKbsVgsWCwW0tIenFpJM8HFxUVcLhd1dXVkZmZu27ezs5Pzv/41oVCI1VgM1l8tCAKatDSKiop44YUXKC8v33ae6elp5u/cobauLmmwktoCCwsLnHvtNf7j5Zf5zfnzhMPh+LNoNEo0GlX137VrF7Isr7VvwF1RFCLhMGaTCYvFoho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