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

Related Resources

get

Paginated related resources for the current user by default, or team-scoped when uploaded_by_team is set. Filter by related_resource_type, related_resource_type_label, or search.

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
orderingstringOptional

Sort field; prefix with - for descending. Allowed: uploaded_date, label.

pageintegerOptional

Page number (1-based).

page_sizeintegerOptional

Items per page (max 2000).

related_resource_typeintegerOptional

Filter by related resource type primary key.

related_resource_type_labelstringOptional

Filter by type label (case-insensitive). Use Other for resources whose type is not JournalArticle, Dataset, or Image.

searchstringOptional

Substring match on resource label or linked sample IGSN.

uploaded_by_teamintegerOptional

When set, list resources uploaded by this team.

Responses
200Success
application/json
countintegerRequiredExample: 123
nextstring · uri · nullableOptionalExample: http://api.example.org/accounts/?page=4
previousstring · uri · nullableOptionalExample: http://api.example.org/accounts/?page=2
get/api/related-resources/
GET /api/related-resources/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "count": 123,
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2",
  "results": [
    {
      "count": 1,
      "next": "text",
      "previous": "text",
      "data": [
        {
          "id": 1,
          "label": "text",
          "description": "text",
          "related_resource_type": "text",
          "uri": "text",
          "uri_type": "text",
          "file_type": "text",
          "uploaded_date": "2026-01-01T00:00:00.000Z"
        }
      ],
      "page_size": 1,
      "current_page": 1,
      "total_pages": 1
    }
  ]
}

Create related resource

post

Creates a related resource from a file upload (multipart) or URI metadata (JSON). Ownership defaults to the current user unless uploaded_by_team is set.

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Body
idintegerRead-onlyRequired
labelstring · max: 255Required
descriptionstring · nullableOptional
related_resource_typestring · nullableOptional
uristring · nullableOptional
uri_typestring · nullableOptional
file_typestring · max: 128 · nullableOptional
file_sizeinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
uploaded_datestring · date-timeOptional
uploaded_byinteger · nullableRead-onlyRequired
uploaded_by_teaminteger · nullableOptional
filestring · uri · nullableWrite-onlyOptional
Responses
201Success
application/json
post/api/related-resources/
POST /api/related-resources/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 225

{
  "label": "text",
  "description": "text",
  "related_resource_type": "text",
  "uri": "text",
  "uri_type": "text",
  "file_type": "text",
  "file_size": 1,
  "uploaded_date": "2026-01-01T00:00:00.000Z",
  "uploaded_by_team": 1,
  "file": "https://example.com"
}
201Success
{
  "data": {
    "id": 1,
    "label": "text",
    "description": "text",
    "related_resource_type": "text",
    "uri": "text",
    "uri_type": "text",
    "file_type": "text",
    "uploaded_date": "2026-01-01T00:00:00.000Z"
  }
}
get
Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired
Responses
200Success
application/json
get/api/related-resources/{id}/
GET /api/related-resources/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "data": {
    "id": 1,
    "label": "text",
    "description": "text",
    "related_resource_type": "text",
    "uri": "text",
    "uri_type": "text",
    "file_type": "text",
    "uploaded_date": "2026-01-01T00:00:00.000Z"
  }
}
delete

Deletes the resource, subtracts storage quota, and removes the local file when applicable.

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired
Responses
200Success
application/json
delete/api/related-resources/{id}/
DELETE /api/related-resources/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "data": {
    "success": true
  }
}
patch
Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired
Body
idintegerRead-onlyOptional
labelstring · max: 255Optional
descriptionstring · nullableOptional
related_resource_typestring · nullableOptional
uristring · nullableOptional
uri_typestring · nullableOptional
file_typestring · max: 128 · nullableOptional
file_sizeinteger · int64 · min: -9223372036854776000 · max: 9223372036854776000 · nullableOptional
uploaded_datestring · date-timeOptional
uploaded_byinteger · nullableRead-onlyOptional
uploaded_by_teaminteger · nullableOptional
filestring · uri · nullableWrite-onlyOptional
Responses
200Success
application/json
patch/api/related-resources/{id}/
PATCH /api/related-resources/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 225

{
  "label": "text",
  "description": "text",
  "related_resource_type": "text",
  "uri": "text",
  "uri_type": "text",
  "file_type": "text",
  "file_size": 1,
  "uploaded_date": "2026-01-01T00:00:00.000Z",
  "uploaded_by_team": 1,
  "file": "https://example.com"
}
200Success
{
  "data": {
    "id": 1,
    "label": "text",
    "description": "text",
    "related_resource_type": "text",
    "uri": "text",
    "uri_type": "text",
    "file_type": "text",
    "uploaded_date": "2026-01-01T00:00:00.000Z"
  }
}

Link or unlink samples

post

Bulk link or unlink samples to a related resource. Use sample_ids or select_all with filters to resolve the sample set.

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
actionstring · enumRequired

Whether to link or unlink the resolved samples.

Possible values:
idintegerRequired
pkintegerRequired

Related resource primary key.

Body
sample_idsinteger[]Optional

Sample primary keys to link or unlink.

select_allbooleanOptional

When true, apply filters to resolve samples instead of sample_ids.

Default: false
Responses
200Success
application/json
post/api/related-resources/{id}/{action}/
POST /api/related-resources/{id}/{action}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 82

{
  "sample_ids": [
    1
  ],
  "select_all": false,
  "filters": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  }
}
{
  "data": {
    "message": "text",
    "count": 1
  }
}

Last updated

Was this helpful?