Docs

Start Activity Attribute File Upload

POST /Activities/{activityId}/attributes/{attributeId}/files

POST/Activities/{activityId}/attributes/{attributeId}/files

Starts 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

FieldTypeRequiredDescription
activityIduuidRequired
attributeIduuidRequired

Request Body

FieldTypeRequiredDescription
namestringOptional
fileFormatstringOptional
fileSizeintegerOptional

Response

FieldTypeDescription
fileIduuid
versionIduuid
uploadTargetstring| null