ResourceFileChangeStructure
Version #1
Description:
Represents a change which should be applied to a single file of a resource.
To add a new file to the resource, use
type="add"To modify the file’s data, use
type="modify" and add changes to dataChanges. Note only the data object can be modified.To remove a file from the resource, use
type="remove"When no changes should be applied to a file, do not add it as a change.
Fields:
dataChanges: Array< DataChangeStructure:v1 > [Optional]- Default: No changesDescription: Should contain every change that should be applied to the file reference’s custom data object.
fileId: String [Required]- Description: References the resource’s file reference.
fileSize: Integer [Optional]- Default: nullDescription: Defines the referenced file’s size in bytes. This is used only when
type="add"
mimeType: String [Optional]- Default: nullDescription: Defines the referenced file’s mime type. This is used only when
type="add"
type: Enum<add | modify | remove> [Optional]- Default: addDescription: Defines what kind of change should be applied to the file reference.