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
| Field | Type | Required | Description |
|---|
| orgId | uuid | Required | |
| recordId | 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 | |