Docs

Start Area Record File Upload

POST /area-records/{areaRecordId}/attributes/{attributeId}/files

POST/area-records/{areaRecordId}/attributes/{attributeId}/files

Starts uploading a file into an owned area's File or MultiFile attribute: a new file in the org drive, in the area's folder or the type's named folder. PUT the bytes to uploadTarget, then commit fileId with OrgAreas_SetAreaRecordValue; OrgAreas_GetAreaRecord returns its read URL. Needs Collaborator.Edit at the organization. On a tracked attribute it adds a version to the attribute's bound deliverable instead (File), or fills its empty one (MultiFile); fileId is then that deliverable and versionId the new version.

Path Parameters

FieldTypeRequiredDescription
areaRecordIduuidRequired
attributeIduuidRequired

Request Body

FieldTypeRequiredDescription
namestringOptional
fileFormatstringOptional
fileSizeintegerOptional

Response

FieldTypeDescription
fileIduuid
versionIduuid
uploadTargetstring| null