Update the file with the specified path
Update the file with the specified path.
1{2 "version": 1,3 "workspaceId": "ce211872-f840-4d41-bcb4-4974cb35840e",4 "name": "sleep.sas",5 "path": "/Org/project/programs/sleep.sas",6 "type": "FILE",7 "modifiedTimeStamp": "2023-12-13T15:39:09.907000Z",8 "contentType": "application/x-sas",9 "size": 2210}| Name | Type | Required | Description |
|---|---|---|---|
comment | string | false | The optional file version comment for the file. This is applicable only when the action is CHECK_IN. |
fileVersion | string | false | The optional version specification for checking in a version of the file or copying a version of the file to the workspace. This parameter is not required, so for check in, unless a version parameter value is provided, new files are created un-versioned. For the CHECK_IN action, the valid values for version are MAJOR, MINOR, or a specific version such as 2.3. If the value is MAJOR, new files are created as versioned with initial version 1.0. Similarly, if the value is MINOR, a versioned file is created with version 0.1. If the file exists and is versioned, new versions are MINOR versions by default. To specify a version other than MAJOR or MINOR, you can specify a value between 0.1 and 99999.99999. For COPY_VERSION, the specific file version you want to copy to the workspace can be specified; otherwise, the content of the most recent version is copied. This parameter is applicable only when the action is CHECK_IN and COPY_VERSION. |
action | string | true | The update action to perform on the file. Supported actions:
Allowed values: CHECK_OUTCHECK_OUT_WITHOUT_COPYUNDO_CHECKOUTCHECK_INCOPY_LATEST_VERSION |
path | string | true | The full path of the workspace file. |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 200 | OK | OK - the file was updated successfully. | Schema |