Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Attachments

Files attached to datasets

get

List the attachments the caller can read

Authorizations
AuthorizationstringRequired

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).

Responses
get/attachments
GET /attachments HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
post

Create an attachment from one uploaded asset

Authorizations
AuthorizationstringRequired

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).

Body
asset_idstringRequired
namestring · nullableOptional
project_idstring · uuidRequired
user_metadataanyOptional
Responses
post/attachments
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

Delete an attachment. The asset that holds the file stays, as with a dataset or a raster

Authorizations
AuthorizationstringRequired

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).

Path parameters
attachment_idstring · uuidRequired
Responses
delete/attachments/{attachment_id}
DELETE /attachments/{attachment_id} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
patch

Rename an attachment and/or patch its user metadata with a json merge patch (RFC 7386)

Authorizations
AuthorizationstringRequired

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).

Path parameters
attachment_idstring · uuidRequired
Body
namestring · nullableOptional
user_metadataanyOptional
Responses
patch/attachments/{attachment_id}
PATCH /attachments/{attachment_id} HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 34

{
  "name": null,
  "user_metadata": null
}
get

Presigned download URL for the file of an attachment

Authorizations
AuthorizationstringRequired

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).

Path parameters
attachment_idstring · uuidRequired
Responses
get/attachments/{attachment_id}/download
GET /attachments/{attachment_id}/download HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*

Last updated