Attachments
Files attached to datasets
List the attachments the caller can read
Long-lived API key configured in the server's auth file. The full header value is ApiKey <key> (note the literal ApiKey prefix, which is not standard HTTP — generated SDKs will need to prepend it).
GET /attachments HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
Create an attachment from one uploaded asset
Long-lived API key configured in the server's auth file. The full header value is ApiKey <key> (note the literal ApiKey prefix, which is not standard HTTP — generated SDKs will need to prepend it).
POST /attachments HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 104
{
"asset_id": "text",
"name": null,
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"user_metadata": null
}Delete an attachment. The asset that holds the file stays, as with a dataset or a raster
Long-lived API key configured in the server's auth file. The full header value is ApiKey <key> (note the literal ApiKey prefix, which is not standard HTTP — generated SDKs will need to prepend it).
DELETE /attachments/{attachment_id} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
Rename an attachment and/or patch its user metadata with a json merge patch (RFC 7386)
Long-lived API key configured in the server's auth file. The full header value is ApiKey <key> (note the literal ApiKey prefix, which is not standard HTTP — generated SDKs will need to prepend it).
PATCH /attachments/{attachment_id} HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"name": null,
"user_metadata": null
}Presigned download URL for the file of an attachment
Long-lived API key configured in the server's auth file. The full header value is ApiKey <key> (note the literal ApiKey prefix, which is not standard HTTP — generated SDKs will need to prepend it).
GET /attachments/{attachment_id}/download HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
Last updated

