--- title: Set the current version of the file description: POST /nd/api/file/version: Set the current version of the file. Interface description, including path, method, parameters and return information. slug: api-post-nd-api-file-version lang: en category: File API category_order: 8 order: 118 api_method: POST api_path: /nd/api/file/version api_label: Set the current version of the file keywords: - API - Set the current version of the file - /nd/api/file/version --- # Set the current version of the file | Properties | Values | | --- | --- | | HTTP method | `POST` | | Interface path | `/nd/api/file/version` | | Category | File API | ## Interface description Interface path: `/nd/api/file/version` HTTP method: `POST` **HTTP method:** `POST` #### POST request body parameters Parameter name Comment (description) file_id target file id (required) string version version number (required) number #### The return information is as follows {"code":0,"success":true} ## Call instructions - Before calling, you need to complete [Get token](api-post-api-token-do.md) or the corresponding login-free authentication, and carry `Authorization: Bearer ` in the request header. - If there are differences in parameters and return fields due to deployment versions, the actual private cloud API documents and joint debugging results should prevail. - Category: File API.