STQRY Collect (1.0.0)

Download OpenAPI specification:

License: LicenseRef-Copyright

Public API for Collect resources and files

sites

Operations about sites

List the Collect sites this key can reach

Authorizations:
api_token
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "sites": [
    ]
}

Fetch one site, with how it is configured

Authorizations:
api_token
path Parameters
uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "uuid": "string",
  • "name": "string",
  • "url": "string",
  • "host": "string",
  • "primary_language_code": "string",
  • "additional_language_codes": [
    ],
  • "bulk_upload_method": "string",
  • "google_analytics_code": "string",
  • "mytours_project_id": 0,
  • "settings": {
    },
  • "schema_version_id": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Change how a site is configured

A merge, not a replacement: a setting left out keeps its current value, and so does a whole group left out. The exceptions are the list-valued settings — contribution_licenses, resource_placements and sortable_fields — which replace what is there, because a half-merged list is worse than either.

Authorizations:
api_token
path Parameters
uuid
required
string
Request Body schema: application/json
optional
name
string

What the site is called

google_analytics_code
string
bulk_upload_method
string
Enum: "sftp" "google_drive"

Where a bulk import reads its spreadsheet from

object

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "google_analytics_code": "string",
  • "bulk_upload_method": "sftp",
  • "settings": {
    }
}

Response samples

Content type
application/json
{
  • "uuid": "string",
  • "name": "string",
  • "url": "string",
  • "host": "string",
  • "primary_language_code": "string",
  • "additional_language_codes": [
    ],
  • "bulk_upload_method": "string",
  • "google_analytics_code": "string",
  • "mytours_project_id": 0,
  • "settings": {
    },
  • "schema_version_id": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Download the spreadsheet a bulk import is filled into

Authorizations:
api_token
path Parameters
uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

List or search a site's resources

Authorizations:
api_token
path Parameters
site_uuid
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

q
string

Keyword search query

order
string
Default: "relevance"
Enum: "relevance" "title" "type" "updated" "created"

Sort order

direction
string
Default: "asc"
Enum: "asc" "desc"

Sort direction

parent_id
string

Only resources with this parent

title
string
creator
string
type[]
Array of strings
language[]
Array of strings
access_rights[]
Array of strings
Items Enum: "published" "unpublished" "unmoderated" "draft" "deleted"

Include deleted to reach soft-deleted resources

source[]
Array of strings
contributor_role[]
Array of strings
location_precision[]
Array of strings
source_id
string
created_at_gt
string <date-time>
created_at_lt
string <date-time>
updated_at_gt
string <date-time>
updated_at_lt
string <date-time>
custom_fields
string

Filters on the site's own fields, keyed by field name

ids[]
Array of strings

Only these resources, which re-fetches a known set in one call

with_files
boolean

Only resources that have at least one file

without_files
boolean

Only resources that have no files

bbox[]
Array of numbers <float> [ items <float > ]

Only resources inside this bounding box: west, south, east, north

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "resources": [
    ]
}

Create a resource

Writes the resource and runs the same pipeline the Builder does: the metadata file is written to S3 before this answers. File processing is asynchronous, so a file's derived fields appear on a later read.

Authorizations:
api_token
path Parameters
site_uuid
required
string
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
optional
title
string
type
string

What kind of thing it is

creator
string
language
string
parent_id
string

The resource this one belongs to

access_rights
string
Enum: "published" "unpublished" "unmoderated" "draft" "deleted"

Who can see it

source
string

Which system it came from

source_id
string

What that system calls it

location
Array of numbers <float> [ items <float > ]

Latitude and longitude

location_data
object
location_precision
string
custom_fields
object

Values for the site's own fields, keyed by field name

Responses

Request samples

Content type
application/json
{
  • "title": "string",
  • "type": "string",
  • "creator": "string",
  • "language": "string",
  • "parent_id": "string",
  • "access_rights": "published",
  • "source": "string",
  • "source_id": "string",
  • "location": [
    ],
  • "location_data": { },
  • "location_precision": "string",
  • "custom_fields": { }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "type": "string",
  • "files_count": 0,
  • "parent_id": "string",
  • "title": "string",
  • "access_rights": "published",
  • "language": "string",
  • "contributor_role": "string",
  • "position": 0,
  • "source": "string",
  • "source_id": "string",
  • "creator": "string",
  • "location": [
    ],
  • "location_precision": "string",
  • "location_shape": {
    },
  • "location_data": { },
  • "admin_state": "string",
  • "created_at": "string",
  • "updated_at": "string",
  • "custom_fields": { },
  • "files": [
    ]
}

Suggest values for a field as a user types

Authorizations:
api_token
path Parameters
site_uuid
required
string
query Parameters
attribute
required
string

Which field to suggest for

value
required
string

What has been typed so far

Responses

Response samples

Content type
application/json
{
  • "suggestions": [
    ]
}

Export a search as a file

Pages like any other list. The file holds one page, and the paging it was taken from travels in the Current-Page, Page-Items, Total-Pages and Total-Count headers, since a spreadsheet has nowhere to carry it. A json export is a Collect_Entities_Public_ResourcesList.

Authorizations:
api_token
path Parameters
site_uuid
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 1000

Rows per file, to a maximum of 1000

q
string

Keyword search query

order
string
Default: "relevance"
Enum: "relevance" "title" "type" "updated" "created"

Sort order

direction
string
Default: "asc"
Enum: "asc" "desc"

Sort direction

parent_id
string

Only resources with this parent

title
string
creator
string
type[]
Array of strings
language[]
Array of strings
access_rights[]
Array of strings
Items Enum: "published" "unpublished" "unmoderated" "draft" "deleted"

Include deleted to reach soft-deleted resources

source[]
Array of strings
contributor_role[]
Array of strings
location_precision[]
Array of strings
source_id
string
created_at_gt
string <date-time>
created_at_lt
string <date-time>
updated_at_gt
string <date-time>
updated_at_lt
string <date-time>
custom_fields
string

Filters on the site's own fields, keyed by field name

ids[]
Array of strings

Only these resources, which re-fetches a known set in one call

with_files
boolean

Only resources that have at least one file

without_files
boolean

Only resources that have no files

bbox[]
Array of numbers <float> [ items <float > ]

Only resources inside this bounding box: west, south, east, north

file_format
string
Default: "json"
Enum: "json" "xlsx"

Which file to produce

Responses

Response samples

Content type
{
  • "meta": {
    },
  • "resources": [
    ]
}

Count the values of a field across a search

Authorizations:
api_token
path Parameters
site_uuid
required
string
query Parameters
q
string

Keyword search query

order
string
Default: "relevance"
Enum: "relevance" "title" "type" "updated" "created"

Sort order

direction
string
Default: "asc"
Enum: "asc" "desc"

Sort direction

parent_id
string

Only resources with this parent

title
string
creator
string
type[]
Array of strings
language[]
Array of strings
access_rights[]
Array of strings
Items Enum: "published" "unpublished" "unmoderated" "draft" "deleted"

Include deleted to reach soft-deleted resources

source[]
Array of strings
contributor_role[]
Array of strings
location_precision[]
Array of strings
source_id
string
created_at_gt
string <date-time>
created_at_lt
string <date-time>
updated_at_gt
string <date-time>
updated_at_lt
string <date-time>
custom_fields
string

Filters on the site's own fields, keyed by field name

ids[]
Array of strings

Only these resources, which re-fetches a known set in one call

with_files
boolean

Only resources that have at least one file

without_files
boolean

Only resources that have no files

bbox[]
Array of numbers <float> [ items <float > ]

Only resources inside this bounding box: west, south, east, north

fields[]
required
Array of strings

Which fields to count over; each one costs a query

Responses

Response samples

Content type
application/json
{
  • "facets": [
    ]
}

Restore deleted resources

Takes the ids to restore; there is no form that restores everything, because "everything currently deleted" is not a set a caller can see before asking. Runs in the background and answers 202.

Authorizations:
api_token
path Parameters
site_uuid
required
string
Request Body schema: application/json
required
resource_ids
required
Array of strings

Which deleted resources to restore

access_rights
string
Default: "unpublished"
Enum: "unpublished" "unmoderated" "draft"

What to restore them as

Responses

Request samples

Content type
application/json
{
  • "resource_ids": [
    ],
  • "access_rights": "unpublished"
}

Response samples

Content type
application/json
{
  • "status": "accepted"
}

Permanently delete resources

Irreversible, and only reaches resources that are already deleted. Either name the ids or pass all: true; omitting both is refused rather than taken to mean everything. Runs in the background and answers 202.

Authorizations:
api_token
path Parameters
site_uuid
required
string
query Parameters
resource_ids[]
Array of strings

Which deleted resources to purge

all
boolean

Purge every deleted resource on the site. Say so explicitly.

Responses

Response samples

Content type
application/json
{
  • "status": "accepted"
}

Change one field across many resources

Sets one attribute on the resources named, or on every resource on the site when all: true is given; omitting both is refused. A field that holds a list needs edit_modifier and old_values to say what to do with what is already there. Runs in the background and answers 202.

Authorizations:
api_token
path Parameters
site_uuid
required
string
Request Body schema: application/json
required
attribute
required
string

Which field to change

new_values
required
Array of strings

What to set it to

resource_ids
Array of strings

Which resources to change

all
boolean

Change every resource on the site. Say so explicitly.

edit_modifier
string
Enum: "append" "delete" "replace" "replace_all"

For a list-valued field: what to do with the values already there

old_values
Array of strings

For a list-valued field: which values to act on

exact_match
boolean
Default: true

Match the whole creator, not part of it

Responses

Request samples

Content type
application/json
{
  • "attribute": "string",
  • "new_values": [
    ],
  • "resource_ids": [
    ],
  • "all": true,
  • "edit_modifier": "append",
  • "old_values": [
    ],
  • "exact_match": true
}

Response samples

Content type
application/json
{
  • "status": "accepted"
}

List a resource's children

Authorizations:
api_token
path Parameters
id
required
string
site_uuid
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "resources": [
    ]
}

Fetch a single resource

Authorizations:
api_token
path Parameters
id
required
string
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "type": "string",
  • "files_count": 0,
  • "parent_id": "string",
  • "title": "string",
  • "access_rights": "published",
  • "language": "string",
  • "contributor_role": "string",
  • "position": 0,
  • "source": "string",
  • "source_id": "string",
  • "creator": "string",
  • "location": [
    ],
  • "location_precision": "string",
  • "location_shape": {
    },
  • "location_data": { },
  • "admin_state": "string",
  • "created_at": "string",
  • "updated_at": "string",
  • "custom_fields": { },
  • "files": [
    ]
}

Update a resource

Only the attributes sent are changed; anything left out keeps its current value. Writing access_rights: "deleted" is refused — use DELETE, which is what a soft delete is called here.

Authorizations:
api_token
path Parameters
id
required
string
site_uuid
required
string
Request Body schema: application/json
optional
title
string
type
string

What kind of thing it is

creator
string
language
string
parent_id
string

The resource this one belongs to

access_rights
string
Enum: "published" "unpublished" "unmoderated" "draft" "deleted"

Who can see it

source
string

Which system it came from

source_id
string

What that system calls it

location
Array of numbers <float> [ items <float > ]

Latitude and longitude

location_data
object
location_precision
string
custom_fields
object

Values for the site's own fields, keyed by field name

Responses

Request samples

Content type
application/json
{
  • "title": "string",
  • "type": "string",
  • "creator": "string",
  • "language": "string",
  • "parent_id": "string",
  • "access_rights": "published",
  • "source": "string",
  • "source_id": "string",
  • "location": [
    ],
  • "location_data": { },
  • "location_precision": "string",
  • "custom_fields": { }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "type": "string",
  • "files_count": 0,
  • "parent_id": "string",
  • "title": "string",
  • "access_rights": "published",
  • "language": "string",
  • "contributor_role": "string",
  • "position": 0,
  • "source": "string",
  • "source_id": "string",
  • "creator": "string",
  • "location": [
    ],
  • "location_precision": "string",
  • "location_shape": {
    },
  • "location_data": { },
  • "admin_state": "string",
  • "created_at": "string",
  • "updated_at": "string",
  • "custom_fields": { },
  • "files": [
    ]
}

Delete a resource

A soft delete: the resource stops appearing in searches but is still fetchable by id, and can be restored. Nothing purges it from here.

Authorizations:
api_token
path Parameters
id
required
string
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Restore a deleted resource

Comes back unpublished unless told otherwise: what it was before the delete is not recorded, and unpublished claims only that it is not public, which is true of anything just restored.

Authorizations:
api_token
path Parameters
id
required
string
site_uuid
required
string
Request Body schema: application/json
optional
access_rights
string
Default: "unpublished"
Enum: "unpublished" "unmoderated" "draft"

What to restore it as

Responses

Request samples

Content type
application/json
{
  • "access_rights": "unpublished"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "type": "string",
  • "files_count": 0,
  • "parent_id": "string",
  • "title": "string",
  • "access_rights": "published",
  • "language": "string",
  • "contributor_role": "string",
  • "position": 0,
  • "source": "string",
  • "source_id": "string",
  • "creator": "string",
  • "location": [
    ],
  • "location_precision": "string",
  • "location_shape": {
    },
  • "location_data": { },
  • "admin_state": "string",
  • "created_at": "string",
  • "updated_at": "string",
  • "custom_fields": { },
  • "files": [
    ]
}

List the fields a site's resources carry

Authorizations:
api_token
path Parameters
site_uuid
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

type
string

Only fields carried by this resource type

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "resource_fields": [
    ]
}

Define a new field on a site's resources

name is how the field is addressed in a resource's custom_fields and in a search filter, and cannot be changed afterwards. Existing resources are not rewritten: they simply have no value for it yet.

Authorizations:
api_token
path Parameters
site_uuid
required
string
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
required
name
required
string

How the field is addressed. Immutable once set.

label
required
string

What people see

field_type
required
string
Enum: "string" "text" "formatted_text" "date" "edtf_date" "integer" "decimal" "boolean" "lookup" "image" "authority_file" "url" "html" "nested_item" "breadcrumbs"

What kind of value it holds

multiple
boolean

Whether the field can hold more than one value

required
boolean

Whether a resource must have a value for it

internal
boolean

Whether it is hidden from the public site

position
integer

Where it sits in the list

object
object

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "label": "string",
  • "field_type": "string",
  • "multiple": true,
  • "required": true,
  • "internal": true,
  • "position": 0,
  • "settings": {
    },
  • "search_config": {
    }
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "type": "float",
  • "label": "string",
  • "multiple": true,
  • "required": true,
  • "internal": true,
  • "position": 0,
  • "types": [
    ],
  • "valid_options": [
    ],
  • "inactive_options": [
    ],
  • "option_labels": { },
  • "valid_breadcrumbs_options": { },
  • "inactive_breadcrumbs_options": [
    ],
  • "breadcrumbs_option_labels": { },
  • "authority_group_id": 0,
  • "search": {
    },
  • "display": {
    }
}

Reorder a site's resource fields

Positions are applied together, so the list never passes through a state where two fields claim one position.

Authorizations:
api_token
path Parameters
site_uuid
required
string
Request Body schema: application/json
required
required
Array of objects

Responses

Request samples

Content type
application/json
{
  • "fields": [
    ]
}

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Fetch a single field definition

Authorizations:
api_token
path Parameters
name
required
string
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "type": "float",
  • "label": "string",
  • "multiple": true,
  • "required": true,
  • "internal": true,
  • "position": 0,
  • "types": [
    ],
  • "valid_options": [
    ],
  • "inactive_options": [
    ],
  • "option_labels": { },
  • "valid_breadcrumbs_options": { },
  • "inactive_breadcrumbs_options": [
    ],
  • "breadcrumbs_option_labels": { },
  • "authority_group_id": 0,
  • "search": {
    },
  • "display": {
    }
}

Update a field definition

name is absent on purpose: every resource's custom_fields is keyed by it, so changing one would orphan every value already stored.

Authorizations:
api_token
path Parameters
name
required
string
site_uuid
required
string
Request Body schema: application/json
optional
label
string

What people see

multiple
boolean

Whether the field can hold more than one value

required
boolean

Whether a resource must have a value for it

internal
boolean

Whether it is hidden from the public site

position
integer

Where it sits in the list

object
object

Responses

Request samples

Content type
application/json
{
  • "label": "string",
  • "multiple": true,
  • "required": true,
  • "internal": true,
  • "position": 0,
  • "settings": {
    },
  • "search_config": {
    }
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "type": "float",
  • "label": "string",
  • "multiple": true,
  • "required": true,
  • "internal": true,
  • "position": 0,
  • "types": [
    ],
  • "valid_options": [
    ],
  • "inactive_options": [
    ],
  • "option_labels": { },
  • "valid_breadcrumbs_options": { },
  • "inactive_breadcrumbs_options": [
    ],
  • "breadcrumbs_option_labels": { },
  • "authority_group_id": 0,
  • "search": {
    },
  • "display": {
    }
}

Discard a field definition

The field stops being offered. Values already stored on resources are left alone, and come back if it is restored.

Authorizations:
api_token
path Parameters
name
required
string
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Restore a discarded field definition

Authorizations:
api_token
path Parameters
name
required
string
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

List the permitted values of a resource's built-in attributes

Authorizations:
api_token
path Parameters
site_uuid
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "vocabularies": [
    ]
}

Fetch one vocabulary

Authorizations:
api_token
path Parameters
name
required
string
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "values": [
    ]
}

Count what a site holds

Authorizations:
api_token
path Parameters
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "resources_count": 0,
  • "files_count": 0,
  • "resource_types": [
    ]
}

List a site's files

Authorizations:
api_token
path Parameters
site_uuid
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

resource_id
string

Only the files of this resource

type
string
Enum: "article" "audio" "book" "captions" "cms_page" "cover_image" "image" "transcription" "video"

Only files of this type

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "files": [
    ]
}

Record a file and get somewhere to upload it

Two steps, the same way the Builder writes a file. This records what is coming and answers with a presigned S3 POST; the client then sends the bytes straight to S3. Processing — checksums, dimensions, deep zoom, transcoding — starts when S3 reports the upload and finishes later, so the derived fields appear on a subsequent read.

Authorizations:
api_token
path Parameters
site_uuid
required
string
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
required
resource_id
required
string

The resource the file belongs to

name
required
string

Filename

type
required
string
Enum: "article" "audio" "book" "captions" "cms_page" "cover_image" "image" "transcription" "video"

What kind of file it is

mime_type
required
string
size
required
integer

Size in bytes. The upload is pinned to it.

md5sum
string
sha1sum
string
sha256sum
string
position
integer

Where it sits among the resource's files

Responses

Request samples

Content type
application/json
{
  • "resource_id": "string",
  • "name": "string",
  • "type": "article",
  • "mime_type": "string",
  • "size": 0,
  • "md5sum": "string",
  • "sha1sum": "string",
  • "sha256sum": "string",
  • "position": 0
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "resource_id": "string",
  • "type": "article",
  • "name": "string",
  • "original_name": "string",
  • "mime_type": "string",
  • "size": 0,
  • "position": 0,
  • "upload": {
    }
}

Reorder a resource's files

Positions are applied together, so the resource never passes through a state where two files claim one place. Setting position one file at a time does not do that.

Authorizations:
api_token
path Parameters
site_uuid
required
string
Request Body schema: application/json
required
resource_id
required
string

The resource whose files these are

required
Array of objects

Responses

Request samples

Content type
application/json
{
  • "resource_id": "string",
  • "files": [
    ]
}

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Fetch a single file

Authorizations:
api_token
path Parameters
id
required
string
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "resource_id": "string",
  • "type": "article",
  • "name": "string",
  • "original_name": "string",
  • "mime_type": "string",
  • "size": 0,
  • "position": 0,
  • "transcoded": true,
  • "icon_color": "string",
  • "md5sum": "string",
  • "sha1sum": "string",
  • "sha256sum": "string",
  • "width": 0,
  • "height": 0,
  • "duration": 0,
  • "sample_rate": 0,
  • "resize_master_name": "string",
  • "created_at": "string",
  • "updated_at": "string",
  • "deep_zoom": {
    },
  • "images": {
    },
  • "versions": {
    },
  • "documents": {
    }
}

Update a file's metadata

Changes what is recorded about the file. It does not replace its contents: a new size answers with a fresh presigned POST to upload to.

Authorizations:
api_token
path Parameters
id
required
string
site_uuid
required
string
Request Body schema: application/json
optional
name
string

Filename

type
string
Enum: "article" "audio" "book" "captions" "cms_page" "cover_image" "image" "transcription" "video"

What kind of file it is

mime_type
string
position
integer

Where it sits among the resource's files

md5sum
string
sha1sum
string
sha256sum
string
size
integer

Size in bytes

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "type": "article",
  • "mime_type": "string",
  • "position": 0,
  • "md5sum": "string",
  • "sha1sum": "string",
  • "sha256sum": "string",
  • "size": 0
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "resource_id": "string",
  • "type": "article",
  • "name": "string",
  • "original_name": "string",
  • "mime_type": "string",
  • "size": 0,
  • "position": 0,
  • "upload": {
    }
}

Delete a file

Removes the file and everything derived from it. Unlike a resource, this is not reversible.

Authorizations:
api_token
path Parameters
id
required
string
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

List a site's collections

Authorizations:
api_token
path Parameters
site_uuid
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

q
string

Filters by title

active
boolean

Only collections shown on the site's own pages

highlighted
boolean

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "collections": [
    ]
}

Create a collection

A collection is a saved search unless sort_order is manual: search_criteria decides what is in it, in the same filter names the resources endpoint takes. A manual collection holds an explicit, ordered list of resources instead, and is created empty. The slug is derived from the title when one is not given.

Authorizations:
api_token
path Parameters
site_uuid
required
string
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
required
title
required
string
description
required
string
search_criteria
required
object

What the collection selects

slug
string

What it is called in a URL. Derived from the title when omitted.

cover_image_url
string
active
boolean

Whether the site's own public pages show it

highlighted
boolean
position
integer

Display order within the site

sort_order
string
Enum: "relevance" "updated" "title" "manual"

How its resources are ordered. Switching to manual seeds the members from what the search lists now, in its current order, unless it already has members.

sort_direction
string
Enum: "asc" "desc"

Read for updated and title only; omitted means the mode's default

Responses

Request samples

Content type
application/json
{
  • "title": "string",
  • "description": "string",
  • "search_criteria": { },
  • "slug": "string",
  • "cover_image_url": "string",
  • "active": true,
  • "highlighted": true,
  • "position": 0,
  • "sort_order": "relevance",
  • "sort_direction": "asc"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "title": "string",
  • "slug": "string",
  • "description": "string",
  • "active": true,
  • "highlighted": true,
  • "position": 0,
  • "cover_image_url": "string",
  • "search_criteria": { },
  • "sort_order": "relevance",
  • "sort_direction": "asc",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Fetch a single collection

Authorizations:
api_token
path Parameters
id
required
integer
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "title": "string",
  • "slug": "string",
  • "description": "string",
  • "active": true,
  • "highlighted": true,
  • "position": 0,
  • "cover_image_url": "string",
  • "search_criteria": { },
  • "sort_order": "relevance",
  • "sort_direction": "asc",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Update a collection

search_criteria replaces what is there rather than merging into it: a half-replaced set of filters would select something nobody asked for.

Authorizations:
api_token
path Parameters
id
required
integer
site_uuid
required
string
Request Body schema: application/json
optional
title
string
description
string
search_criteria
object

Replaces the criteria outright

slug
string

What it is called in a URL. Derived from the title when omitted.

cover_image_url
string
active
boolean

Whether the site's own public pages show it

highlighted
boolean
position
integer

Display order within the site

sort_order
string
Enum: "relevance" "updated" "title" "manual"

How its resources are ordered. Switching to manual seeds the members from what the search lists now, in its current order, unless it already has members.

sort_direction
string
Enum: "asc" "desc"

Read for updated and title only; omitted means the mode's default

Responses

Request samples

Content type
application/json
{
  • "title": "string",
  • "description": "string",
  • "search_criteria": { },
  • "slug": "string",
  • "cover_image_url": "string",
  • "active": true,
  • "highlighted": true,
  • "position": 0,
  • "sort_order": "relevance",
  • "sort_direction": "asc"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "title": "string",
  • "slug": "string",
  • "description": "string",
  • "active": true,
  • "highlighted": true,
  • "position": 0,
  • "cover_image_url": "string",
  • "search_criteria": { },
  • "sort_order": "relevance",
  • "sort_direction": "asc",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

List a collection's resources, in the collection's order

A manual collection lists the members an editor added, in their order, and meta.count is how many it holds: a member since deleted or purged shortens its page without changing the count. Any other collection lists what its search_criteria match, ordered by its sort_order and sort_direction.

Authorizations:
api_token
path Parameters
id
required
integer
site_uuid
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "resources": [
    ]
}

List a site's CMS pages

Authorizations:
api_token
path Parameters
site_uuid
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

status
string
Default: "active"
Enum: "all" "active" "discarded"

all, active, or discarded

published
boolean
placement
string
Enum: "none" "footer" "search_tip"

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "cms_pages": [
    ]
}

Create a CMS page

title, link_text and body are per-locale maps, keyed by language code — { "en": "About", "mi": "Mō mātou" }.

Authorizations:
api_token
path Parameters
site_uuid
required
string
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
required
name
required
string

What it is called in the Builder

slug
required
string

What it is called in a URL

title
object

Page title per locale

link_text
object

Navigation link text per locale

body
object

Markdown body per locale

published
boolean

Whether the public site shows it

primary_language
string

Which locale the page is written in

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "slug": "string",
  • "title": { },
  • "link_text": { },
  • "body": { },
  • "published": true,
  • "primary_language": "string"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "slug": "string",
  • "published": true,
  • "status": "active",
  • "placement": "string",
  • "primary_language": "string",
  • "translated_languages": [
    ],
  • "title": { },
  • "link_text": { },
  • "body": { },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Fetch a single CMS page

Authorizations:
api_token
path Parameters
id
required
integer
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "slug": "string",
  • "published": true,
  • "status": "active",
  • "placement": "string",
  • "primary_language": "string",
  • "translated_languages": [
    ],
  • "title": { },
  • "link_text": { },
  • "body": { },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Update a CMS page

A locale left out of title, link_text or body keeps what it had; sending one replaces that locale alone.

Authorizations:
api_token
path Parameters
id
required
integer
site_uuid
required
string
Request Body schema: application/json
optional
name
string

What it is called in the Builder

slug
string

What it is called in a URL

title
object

Page title per locale

link_text
object

Navigation link text per locale

body
object

Markdown body per locale

published
boolean

Whether the public site shows it

primary_language
string

Which locale the page is written in

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "slug": "string",
  • "title": { },
  • "link_text": { },
  • "body": { },
  • "published": true,
  • "primary_language": "string"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "slug": "string",
  • "published": true,
  • "status": "active",
  • "placement": "string",
  • "primary_language": "string",
  • "translated_languages": [
    ],
  • "title": { },
  • "link_text": { },
  • "body": { },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Discard a CMS page

A soft delete. It stays reachable with status=discarded, and can be restored.

Authorizations:
api_token
path Parameters
id
required
integer
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Restore a discarded CMS page

Authorizations:
api_token
path Parameters
id
required
integer
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

List the comments visitors have left on a site

Authorizations:
api_token
path Parameters
site_uuid
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

status
string
Enum: "new" "approved" "deleted" "spam"

Moderation state

resource_id
string

Only comments on this resource

q
string

Filters by message

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "comments": [
    ]
}

Leave a comment on a resource

Attributed to the key, not to a visitor: creator_type says ApiKey and the author fields carry the key's name. The site's own comments_enabled setting gates this, as it gates the Builder.

Authorizations:
api_token
path Parameters
site_uuid
required
string
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
required
resource_id
required
string

The resource it is about

message
required
string
parent_id
integer

Set when this replies to another comment

Responses

Request samples

Content type
application/json
{
  • "resource_id": "string",
  • "message": "string",
  • "parent_id": 0
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "message": "string",
  • "status": "new",
  • "resource_id": "string",
  • "parent_id": 0,
  • "author_name": "string",
  • "author_username": "string",
  • "author_email": "string",
  • "creator_type": "User",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Fetch a single comment

Authorizations:
api_token
path Parameters
id
required
integer
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "message": "string",
  • "status": "new",
  • "resource_id": "string",
  • "parent_id": 0,
  • "author_name": "string",
  • "author_username": "string",
  • "author_email": "string",
  • "creator_type": "User",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Moderate a comment

The only thing about a comment that may be changed. Its message is what somebody wrote, so it is not editable here.

Authorizations:
api_token
path Parameters
id
required
integer
site_uuid
required
string
Request Body schema: application/json
required
status
required
string
Enum: "new" "approved" "deleted" "spam"

What to mark it as

Responses

Request samples

Content type
application/json
{
  • "status": "new"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "message": "string",
  • "status": "new",
  • "resource_id": "string",
  • "parent_id": 0,
  • "author_name": "string",
  • "author_username": "string",
  • "author_email": "string",
  • "creator_type": "User",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Delete a comment

Marks it deleted rather than removing the row, which is what the deleted status is. It stays listable with status=deleted.

Authorizations:
api_token
path Parameters
id
required
integer
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

List the sets visitors have gathered on a site

Authorizations:
api_token
path Parameters
site_uuid
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

public
boolean

Only sets the visitor shared

sub
string

Only the sets of one visitor

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "user_sets": [
    ]
}

Fetch a single set

Authorizations:
api_token
path Parameters
id
required
integer
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "public": true,
  • "sub": "string",
  • "resources_count": 0,
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

List the resources a visitor put in a set

Authorizations:
api_token
path Parameters
id
required
integer
site_uuid
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "resources": [
    ]
}

List the archive containers a resource is linked to

Authorizations:
api_token
path Parameters
site_uuid
required
string
id
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "resource_archive_containers": [
    ]
}

List this site's bulk imports

Counts only. GET ./:id carries what became of each row.

Authorizations:
api_token
path Parameters
site_uuid
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "spreadsheet_import_jobs": [
    ]
}

Upload a spreadsheet to import

Reads the spreadsheet and reports what it found, without importing anything — POST ./:id/enqueue is what starts the work. Media named in the spreadsheet is fetched from the site's SFTP, so that has to be configured first. A spreadsheet that does not parse is refused outright: no job is created, and the errors name the rows.

Authorizations:
api_token
path Parameters
site_uuid
required
string
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
required
spreadsheet
required
string

The filled-in template, base64 encoded. A data: URI is accepted too.

filename
string
Default: "import.xlsx"

What to call it in the import's own record

folder_id
string

Which SFTP folder holds the media. Defaults to the site's.

Responses

Request samples

Content type
application/json
{
  • "spreadsheet": "string",
  • "filename": "import.xlsx",
  • "folder_id": "string"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "state": "pending",
  • "filename": "string",
  • "total_files_count": 0,
  • "pending_files_count": 0,
  • "processing_files_count": 0,
  • "complete_files_count": 0,
  • "failed_files_count": 0,
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "rows": [
    ]
}

Watch a bulk import

state is pending until it is enqueued, then processing, then complete or failed. The per-row errors say which line of the spreadsheet failed.

Authorizations:
api_token
path Parameters
id
required
integer
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "state": "pending",
  • "filename": "string",
  • "total_files_count": 0,
  • "pending_files_count": 0,
  • "processing_files_count": 0,
  • "complete_files_count": 0,
  • "failed_files_count": 0,
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "rows": [
    ]
}

Start a bulk import

Queues the rows the upload found. Returns as soon as they are queued; watch the job itself to see them land.

Authorizations:
api_token
path Parameters
id
required
integer
site_uuid
required
string

Responses

Response samples

Content type
application/json
{
  • "status": "accepted"
}

List the tags visitors have put on a site's resources

Authorizations:
api_token
path Parameters
site_uuid
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

resource_id
required
string

The resource whose tags to list

user_reference
string

Only the tags of one visitor

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "user_tags": [
    ]
}

archive_locations

Operations about archive_locations

List the account's archive locations

Authorizations:
api_token
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

status
string
Default: "active"
Enum: "all" "active" "discarded"

all, active, or discarded

ids[]
Array of integers
q
string

Filters by name

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "archive_locations": [
    ]
}

Create an archive location

Authorizations:
api_token
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
optional
name
string

What the location is called

description
string
parent_id
integer

The location this one sits inside

tag_list
Array of strings

Replaces the location's tags outright

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "parent_id": 0,
  • "tag_list": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "description": "string",
  • "parent_id": 0,
  • "depth": 0,
  • "children_count": 0,
  • "tag_list": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Fetch a single archive location

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "description": "string",
  • "parent_id": 0,
  • "depth": 0,
  • "children_count": 0,
  • "tag_list": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Update an archive location

Authorizations:
api_token
path Parameters
id
required
integer
Request Body schema: application/json
optional
name
string

What the location is called

description
string
parent_id
integer

The location this one sits inside

tag_list
Array of strings

Replaces the location's tags outright

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "parent_id": 0,
  • "tag_list": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "description": "string",
  • "parent_id": 0,
  • "depth": 0,
  • "children_count": 0,
  • "tag_list": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Discard an archive location

A soft delete. The location stays reachable with status=discarded, and can be restored.

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Move an archive location within the tree

Locations form a tree — Building, Room, Shelf — and this is the only way to re-parent one. target_id is required for every position but root, and index additionally for child_with_index.

Authorizations:
api_token
path Parameters
id
required
integer
Request Body schema: application/json
required
position
required
string
Enum: "child_of" "left_of" "right_of" "root" "child_with_index"

Where to put it, relative to target_id

target_id
integer

The location to move relative to

index
integer

Which child to become, for child_with_index

Responses

Request samples

Content type
application/json
{
  • "position": "child_of",
  • "target_id": 0,
  • "index": 0
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "description": "string",
  • "parent_id": 0,
  • "depth": 0,
  • "children_count": 0,
  • "tag_list": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Restore a discarded archive location

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

archive_containers

Operations about archive_containers

List the account's archive containers

Authorizations:
api_token
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

status
string
Default: "active"
Enum: "all" "active" "discarded"

all, active, or discarded

ids[]
Array of integers
location_id
integer

Only containers shelved at this location

accession_id
integer

Only containers linked to this accession

q
string

Filters by name

tags[]
Array of strings

Only containers carrying all of these tags

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "archive_containers": [
    ]
}

Create an archive container

Authorizations:
api_token
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
optional
name
string

What the container is called

description
string
location_id
integer

Where it is shelved

tag_list
Array of strings

Replaces the container's tags outright

Array of objects

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "location_id": 0,
  • "tag_list": [
    ],
  • "values": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "description": "string",
  • "location": {
    },
  • "tag_list": [
    ],
  • "values": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Fetch a single archive container

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "description": "string",
  • "location": {
    },
  • "tag_list": [
    ],
  • "values": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Update an archive container

Authorizations:
api_token
path Parameters
id
required
integer
Request Body schema: application/json
optional
name
string

What the container is called

description
string
location_id
integer

Where it is shelved

tag_list
Array of strings

Replaces the container's tags outright

Array of objects

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "location_id": 0,
  • "tag_list": [
    ],
  • "values": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "description": "string",
  • "location": {
    },
  • "tag_list": [
    ],
  • "values": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Discard an archive container

A soft delete. The container stays reachable with status=discarded, and can be restored.

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Restore a discarded archive container

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

List the accessions linked to a container, and how each one is linked

Authorizations:
api_token
path Parameters
id
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "archive_container_accessions": [
    ]
}

Link an accession to this container

Records that this accession's material is in this container. The same link is writable from the accession's end; it is one row either way, and linking something already linked answers with the link that is there.

Authorizations:
api_token
path Parameters
id
required
string
Request Body schema: application/json
required
accession_id
required
integer

The accession to link

description
string

What the link is, in the archivist's words

Responses

Request samples

Content type
application/json
{
  • "accession_id": 0,
  • "description": "string"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "description": "string",
  • "accession": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Update what a link says

Authorizations:
api_token
path Parameters
accession_id
required
integer
id
required
string
Request Body schema: application/json
optional
description
string

What the link is, in the archivist's words

Responses

Request samples

Content type
application/json
{
  • "description": "string"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "description": "string",
  • "accession": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Unlink an accession from this container

Removes the link. Neither the container nor the accession is touched.

Authorizations:
api_token
path Parameters
accession_id
required
integer
id
required
string

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

List the resources linked to a container, in the container's order

Authorizations:
api_token
path Parameters
id
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "archive_container_resources": [
    ]
}

archive_container_fields

Operations about archive_container_fields

List the account's archive container field definitions

Authorizations:
api_token
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

status
string
Default: "active"
Enum: "all" "active" "discarded"

all, active, or discarded

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "archive_container_fields": [
    ]
}

Define a new archive container field

name is how the field is addressed everywhere else and cannot be changed afterwards; it is lower-cased and underscored on the way in. label is what people see, and can be changed freely.

Authorizations:
api_token
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
required
name
required
string

How the field is addressed. Immutable once set.

label
required
string

What people see

field_type
required
string
Enum: "string" "text" "formatted_text" "date" "edtf_date" "integer" "decimal" "boolean" "lookup" "image" "authority_file" "url"

What kind of value it holds. Immutable once set.

multiple
boolean

Whether the field can hold more than one value

position
integer

Where it sits in the list

object

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "label": "string",
  • "field_type": "string",
  • "multiple": true,
  • "position": 0,
  • "settings": {
    }
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "field_type": "string",
  • "label": "string",
  • "position": 0,
  • "multiple": true,
  • "lookups": [
    ],
  • "settings": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Reorder the account's archive container fields

Positions are applied together, so the list never passes through a state where two fields claim one position.

Authorizations:
api_token
Request Body schema: application/json
required
required
Array of objects

Responses

Request samples

Content type
application/json
{
  • "fields": [
    ]
}

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Fetch a single archive container field definition

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "field_type": "string",
  • "label": "string",
  • "position": 0,
  • "multiple": true,
  • "lookups": [
    ],
  • "settings": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Update an archive container field

name is absent on purpose: values are stored against it, so changing one would orphan every value already written.

Authorizations:
api_token
path Parameters
id
required
integer
Request Body schema: application/json
optional
label
string

What people see

multiple
boolean

Whether the field can hold more than one value

position
integer

Where it sits in the list

object

Responses

Request samples

Content type
application/json
{
  • "label": "string",
  • "multiple": true,
  • "position": 0,
  • "settings": {
    }
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "field_type": "string",
  • "label": "string",
  • "position": 0,
  • "multiple": true,
  • "lookups": [
    ],
  • "settings": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Discard an archive container field

A soft delete. Values already written against it are left alone, and it can be restored.

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Restore a discarded archive container field

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

archive_accessions

Operations about archive_accessions

List the account's archive accessions

Authorizations:
api_token
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

status
string
Default: "active"
Enum: "all" "active" "discarded"

all, active, or discarded

stage
string
Enum: "awaiting_appraisal" "incoming" "processing" "completed" "declined"
ids[]
Array of integers
container_id
integer

Only accessions linked to this container

q
string

Filters by name

tags[]
Array of strings

Only accessions carrying all of these tags

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "archive_accessions": [
    ]
}

Create an archive accession

Authorizations:
api_token
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
optional
name
string

What the accession is called

description
string
stage
string
Enum: "awaiting_appraisal" "incoming" "processing" "completed" "declined"

Where it is in processing

tag_list
Array of strings

Replaces the accession's tags outright

Array of objects

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "stage": "awaiting_appraisal",
  • "tag_list": [
    ],
  • "values": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "stage": "awaiting_appraisal",
  • "description": "string",
  • "tag_list": [
    ],
  • "values": [
    ],
  • "resource_ids": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Fetch a single archive accession

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "stage": "awaiting_appraisal",
  • "description": "string",
  • "tag_list": [
    ],
  • "values": [
    ],
  • "resource_ids": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Update an archive accession

Authorizations:
api_token
path Parameters
id
required
integer
Request Body schema: application/json
optional
name
string

What the accession is called

description
string
stage
string
Enum: "awaiting_appraisal" "incoming" "processing" "completed" "declined"

Where it is in processing

tag_list
Array of strings

Replaces the accession's tags outright

Array of objects

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "stage": "awaiting_appraisal",
  • "tag_list": [
    ],
  • "values": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "stage": "awaiting_appraisal",
  • "description": "string",
  • "tag_list": [
    ],
  • "values": [
    ],
  • "resource_ids": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Discard an archive accession

A soft delete. The accession stays reachable with status=discarded, and can be restored.

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Restore a discarded archive accession

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Link a resource to an accession

Records that this resource came in with this accession. Linking twice is not an error.

Authorizations:
api_token
path Parameters
id
required
integer
Request Body schema: application/json
required
resource_id
required
string

The resource's UUID

Responses

Request samples

Content type
application/json
{
  • "resource_id": "string"
}

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Unlink a resource from an accession

Authorizations:
api_token
path Parameters
id
required
integer
resource_id
required
string

The resource's UUID

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

List the containers linked to an accession, and how each one is linked

Authorizations:
api_token
path Parameters
id
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "archive_accession_containers": [
    ]
}

Link a container to this accession

The same link as POST /archive_containers/:id/accessions, written from the other end. It is one row either way.

Authorizations:
api_token
path Parameters
id
required
string
Request Body schema: application/json
required
container_id
required
integer

The container to link

description
string

What the link is, in the archivist's words

Responses

Request samples

Content type
application/json
{
  • "container_id": 0,
  • "description": "string"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "description": "string",
  • "container": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Update what a link says

Authorizations:
api_token
path Parameters
container_id
required
integer
id
required
string
Request Body schema: application/json
optional
description
string

What the link is, in the archivist's words

Responses

Request samples

Content type
application/json
{
  • "description": "string"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "description": "string",
  • "container": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Unlink a container from this accession

Authorizations:
api_token
path Parameters
container_id
required
integer
id
required
string

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

archive_accession_fields

Operations about archive_accession_fields

List the account's archive accession field definitions

Authorizations:
api_token
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

status
string
Default: "active"
Enum: "all" "active" "discarded"

all, active, or discarded

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "archive_accession_fields": [
    ]
}

Define a new archive accession field

name is how the field is addressed everywhere else and cannot be changed afterwards; it is lower-cased and underscored on the way in. label is what people see, and can be changed freely.

Authorizations:
api_token
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
required
name
required
string

How the field is addressed. Immutable once set.

label
required
string

What people see

field_type
required
string
Enum: "string" "text" "formatted_text" "date" "edtf_date" "integer" "decimal" "boolean" "lookup" "image" "authority_file" "url"

What kind of value it holds. Immutable once set.

multiple
boolean

Whether the field can hold more than one value

position
integer

Where it sits in the list

object

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "label": "string",
  • "field_type": "string",
  • "multiple": true,
  • "position": 0,
  • "settings": {
    }
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "field_type": "string",
  • "label": "string",
  • "position": 0,
  • "multiple": true,
  • "lookups": [
    ],
  • "settings": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Reorder the account's archive accession fields

Positions are applied together, so the list never passes through a state where two fields claim one position.

Authorizations:
api_token
Request Body schema: application/json
required
required
Array of objects

Responses

Request samples

Content type
application/json
{
  • "fields": [
    ]
}

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Fetch a single archive accession field definition

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "field_type": "string",
  • "label": "string",
  • "position": 0,
  • "multiple": true,
  • "lookups": [
    ],
  • "settings": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Update an archive accession field

name is absent on purpose: values are stored against it, so changing one would orphan every value already written.

Authorizations:
api_token
path Parameters
id
required
integer
Request Body schema: application/json
optional
label
string

What people see

multiple
boolean

Whether the field can hold more than one value

position
integer

Where it sits in the list

object

Responses

Request samples

Content type
application/json
{
  • "label": "string",
  • "multiple": true,
  • "position": 0,
  • "settings": {
    }
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "field_type": "string",
  • "label": "string",
  • "position": 0,
  • "multiple": true,
  • "lookups": [
    ],
  • "settings": {
    },
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Discard an archive accession field

A soft delete. Values already written against it are left alone, and it can be restored.

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Restore a discarded archive accession field

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

authority_groups

Operations about authority_groups

List the account's authority groups

Authorizations:
api_token
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

status
string
Default: "active"
Enum: "all" "active" "discarded"

all, active, or discarded

ids[]
Array of integers

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "authority_groups": [
    ]
}

Create an authority group

A group is a kind of authority record — People, Places, Subjects — and the fields its records carry are defined separately.

Authorizations:
api_token
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
required
name
required
string

What the group is called

description
required
string

What belongs in it

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "description": "string",
  • "status": "active",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Fetch a single authority group

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "description": "string",
  • "status": "active",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Update an authority group

Authorizations:
api_token
path Parameters
id
required
integer
Request Body schema: application/json
optional
name
string
description
string

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "description": "string",
  • "status": "active",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Discard an authority group

A soft delete. Its records are left alone, and it can be restored.

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Restore a discarded authority group

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

List an authority group's records

Authorizations:
api_token
path Parameters
authority_group_id
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

status
string
Default: "active"
Enum: "all" "active" "discarded"

all, active, or discarded

q
string

Filters by value

roots
boolean

Only records at the top of the tree

parent_id
integer

Only the direct children of this record

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "authority_records": [
    ]
}

Create an authority record

The record's own fields are the ones its group defines, set through values. Records form a tree inside a group, so one may have a parent.

Authorizations:
api_token
path Parameters
authority_group_id
required
string
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
optional
parent_id
integer

The record this one sits under

Array of objects

Responses

Request samples

Content type
application/json
{
  • "parent_id": 0,
  • "values": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "authority_group_id": 0,
  • "parent_id": 0,
  • "depth": 0,
  • "children_count": 0,
  • "status": "active",
  • "title": "string",
  • "breadcrumb": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "values": [
    ]
}

Fetch a single authority record

Authorizations:
api_token
path Parameters
id
required
integer
authority_group_id
required
string

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "authority_group_id": 0,
  • "parent_id": 0,
  • "depth": 0,
  • "children_count": 0,
  • "status": "active",
  • "title": "string",
  • "breadcrumb": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "values": [
    ]
}

Update an authority record

Authorizations:
api_token
path Parameters
id
required
integer
authority_group_id
required
string
Request Body schema: application/json
optional
parent_id
integer

The record this one sits under

Array of objects

Responses

Request samples

Content type
application/json
{
  • "parent_id": 0,
  • "values": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "authority_group_id": 0,
  • "parent_id": 0,
  • "depth": 0,
  • "children_count": 0,
  • "status": "active",
  • "title": "string",
  • "breadcrumb": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "values": [
    ]
}

Discard an authority record

A soft delete. It stays reachable with status=discarded, and can be restored.

Authorizations:
api_token
path Parameters
id
required
integer
authority_group_id
required
string

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Move an authority record within its group's tree

target_id is required for every position but root, and index additionally for child_with_index. A record cannot move to another group.

Authorizations:
api_token
path Parameters
id
required
integer
authority_group_id
required
string
Request Body schema: application/json
required
position
required
string
Enum: "child_of" "left_of" "right_of" "root" "child_with_index"

Where to put it, relative to target_id

target_id
integer

The record to move relative to

index
integer

Which child to become, for child_with_index

Responses

Request samples

Content type
application/json
{
  • "position": "child_of",
  • "target_id": 0,
  • "index": 0
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "authority_group_id": 0,
  • "parent_id": 0,
  • "depth": 0,
  • "children_count": 0,
  • "status": "active",
  • "title": "string",
  • "breadcrumb": [
    ],
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z",
  • "values": [
    ]
}

Restore a discarded authority record

Authorizations:
api_token
path Parameters
id
required
integer
authority_group_id
required
string

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

List an authority group's field definitions

Authorizations:
api_token
path Parameters
authority_group_id
required
string
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

status
string
Default: "active"
Enum: "all" "active" "discarded"

all, active, or discarded

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "authority_group_fields": [
    ]
}

Define a new authority group field

name is how the field is addressed everywhere else and cannot be changed afterwards; it is lower-cased and underscored on the way in.

Authorizations:
api_token
path Parameters
authority_group_id
required
string
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
required
name
required
string

How the field is addressed. Immutable once set.

label
required
string

What people see

field_type
required
string
Enum: "string" "text" "formatted_text" "date" "edtf_date" "integer" "decimal" "boolean" "lookup" "image" "authority_file" "url"

What kind of value it holds. Immutable once set.

linked_authority_group_id
integer

For a field whose value is another group's record

multiple
boolean

Whether the field can hold more than one value

position
integer

Where it sits in the list

object

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "label": "string",
  • "field_type": "string",
  • "linked_authority_group_id": 0,
  • "multiple": true,
  • "position": 0,
  • "settings": {
    }
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "field_type": "string",
  • "label": "string",
  • "position": 0,
  • "multiple": true,
  • "authority_group_id": 0,
  • "lookups": [
    ],
  • "linked_authority_group_id": 0,
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Reorder an authority group's fields

Positions are applied together, so the list never passes through a state where two fields claim one position.

Authorizations:
api_token
path Parameters
authority_group_id
required
string
Request Body schema: application/json
required
required
Array of objects

Responses

Request samples

Content type
application/json
{
  • "fields": [
    ]
}

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Fetch a single authority group field definition

Authorizations:
api_token
path Parameters
id
required
integer
authority_group_id
required
string

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "field_type": "string",
  • "label": "string",
  • "position": 0,
  • "multiple": true,
  • "authority_group_id": 0,
  • "lookups": [
    ],
  • "linked_authority_group_id": 0,
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Update an authority group field

name is absent on purpose: values are stored against it, so changing one would orphan every value already written.

Authorizations:
api_token
path Parameters
id
required
integer
authority_group_id
required
string
Request Body schema: application/json
optional
label
string

What people see

linked_authority_group_id
integer
multiple
boolean

Whether the field can hold more than one value

position
integer

Where it sits in the list

object

Responses

Request samples

Content type
application/json
{
  • "label": "string",
  • "linked_authority_group_id": 0,
  • "multiple": true,
  • "position": 0,
  • "settings": {
    }
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "status": "active",
  • "field_type": "string",
  • "label": "string",
  • "position": 0,
  • "multiple": true,
  • "authority_group_id": 0,
  • "lookups": [
    ],
  • "linked_authority_group_id": 0,
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Discard an authority group field

A soft delete. Values already written against it are left alone.

Authorizations:
api_token
path Parameters
id
required
integer
authority_group_id
required
string

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

Restore a discarded authority group field

Authorizations:
api_token
path Parameters
id
required
integer
authority_group_id
required
string

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

notes

Operations about notes

List the account's notes

Authorizations:
api_token
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

notable_type
string
Enum: "Curtis::Resource" "Archive::Container" "Archive::Location" "Archive::Accession"

Only notes on this kind of thing

notable_id
string

Only notes on this one thing; requires notable_type

favourited
boolean

Only notes marked favourite

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "notes": [
    ]
}

Write a note

Notes hang off a resource, container, location or accession. The read surface lists them as one account-wide collection, so they are written the same way rather than under each kind of thing.

Authorizations:
api_token
header Parameters
idempotency_key
string

Repeat a create safely: the same key replays the first response for 24 hours.

Request Body schema: application/json
required
notable_type
required
string
Enum: "Curtis::Resource" "Archive::Container" "Archive::Location" "Archive::Accession"

What kind of thing the note is about

notable_id
required
string

Which one. A UUID for a resource, an id for anything else.

body
required
string
title
string
favourited
boolean
Default: false

Responses

Request samples

Content type
application/json
{
  • "notable_type": "Curtis::Resource",
  • "notable_id": "string",
  • "body": "string",
  • "title": "string",
  • "favourited": false
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "title": "string",
  • "body": "string",
  • "favourited": true,
  • "notable_type": "Curtis::Resource",
  • "notable_id": "string",
  • "user_id": 0,
  • "user_name": "string",
  • "creator_type": "User",
  • "creator_name": "string",
  • "updated_by_user_id": 0,
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Fetch a single note

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "title": "string",
  • "body": "string",
  • "favourited": true,
  • "notable_type": "Curtis::Resource",
  • "notable_id": "string",
  • "user_id": 0,
  • "user_name": "string",
  • "creator_type": "User",
  • "creator_name": "string",
  • "updated_by_user_id": 0,
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Update a note

Records the key as the last editor. The note's original author is unchanged.

Authorizations:
api_token
path Parameters
id
required
integer
Request Body schema: application/json
optional
body
string
title
string
favourited
boolean

Responses

Request samples

Content type
application/json
{
  • "body": "string",
  • "title": "string",
  • "favourited": true
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "title": "string",
  • "body": "string",
  • "favourited": true,
  • "notable_type": "Curtis::Resource",
  • "notable_id": "string",
  • "user_id": 0,
  • "user_name": "string",
  • "creator_type": "User",
  • "creator_name": "string",
  • "updated_by_user_id": 0,
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Delete a note

Discarding a note is a delete, not an archive: it stops being reachable here.

Authorizations:
api_token
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "errors": [
    ]
}

activities

Operations about activities

List what has changed in the account's archive, and who changed it

Authorizations:
api_token
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

trackable_type
string
Enum: "Archive::Container" "Archive::Location" "Archive::Accession"

Only changes to this kind of record

trackable_id
integer

Only changes to this one record; requires trackable_type

key
string
Enum: "archive_container.create" "archive_container.destroy" "archive_container.update" "archive_container.discard" "archive_container.undiscard" "archive_container.move" "archive_container.note_added" "archive_container.accession_linked" "archive_container.accession_unlinked" "archive_container.resource_linked" "archive_container.resource_unlinked" "archive_container.resources_reordered" "archive_location.create" "archive_location.destroy" "archive_location.update" "archive_location.discard" "archive_location.undiscard" "archive_location.note_added" "archive_accession.create" "archive_accession.destroy" "archive_accession.update" "archive_accession.discard" "archive_accession.undiscard" "archive_accession.note_added" "archive_accession.container_linked" "archive_accession.container_unlinked"

Only this kind of change

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "activities": [
    ]
}

tags

Operations about tags

List the tags used on the account's archive records, with their counts

Authorizations:
api_token
query Parameters
page
integer
Default: 1

Page number, from 1

per_page
integer
Default: 25

Results per page, to a maximum of 1000

model
required
string
Enum: "Archive::Container" "Archive::Location" "Archive::Accession"

Which kind of record to count tags over

q
string

Filters by tag name

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "tags": [
    ]
}