Skip to main content
PATCH
/
api
/
transfers
/
{id}
/
cURL
curl --request PATCH \
  --url https://{server}/api/transfers/{id}/ \
  --header 'Content-Type: application/json' \
  --cookie sessionid= \
  --data '
{
  "bytes_transferred": 1,
  "completed_files": [
    {}
  ]
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "asset_content_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "bytes_transferred": 123,
  "expires_at": "2023-11-07T05:31:56Z",
  "initiated_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "asset_content_title": "<string>",
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "project_name": "<string>",
  "repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "repository_name": "<string>",
  "total_bytes": 0,
  "direction_supports_progress": true
}

Authorizations

sessionid
string
cookie
required

Path Parameters

id
string<uuid>
required

Body

bytes_transferred
integer
Required range: x >= 0
completed_files
object[]

Upload only: [{filename, size, checksum}].

Response

200 - application/json

Read-only serializer for Transfer rows.

Includes denormalized labels for the tracker UI so the client can render one row per transfer without extra round-trips. The ACL trade-off is explicit: the initiator keeps visibility into project_name / repository_name / asset_content_title even if the underlying grant is later revoked, because TransferListCreateView already scopes the queryset to initiated_by=request.user. A per-row ACL re-check would be costly and provides no real defense (the initiator had access at initiation time). project_* and repository_* fields are nullable — Asset.owner_project can be null for personal assets, and AssetContent.allocation is SET_NULL — clients MUST handle null.

id
string<uuid>
required
read-only
asset_content_id
string<uuid>
required
read-only
type
enum<string>
required
  • upload - Upload
  • download - Download
Available options:
upload,
download
status
enum<string>
required
  • pending - Pending
  • in_progress - In Progress
  • completed - Completed
  • failed - Failed
  • expired - Expired
Available options:
pending,
in_progress,
completed,
failed,
expired
origin
enum<string>
required
  • user - User
  • system - System
Available options:
user,
system
bytes_transferred
integer
required
read-only
expires_at
string<date-time>
required
read-only
initiated_by_id
string<uuid>
required
read-only
created_at
string<date-time>
required
read-only
updated_at
string<date-time>
required
read-only
asset_content_title
string
required
read-only
project_id
string<uuid>
required
read-only
project_name
string
required
read-only
repository_id
string<uuid>
required
read-only
repository_name
string
required
read-only
total_bytes
integer
default:0
required
read-only
direction_supports_progress
boolean
required
read-only