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
- 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.
Show Source
- id
- parentId, name
- parentFolderPath, name, scope, workspaceId
- parentFolderPath, name, scope, workspaceCode
-
addressLine1: string
Maximum Length:
200
The first line of the address of a location.
This might be the building number and street address. -
addressLine2: string
Maximum Length:
200
The second line of the address associated with a file. -
cityName: string
Maximum Length:
200
The name of the city associated with a file. -
codeValuesDocument: array
codeValuesDocument
The list of code values for a file. This entity can only be used to assign codeValues or create codeValues on the fly.
-
comment: string
Maximum Length:
4000
Additional notes about the file. -
countryCode: string
Maximum Length:
3
The code of the country associated with a file. -
description: string
Maximum Length:
4000
Additional information about the file. -
documentConfiguredFields: array
documentConfiguredFields
Unique Items Required:
true
The list of configured fields for a file. -
id: string
Maximum Length:
18
The system-generated identifier of the file, folder, or template. -
latitude: number
(double)
The latitude of the location associated with the file.
-
locationName: string
Maximum Length:
255
The name of the location associated with the file. -
longitude: number
(double)
The longitude of the location associated with the file.
-
name(required): string
Maximum Length:
255
The name of the file, folder, or template. -
parentFolderPath: string
The path of the parent folder from it's root folder.
The field is non-persistable and thus maximum length is not applicable. -
parentId(required): string
Maximum Length:
18
The system-generated identifier of the parent object of the file or folder. -
postalCode: string
Maximum Length:
20
The postal code of the location associated with the file. -
scope: string
Allowed Values:
[ "genericPortfolio", "project", "template", "idea", "program", "strategy" ]
The object name of the context the file or folder is created in. -
scopeId: integer
(int64)
The system-generated identifier of the object of the context the file or folder is created in.
-
stateCode: string
Maximum Length:
20
The code of the state of the location associated with the file. -
stateName: string
Maximum Length:
200
The name of the state of the location associated with the file. -
workspaceCode: string
Maximum Length:
60
The user-specified identifier of a workspace. -
workspaceId: integer
(int64)
The system-specified identifier of a workspace.
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
-
Array of:
object 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
-
Array of:
object 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.
Show Source
- codeValueDocumentId
- codeValueId
- codeValueCode,codeTypeId
- codeValueCode,codeTypeCode
- codeTypeCode,codeValueCode,parentId
- codeValueCode,codeTypeId,parentId
-
action: string
Allowed Values:
[ "DELETE" ]
Provide a value for this field during object update to delete code value assigned to the object. -
codeTypeCode: string
Minimum Length:
0
Maximum Length:60
This field displays the name of a code or value. -
codeTypeId(required): integer
(int64)
The unique identifier for the code type.The code type object can also be identified by its unique criteria.
-
codeValueCode(required): string
Minimum Length:
1
Maximum Length:60
The unique identifier for the code value. -
codeValueDocumentId: integer
(int64)
The system-generated identifier of a code value document assignment.
-
codeValueId: integer
(int64)
The unique identifier for the code value.
-
codeValueName: string
Minimum Length:
1
Maximum Length:255
The name of the code value. -
parentId: integer
(int64)
The unique identifier of a parent code value.
-
projectCode: string
Minimum Length:
1
Maximum Length:60
The code of a Project of a Project CodeType. -
projectId: integer
(int64)
The unique identifier for the project.The project object can also be identified by its unique criteria.
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.
Show Source
- documentConfiguredFieldValueId
- columnDefinitionId
- columnName
- columnLabel
-
action: string
Allowed Values:
[ "DELETE" ]
Provide value for this field during object update to delete the assigned configured field value. -
columnDefinitionId: integer
(int64)
Unique identifier of the column. This value should not be provided in create operation request data, however, it is required for update requests.
-
columnLabel: string
Minimum Length:
1
Maximum Length:100
The user-specified UDF column label. -
columnName: string
Minimum Length:
1
Maximum Length:100
The user-specified UDF column name. -
dateValue: string
(date-time)
This holds values for Date type configured fields.
-
documentConfiguredFieldValueId: integer
(int64)
The unique identifier for the File Configured Field.
-
documentId: integer
(int64)
The system-generated identifier of the file, folder, or template.
-
numberValue: number
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.
-
textValue: string
Maximum Length:
255
This holds values for Boolean, List and Text type configured fields.
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.