Docs

Start Attribute File Upload

POST /organizations/{orgId}/collaborator-records/{recordId}/attributes/{attributeId}/files

POST/organizations/{orgId}/collaborator-records/{recordId}/attributes/{attributeId}/files

Starts uploading a file into a collaborator record's File or MultiFile attribute: a new file in the org drive, in the record's folder or the type's named folder. PUT the bytes to uploadTarget with x-ms-blob-type BlockBlob, then commit fileId with CollaboratorDatabase_SetCollaboratorPropertyValue (or Collaborators_SetCollaboratorValue from an event). attributeId comes from CollaboratorDatabase_GetCollaboratorRecord. Needs Collaborator.Edit at the organization, or the collaborator's own login on a collaborator-editable field. 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
orgIduuidRequired
recordIduuidRequired
attributeIduuidRequired

Request Body

FieldTypeRequiredDescription
namestringOptional
fileFormatstringOptional
fileSizeintegerOptional

Response

FieldTypeDescription
fileIduuid
versionIduuid
uploadTargetstring| null