Update a File

put

/api/restapi/document/file

Send a request to this endpoint to update a file.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : ApiEntityDocumentInput
Type: object
Title: ApiEntityDocumentInput
This entity represents a Document object, a unique Document object can be identified by the following combinations of the fields.
  • id
  • parentId, name
  • parentFolderPath, name, scope, workspaceId
  • parentFolderPath, name, scope, workspaceCode
Show Source
  • Maximum Length: 200
    The first line of the address of a location.
    This might be the building number and street address.
  • Maximum Length: 200
    The second line of the address associated with a file.
  • annotationCount
    Read Only: true
    Deprecated. As of 23.11.
    The total number of annotations created for the file.
  • Maximum Length: 200
    Deprecated. As of 23.11.
    The system-generated identifier of a user assigned as an owner of this object.
  • Read Only: true
    Deprecated. As of 23.11.
    Indicates whether or not the file is checked-out.
  • Read Only: true
    Maximum Length: 255
    Deprecated. As of 23.11.
    The user that checked out a file.
  • Read Only: true
    Deprecated. As of 23.11.
    The date the user checked out the file.
  • Read Only: true
    Deprecated. As of 23.11.
    The system-generated identifier of a user.
  • Maximum Length: 200
    The name of the city associated with a file.
  • codeValuesDocument
    The list of code values for a file. This entity can only be used to assign codeValues or create codeValues on the fly.
  • Maximum Length: 4000
    Additional notes about the file.
  • Maximum Length: 3
    The code of the country associated with a file.
  • Read Only: true
    Deprecated. As of 23.11.
    This field represent the date the record is created.
  • Read Only: true
    Maximum Length: 255
    Deprecated. As of 23.11.
    This field represent the user name of the user who created the record.
  • Maximum Length: 4000
    Additional information about the file.
  • documentConfiguredFields
    Unique Items Required: true
    The list of configured fields for a file.
  • Read Only: true
    Deprecated. As of 23.11.
    Indicates whether or not the folder has children.
  • Maximum Length: 18
    The system-generated identifier of the file, folder, or template.
  • Read Only: true
    Deprecated. As of 23.11.
    Indicates whether or not this folder is the root node in a folder structure.
  • The latitude of the location associated with the file.
  • Maximum Length: 255
    The name of the location associated with the file.
  • The longitude of the location associated with the file.
  • Read Only: true
    Maximum Length: 80
    Deprecated. As of 23.11.
    The type of a file.
  • Maximum Length: 255
    The name of the file, folder, or template.
  • The path of the parent folder from it's root folder.
    The field is non-persistable and thus maximum length is not applicable.
  • Maximum Length: 18
    The system-generated identifier of the parent object of the file or folder.
  • Read Only: true
    Maximum Length: 60
    Deprecated. As of 23.11.
    The context in which the file is added.
  • Maximum Length: 20
    The postal code of the location associated with the file.
  • Read Only: true
    Allowed Values: [ "SCAN_PENDING", "SCAN_CLEARED", "SCAN_FAILED", "SCAN_INCONCLUSIVE", "SCAN_ERROR", "SCAN_DISABLED" ]
    Deprecated. As of 23.11.
    Virus scan status of the current version of a file. A virus scan could return one of the following virus statuses:
    • SCAN_FAILED : A virus was found for this file.
    • SCAN_CLEARED : Virus scan was run and found the file to not contain viruses.
    • SCAN_DISABLED : File has not been scanned for viruses because scanning at has been disabled for the data center.
    • SCAN_INCONCLUSIVE :Virus scan was run but was not able to provide a cleared status. Try to scan the file again, or contact Oracle support.
    • SCAN_PENDING : Virus scan is in progress for this file.
    • SCAN_ERROR : There was an error while scanning the file for viruses. Try to scan the file again.
  • Allowed Values: [ "genericPortfolio", "project", "template", "idea", "program", "strategy" ]
    The object name of the context the file or folder is created in.
  • The system-generated identifier of the object of the context the file or folder is created in.
  • Read Only: true
    Deprecated. As of 23.11.
    The current size of the file in bytes.
  • Maximum Length: 20
    The code of the state of the location associated with the file.
  • Maximum Length: 200
    The name of the state of the location associated with the file.
  • Read Only: true
    Allowed Values: [ "FOLDER", "DOCUMENT", "XLSX", "DOCX", "DOC", "XLS" ]
    Deprecated. As of 23.11.
    Indicates whether this is a file or a folder.
  • Read Only: true
    Deprecated. As of 23.10.
    Date when the record was last updated.
  • Read Only: true
    Maximum Length: 255
    Deprecated. As of 23.11.
    This field represent the user name of the user who last modified the record.
  • Read Only: true
    Deprecated. As of 23.11.
    The WebDAV URL for the file or folder.
    It allows you to configure file management extensions to map an object to your machine.
    Maximum Length: 2,147,483,647
  • Read Only: true
    Maximum Length: 255
    Deprecated. As of 23.11.
    The current version of the file.
  • Maximum Length: 60
    The user-specified identifier of a workspace.
  • The system-specified identifier of a workspace.
Nested Schema : annotationCount
Type: object
Read Only: true
Deprecated. As of 23.11.
The total number of annotations created for the file.
Nested Schema : codeValuesDocument
Type: array
The list of code values for a file. This entity can only be used to assign codeValues or create codeValues on the fly.
Show Source
  • ApiEntityCodeValueDocumentInput
    Title: ApiEntityCodeValueDocumentInput
    This entity represents a CodeValueDocument object, a unique CodeValueDocument object can be identified by the following combinations of the fields.
    • codeValueDocumentId
    • codeValueId
    • codeValueCode,codeTypeId
    • codeValueCode,codeTypeCode
    • codeTypeCode,codeValueCode,parentId
    • codeValueCode,codeTypeId,parentId
Nested Schema : documentConfiguredFields
Type: array
Unique Items Required: true
The list of configured fields for a file.
Show Source
  • ApiEntityDocumentConfiguredFieldValueInput
    Title: ApiEntityDocumentConfiguredFieldValueInput
    This entity represents a DocumentConfiguredFieldValue object, a unique DocumentConfiguredFieldValue object can be identified by the following combinations of the fields.
    • documentConfiguredFieldValueId
    • columnDefinitionId
    • columnName
    • columnLabel
Nested Schema : ApiEntityCodeValueDocumentInput
Type: object
Title: ApiEntityCodeValueDocumentInput
This entity represents a CodeValueDocument object, a unique CodeValueDocument object can be identified by the following combinations of the fields.
  • codeValueDocumentId
  • codeValueId
  • codeValueCode,codeTypeId
  • codeValueCode,codeTypeCode
  • codeTypeCode,codeValueCode,parentId
  • codeValueCode,codeTypeId,parentId
Show Source
Nested Schema : ApiEntityDocumentConfiguredFieldValueInput
Type: object
Title: ApiEntityDocumentConfiguredFieldValueInput
This entity represents a DocumentConfiguredFieldValue object, a unique DocumentConfiguredFieldValue object can be identified by the following combinations of the fields.
  • documentConfiguredFieldValueId
  • columnDefinitionId
  • columnName
  • columnLabel
Show Source
  • Allowed Values: [ "DELETE" ]
    Provide value for this field during object update to delete the assigned configured field value.
  • Unique identifier of the column. This value should not be provided in create operation request data, however, it is required for update requests.
  • Minimum Length: 1
    Maximum Length: 100
    The user-specified UDF column label.
  • Minimum Length: 1
    Maximum Length: 100
    The user-specified UDF column name.
  • Read Only: true
    Deprecated. As of 23.10.
    This holds values for Cost type configured fields in the base currency conversion. Input should be provided in numberValue field, in currency of record.
  • Read Only: true
    Deprecated. As of 23.10.
    This holds values for Cost type configured fields in the workspace1 currency conversion.
  • Read Only: true
    Deprecated. As of 23.10.
    This holds values for Cost type configured fields in the workspace2 currency conversion.
  • Read Only: true
    Deprecated. As of 23.10.
    This holds values for Cost type configured fields in the workspace3 currency conversion.
  • Read Only: true
    Deprecated. As of 23.11.
    This field represent the date the record is created.
  • Read Only: true
    Maximum Length: 255
    Deprecated. As of 23.11.
    This field represent the user name of the user who created the record.
  • This holds values for Date type configured fields.
  • The unique identifier for the File Configured Field.
  • The system-generated identifier of the file, folder, or template.
  • This holds values for Number, Integer and Cost type configured fields. Input for the cost configured field should be provided in the currency of record. For example project level currency in case of Activity, base currency for Company, workspace currency for Funds and record level currency for Project Actuals etc. configured fields.
  • Maximum Length: 255
    This holds values for Boolean, List and Text type configured fields.
  • Read Only: true
    Deprecated. As of 23.10.
    Date when the record was last updated.
  • Read Only: true
    Maximum Length: 255
    Deprecated. As of 23.11.
    This field represent the user name of the user who last modified the record.
Examples

Back to Top

Response

204 Response

Successful operation with no content.

400 Response

Invalid input for the Document service. Verify the request contains valid data, then resubmit the request.
Back to Top