Docs
Start Area Record File Upload
POST /area-records/{areaRecordId}/attributes/{attributeId}/files
POST
/area-records/{areaRecordId}/attributes/{attributeId}/filesStarts 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
| Field | Type | Required | Description |
|---|---|---|---|
| areaRecordId | uuid | Required | |
| attributeId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Optional | |
| fileFormat | string | Optional | |
| fileSize | integer | Optional |
Response
| Field | Type | Description |
|---|---|---|
| fileId | uuid | |
| versionId | uuid | |
| uploadTarget | string| null |