Docs
Start Activity Attribute File Upload
POST /Activities/{activityId}/attributes/{attributeId}/files
POST
/Activities/{activityId}/attributes/{attributeId}/filesStarts uploading a file into one of the activity's File or MultiFile attributes: a new file in the activity's folder or the type's named folder, in the event drive for an event activity or the org drive for an org activity. PUT the bytes to uploadTarget, then commit fileId with Activities_SetActivityValue. attributeId comes from Activities_GetActivityTypeOptions. Needs Activity.Edit on the activity. 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 |
|---|---|---|---|
| activityId | 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 |