Atlas JSON-RPC service reference

Atlas is accessible via a subset of the JSON-RPC 1.0 protocol over HTTP.

add_user

Parameters
  • project_id (number)
  • user_name (string)
  • first_name (string defaults to null)
  • last_name (string defaults to null)
  • email (string defaults to null)
  • usable_password (boolean defaults to false)
Return type
boolean

Add a user to the system.

Calling user must have ROLE_ADMIN

↑ back to available methods

all_study_translation_texts

Parameters
  • study_translation_id (number)
Return type
array[object]

Get all study translation text for the given study translation.

↑ back to available methods

all_study_translations

Parameters
  • study_id (number)
Return type
array[object]

Get all study version for the given study.

↑ back to available methods

apply_typographeur

Parameters
  • body (string)
Return type
string
No documentation available

↑ back to available methods

archive_study

Parameters
  • study_id (number)
Return type
object
No documentation available

↑ back to available methods

ask_proofreading

Parameters
  • study_translation_id (number)
Return type
boolean

Ask for proofreading. This is intended for author and editor.

↑ back to available methods

cancel_proofreading

Parameters
  • study_translation_id (number)
Return type
boolean

Cancel a demand for proofreading (reverts version status to draft). This is intended for author and editor.

↑ back to available methods

concept

Parameters
  • ark (string)
Return type
object

Get a concept

↑ back to available methods

create_study

Parameters
  • title (string defaults to null)
  • language_iso639_1 (string defaults to null)
  • topic_id (number defaults to null)
  • project_id (number defaults to null)
  • authors (List[int] defaults to null)
Return type
object

Add a new study

↑ back to available methods

create_study_translation

Parameters
  • title (string defaults to null)
  • language_iso639_1 (string defaults to null)
  • study_id (number defaults to null)
  • translators (List[int] defaults to null)
Return type
object

Create a new study translation

↑ back to available methods

create_topic

Parameters
  • parent_topic_id (number defaults to null)
  • project_id (number defaults to null)
  • translations (object defaults to null)
  • rank (number defaults to 0)
  • jama_visual_resource_id (number defaults to null)
Return type
object

Create a new topic.

"translations" is a lang_code => title value dict:

{"fr": "titre du thème", "en": "topic title"}

↑ back to available methods

current_user

Parameters
no parameters
Return type
object

Get infos about current user

↑ back to available methods

delete_study

Parameters
  • study_id (number)
Return type
boolean

Remove a study (keep the associated Jama collection, this is a soft delete)

↑ back to available methods

delete_study_translation

Parameters
  • study_translation_instance (atlas.models.StudyTranslation)
  • delete_associated_jama_collection (boolean defaults to false)
Return type
boolean

Remove a study translation and optionally the associated Jama collection.

↑ back to available methods

delete_topic

Parameters
  • topic_id (number)
Return type
boolean
No documentation available

↑ back to available methods

delete_user

Parameters
  • project_id (number)
  • user_id (number)
Return type
boolean
No documentation available

↑ back to available methods

jama_activate_rpc_access

Parameters
  • user_name (string)
  • api_key (string)
Return type
boolean

Add access to the RPC API for the given username with the given API key. A new user will be created if none is available with given username.

Requires superuser.

↑ back to available methods

jama_add_collection

Parameters
  • title (string)
  • parent_id (number)
Return type
object

Create a new collection based on 'title' and parent_id

Returns either the serialized new collection of null if parent does not exist.

Example output:

{ "id": 3, "title": "paintings", "resources_count": 0, "children_count": 0, "descendants_count": 0, "descendants_resources_count": 0, "parent": null, "project_id": 1, "children": null, "metas": [], "public_access": false, "tags": [], }

↑ back to available methods

jama_add_collection_from_path

Parameters
  • path (string)
  • project_id (number)
Return type
array[object]

Will take a path such as '/photos/arts/paintings/' and build the corresponding hierarchy of collections. The hierarchy is returned as a list of serialized collections.

Beware: Because the collections are serialized before their children, all the children/descendants counts are set to 0.

Example output:

[ { "id": 1, "title": "photos", "resources_count": 0, "children_count": 0, "descendants_count": 0, "descendants_resources_count": 0, "parent": null, "project_id": 1, "children": null, "metas": [], "public_access": false, "tags": [], }, { "id": 2, "title": "arts", "resources_count": 0, "children_count": 0, "descendants_count": 0, "descendants_resources_count": 0, "parent": 1, "project_id": 1, "children": null, "metas": [], "public_access": false, "tags": [], }, { "id": 3, "title": "paintings", "resources_count": 0, "children_count": 0, "descendants_count": 0, "descendants_resources_count": 0, "parent": 2, "project_id": 1, "children": null, "metas": [], "public_access": false, "tags": [], }, ]

↑ back to available methods

jama_add_meta_to_collection

Parameters
  • collection_id (number)
  • meta_id (number)
  • meta_value (string)
  • recursive (boolean defaults to false)
Return type
number

Add a meta value to a collection given their ids.

If recursive is True, the meta will be added to all descendants, collections and resources alike.

↑ back to available methods

jama_add_meta_to_resource

Parameters
  • resource_id (number)
  • meta_id (number)
  • meta_value (string)
Return type
number

Add a meta value to a resource given their ids.

↑ back to available methods

jama_add_meta_to_selection

Parameters
  • from_collection_id (number)
  • selection (object)
  • meta_id (number)
  • meta_value (string)
Return type
boolean

Use such a dict for selection: { "include": { "resources_ids": [3493, 159] "collections_ids:" [20, 31] }, "exclude": { "resources_ids": [12, 10, 15] "collections_ids:" [4, 254, 17] } }

↑ back to available methods

jama_add_metadata

Parameters
  • title (string)
  • metas_set_id (number)
  • metadata_type_id (number defaults to null)
Return type
number

Add a new metadata to metadata set.

Set optional 'metadatatypeid'. Defaults to string type.

↑ back to available methods

jama_add_metadataset

Parameters
  • title (string)
  • project_id (number)
Return type
number

Create new metadata set from title.

↑ back to available methods

jama_add_resource_to_collection

Parameters
  • resource_id (number)
  • collection_id (number)
Return type
boolean

Add a resource to a collection given ids.

↑ back to available methods

jama_add_tag_to_collection

Parameters
  • tag_uid (string)
  • collection_id (number)
Return type
boolean

Add tag to a collection based on tag uid and collection id.

↑ back to available methods

jama_add_tag_to_resource

Parameters
  • tag_uid (string)
  • resource_id (number)
Return type
boolean

Add tag to a resource based on tag uid and resource id.

↑ back to available methods

jama_ancestors_from_collection

Parameters
  • collection_id (number)
  • include_self (boolean defaults to false)
Return type
array[object]

Get ancestors from collection id as a list of serialized collections.

If 'include_self' is true, will add the current collection at the begining.

Example output:

[ { "id": 1, "title": "photos", "resources_count": 0, "children_count": 0, "descendants_count": 0, "descendants_resources_count": 0, "parent": null, "children": null, "metas": [], "public_access": false, "tags": [], }, { "id": 2, "title": "arts", "resources_count": 0, "children_count": 0, "descendants_count": 0, "descendants_resources_count": 0, "parent": 1, "children": null, "metas": [], "public_access": false, "tags": [], }, { "id": 3, "title": "paintings", "resources_count": 0, "children_count": 0, "descendants_count": 0, "descendants_resources_count": 0, "parent": 2, "children": null, "metas": [], "public_access": false, "tags": [], }, ]

↑ back to available methods

jama_ancestors_from_resource

Parameters
  • resource_id (number)
Return type
array[object]

Get ancestors from resource id as a list of serialized collections.

Example output:

[ { "id": 1, "title": "photos", "resources_count": 0, "children_count": 0, "descendants_count": 0, "descendants_resources_count": 0, "parent": null, "children": null, "metas": [], "public_access": false, "tags": [], }, { "id": 2, "title": "arts", "resources_count": 0, "children_count": 0, "descendants_count": 0, "descendants_resources_count": 0, "parent": 1, "children": null, "metas": [], "public_access": false, "tags": [], }, { "id": 3, "title": "paintings", "resources_count": 0, "children_count": 0, "descendants_count": 0, "descendants_resources_count": 0, "parent": 2, "children": null, "metas": [], "public_access": false, "tags": [], }, ]

↑ back to available methods

jama_auto_find_rotate_angle

Parameters
  • resource_id (number)
Return type
number

Tries to determine skew angle of image with text.

↑ back to available methods

jama_change_collection_meta_value

Parameters
  • meta_value_id (number)
  • meta_value (string)
Return type
boolean

Change the value of a meta for a collection.

↑ back to available methods

jama_change_resource_meta_value

Parameters
  • meta_value_id (number)
  • meta_value (string)
Return type
boolean

Change the value of a meta for a resource

↑ back to available methods

jama_collection

Parameters
  • collection_id (number)
Return type
object

Get a particular collection given its id.

Example output:

{ "id": 2, "title": "art works", "resources_count": 23, "children_count": 5, "parent": 1, "children": None, "metas": [], "public_access": False, "tags": [], }

↑ back to available methods

jama_collection_stats

Parameters
  • collection_id (number)
Return type
object

Get infos from given collection:

↑ back to available methods

jama_collections

Parameters
  • parent_id (number)
  • recursive (boolean defaults to false)
  • limit_from (number defaults to 0)
  • limit_to (number defaults to 2000)
  • flat_list (boolean defaults to false)
  • only_published (boolean defaults to false)
  • order_by (string defaults to 'title')
  • only_deleted_items (boolean defaults to false)
Return type
array[object]

Return the user's collections under the parent collection specified by 'parent_id'. If 'recursive' is true, will return all the descendants recursively in the 'children' key. If recursive is false, 'children' is null.

Special case:

If flatlist is True, collections are returned as a flat list and parentid is effectively IGNORED.

Example output:

[ { "id": 2, "title": "art works", "resources_count": 23, "children_count": 5, "descendants_count": 12, "descendants_resources_count": 58, "parent": 1, "children": None, "metas": [], "public_access": False, "tags": [], } ]

↑ back to available methods

jama_create_project

Parameters
  • project_label (string)
  • project_description (string)
Return type
object

Create a new project.

Requires superuser.

↑ back to available methods

jama_deactivate_rpc_access

Parameters
  • user_name (string)
  • api_key (string)
Return type
boolean

Deactivate access to the RPC API for the given user name and API key. Only the access (API key) is removed, not the user.

Requires superuser.

↑ back to available methods

jama_delete_collection

Parameters
  • collection_id (number)
  • recursive (boolean defaults to false)
Return type
object

Delete collection given its id.

Collection MUST be empty of any content (no children collections and no resources), unless the 'recursive'parameter is set to True, in which case ALL descendants will be deleted.

↑ back to available methods

jama_delete_metadata

Parameters
  • metadata_id (number)
Return type
boolean

Delete metadata based on its id.

↑ back to available methods

jama_delete_metadataset

Parameters
  • metadataset_id (number)
  • recursive (boolean defaults to false)
Return type
object

Delete metadata set based on its id. Optional recursive call.

↑ back to available methods

jama_delete_project_property

Parameters
  • project_id (number)
  • property_key (string)
Return type
boolean

Delete a property from the project.

property_key is NOT case sensitive, ie. "ProPertY" is the same as "pRoperTy" or "property".

↑ back to available methods

jama_delete_resource

Parameters
  • resource_id (number)
Return type
boolean

Permanently (soft) delete a resource given its id.

↑ back to available methods

jama_delete_role

Parameters
  • project_id (number)
  • role_label (string)
Return type
boolean

Delete role within given project.

Requires superuser

↑ back to available methods

jama_delete_tag

Parameters
  • uid (string)
Return type
boolean

Remove (delete) a tag based on its uid.

Beware: This will remove ALL associations with the tag.

↑ back to available methods

jama_has_permission

Parameters
  • project_id (number)
  • permission (string)
Return type
boolean

Test current user for given permission.

↑ back to available methods

jama_infos

Parameters
no parameters
Return type
object

Get infos for dependent Jama project.

Return: {"project_id": 1}

↑ back to available methods

jama_list_annotations

Parameters
  • id (number)
Return type
List
No documentation available

↑ back to available methods

jama_list_permissions

Parameters
no parameters
Return type
array[object]

Lists all available permissions in the application:

[ {'id': 1, 'label': 'collection.create'}, {'id': 2, 'label': 'collection.read'}, {'id': 3, 'label': 'collection.update'}, {'id': 4, 'label': 'collection.delete'}, {'id': 5, 'label': 'resource.create'}, {'id': 6, 'label': 'resource.read'}, {'id': 7, 'label': 'resource.update'}, {'id': 8, 'label': 'resource.delete'}, {'id': 9, 'label': 'metadata.create'}, {'id': 10, 'label': 'metadata.read'}, {'id': 11, 'label': 'metadata.update'}, {'id': 12, 'label': 'metadata.delete'}, {'id': 13, 'label': 'metadataset.create'}, {'id': 14, 'label': 'metadataset.read'}, {'id': 15, 'label': 'metadataset.update'}, {'id': 16, 'label': 'metadataset.delete'}, {'id': 17, 'label': 'file.create'}, {'id': 18, 'label': 'file.read'}, {'id': 19, 'label': 'file.update'}, {'id': 20, 'label': 'file.delete'}, {'id': 21, 'label': 'tag.create'}, {'id': 22, 'label': 'tag.read'}, {'id': 23, 'label': 'tag.update'}, {'id': 24, 'label': 'tag.delete'}, {'id': 25, 'label': 'file.download_source'} ]

↑ back to available methods

jama_list_roles

Parameters
  • project_id (number)
Return type
array[object]

Fetch all roles defined in the project, no matter the user.

↑ back to available methods

jama_meta_count

Parameters
  • metadata_id (number)
  • collection_id (number)
Return type
object

Count metadata usage.

↑ back to available methods

jama_metadata

Parameters
  • metadata_id (number)
Return type
object

Get one particular metadata given its id.

Example output:

{ "id": 2, "title": "ICC_Profile:GrayTRC", "set_id": 1, "set_title": "exif metas", "rank": 1, "project_id": 1, }

↑ back to available methods

jama_metadatas

Parameters
  • metadata_set_id (number)
Return type
array[object]

Get all metadatas given a metadata set id.

Metadatas MAY be ordered with the rank attribute.

Example output:

[ { "id": 1, "title": "PNG:ProfileName", "set_id": 1, "set_title": "exif metas", "rank": 0, "project_id": 1, }, { "id": 2, "title": "ICC_Profile:GrayTRC", "set_id": 1, "set_title": "exif metas", "rank": 1, "project_id": 1, } ]

↑ back to available methods

jama_metadatasets

Parameters
  • project_id (number)
Return type
array[object]

Get the list of all the project's metadata sets. For each metadatas set, the number of metadatas is given in metas_count.

Example output:

[ {"id": 1, "title": "exif metas", "project_id": 1, "metas_count": 23}, {"id": 2, "title": "dublin core", "project_id": 1, "metas_count": 17} ]

↑ back to available methods

jama_metadatatypes

Parameters
no parameters
Return type
array[object]

Get a list of available data types

Example output:

[ {"id": 1, "title": "text"}, {"id": 2, "title": "numeric"}, ]

↑ back to available methods

jama_move_collection

Parameters
  • child_collection_id (number)
  • parent_collection_id (number)
Return type
boolean

Move a collection from a parent to another.

Will raise ServiceException in the following cases:

↑ back to available methods

jama_move_items

Parameters
  • from_collection_id (number)
  • to_collection_id (number)
  • collections_ids (List[int])
  • resources_ids (List[int])
Return type
Dict[str, Dict]

Move items (collections or resources) from one Collection to another

↑ back to available methods

jama_move_selection

Parameters
  • from_collection_id (number)
  • selection (object)
  • to_collection_id (number)
Return type
Dict[str, Dict]

Will mass move items (resources AND collections) based on parent collection and destination collection

Use such an object for inclusion/exclusion:

{ "include": { "resources_ids": [3493, 159] "collections_ids:" [20, 31] }, "exclude": { "resources_ids": [12, 10, 15] "collections_ids:" [4, 254, 17] } }

↑ back to available methods

jama_picture_rotate_crop

Parameters
  • resource_id (number)
  • rotation (number defaults to 0)
  • top_crop (number defaults to 0)
  • right_crop (number defaults to 0)
  • bottom_crop (number defaults to 0)
  • left_crop (number defaults to 0)
Return type
object

Rotate and crop an image. The resulting image then replaces the original in the current resource.

Will return the resource upon success. Throws a ServiceException otherwise.

↑ back to available methods

jama_ping

Parameters
no parameters
Return type
string

This is a test method to ensure the server-clients communication works. Will return "pong [name authenticated of user]"

Example output:

pong john

↑ back to available methods

jama_project_properties

Parameters
  • project_id (number)
Return type
array[object]

Get ALL properties from a project.

↑ back to available methods

jama_project_property

Parameters
  • project_id (number)
  • property_key (string)
Return type
object

Get a property value from the project.

property_key is NOT case sensitive, ie. "ProPertY" is the same as "pRoperTy" or "property".

Will raise an exception if property does not exist.

↑ back to available methods

jama_project_stats

Parameters
  • project_id (number)
Return type
object

Get infos from given project:

↑ back to available methods

jama_projects_user_permissions

Parameters
no parameters
Return type
array[object]

Get all rights for the current user.

Example output:

[ { 'project': {'id': 7, 'label': 'john doe main project'}, 'role': {'id': 7, 'label': 'admin', 'permissions': [{"id": 1, "label": "do_anything"}]}, 'user': 'john doe' } ]

↑ back to available methods

jama_public_collections

Parameters
  • project_id (number)
Return type
array[object]

Get public collections

↑ back to available methods

jama_publish_collection

Parameters
  • collection_id (number)
Return type
boolean

Mark a collection as public

↑ back to available methods

jama_recycle_bin

Parameters
  • project_id (number)
Return type
array[object]

Gets deleted elements:

↑ back to available methods

jama_remove_meta_value_from_collection

Parameters
  • collection_id (number)
  • meta_value_id (number)
  • recursive (boolean defaults to false)
Return type
boolean

Remove a meta value from a collection given their ids.

↑ back to available methods

jama_remove_meta_value_from_resource

Parameters
  • resource_id (number)
  • meta_value_id (number)
Return type
boolean

Remove a meta_value from a resource given their ids.

↑ back to available methods

jama_remove_meta_value_from_selection

Parameters
  • from_collection_id (number)
  • selection (object)
  • meta_value_id (number)
Return type
boolean

Use such a dict for selection: { "include": { "resources_ids": [3493, 159] "collections_ids:" [20, 31] }, "exclude": { "resources_ids": [12, 10, 15] "collections_ids:" [4, 254, 17] } }

↑ back to available methods

jama_remove_resource_from_collection

Parameters
  • resource_id (number)
  • collection_id (number)
Return type
boolean

Remove a resource from a collection given ids.

↑ back to available methods

jama_remove_selection

Parameters
  • parent_collection_id (number)
  • selection (object)
Return type
boolean

Will mass remove items (resources AND collections) based on parent collection

Use such an object for inclusion/exclusion:

{ "include": { "resources_ids": [3493, 159] "collections_ids:" [20, 31] }, "exclude": { "resources_ids": [12, 10, 15] "collections_ids:" [4, 254, 17] } }

deleteCollection (with recursion) and deleteResource are used under the hood.

The parent collection is left as-is.

↑ back to available methods

jama_remove_tag_from_collection

Parameters
  • tag_uid (string)
  • collection_id (number)
Return type
boolean

Remove tag from a collection based on tag uid and collection id.

↑ back to available methods

jama_remove_tag_from_resource

Parameters
  • tag_uid (string)
  • resource_id (number)
Return type
boolean

Remove tag from a resource based on tag uid and resource id.

↑ back to available methods

jama_rename_collection

Parameters
  • collection_id (number)
  • title (string)
Return type
boolean

Rename a collection (ie. change its title).

↑ back to available methods

jama_rename_meta

Parameters
  • meta_id (number)
  • title (string)
Return type
boolean

Rename a metadata (ie. change its title).

↑ back to available methods

jama_rename_resource

Parameters
  • resource_id (number)
  • title (string)
Return type
boolean

Rename a resource (ie. change its title).

↑ back to available methods

jama_replace_file

Parameters
  • from_resource_id (number)
  • to_resource_id (number)
Return type
boolean

Replace a file by another using two existing resources.

The two resources are expected to be of File type. Then the following operations are performed:

Such that all title/metas/tags/collections of the destination resource instance are untouched, excluding exif metas that are transfered from the source.

↑ back to available methods

jama_resource

Parameters
  • resource_id (number)
Return type
object

Get a resource given its id.

Example output (file resource):

{ "id": 1, "title": "letter", "original_name": "letter.txt", "type": "text/plain", "hash": "0dd93a59aeaccfb6d35b1ff5a49bde1196aa90dfef02892f9aa2ef4087d8738e", "metas": null, "urls": [], "tags": [], }

↑ back to available methods

jama_resources

Parameters
  • collection_id (number)
  • include_metas (boolean defaults to false)
  • limit_from (number defaults to 0)
  • limit_to (number defaults to 2000)
  • order_by (string defaults to 'title')
  • only_deleted_items (boolean defaults to false)
  • only_tags (array[string] defaults to null)
Return type
array[object]

Get all resources from a collection.

If 'includemetas' is true, will return the resources metadatas. If 'includemetas' is false, 'metas' will be null.

Different resources types may have different object keys. The bare minimum is 'id', 'title' and 'tags'.

Example output (file resource):

[ { "id": 1, "title": "letter", "original_name": "letter.txt", "type": "text/plain", "hash": "0dd93a59aeaccfb6d35b1ff5a49bde1196aa90dfef02892f9aa2ef4087d8738e", "metas": null, "urls": [], "tags": [], } ]

↑ back to available methods

jama_restore_collection

Parameters
  • collection_id (number)
  • destination_collection_id (number)
Return type
boolean

Restore a deleted collection from the recycle bin

↑ back to available methods

jama_restore_resource

Parameters
  • resource_id (number)
  • destination_collection_id (number)
Return type
boolean

Restore a deleted resource from the recycle bin

↑ back to available methods

jama_set_is_oai_record

Parameters
  • collection_id (number)
  • is_oai_record (boolean defaults to true)
Return type
boolean

Set/unset the collection as a OAI-PMH record. The creation date will be used in OAI-PMH requests.

↑ back to available methods

jama_set_metas_to_collection

Parameters
  • collection_id (number)
  • metas (array[object])
  • recursive (boolean defaults to false)
Return type
boolean

Sets all metas for a unique metadata set.

Metas is a list of metadata id => metadata value dictionaries.

All metas must share the same metadata set.

If recursive is True, the meta will be added to all descendants, collections and resources alike.

↑ back to available methods

jama_set_metas_to_resource

Parameters
  • resource_id (number)
  • metas (array[object])
Return type
boolean

Sets all metas for a unique metadata set.

Metas is a list of metadata id => metadata value dictionaries.

All metas must share the same metadata set.

↑ back to available methods

jama_set_project_property

Parameters
  • project_id (number)
  • property_key (string)
  • property_value (object)
Return type
object

Set a property value to the project.

property_key is NOT case sensitive, ie. "ProPertY" is the same as "pRoperTy" or "property".

↑ back to available methods

jama_set_representative_resource

Parameters
  • collection_id (number)
  • resource_id (number defaults to null)
Return type
boolean

Choose a Resource that is the best representation of a collection. Typical use case: set a miniature for a collection.

The Resource does not have to be contained in the collection.

Resource id may be set set to None/Null.

↑ back to available methods

jama_set_role

Parameters
  • project_id (number)
  • role_label (string)
  • permissions (List[int])
Return type
object

Create or update a role on a project, with the given permissions.

Requires superuser.

↑ back to available methods

jama_set_tag

Parameters
  • uid (string)
  • project_id (number)
  • label (string defaults to null)
  • ark (string defaults to null)
Return type
object

Get or create a Tag by uid (unique identifier). 'label' is an optional human-readable name.

Example output:

{ "id": 1, "uid": "PAINTINGS", "label": "peintures", "ark": null, }

↑ back to available methods

jama_supported_file_types

Parameters
no parameters
Return type
array[object]

Get a list of all supported file type, complete with their mimes.

Example output:

[ { "mime": "image/jpeg", "extensions": [".jpg", ".jpeg"], "iiif_support": true, } ]

↑ back to available methods

jama_tags

Parameters
  • project_id (number)
Return type
array[object]

Returns all tags available in the project.

Example output:

[ { "id": 1, "uid": "PAINTINGS", "label": "peintures", "ark": null, }, { "id": 2, "uid": "PHOTOS", "label": "photos", "ark": null, } ]

↑ back to available methods

jama_unpublish_collection

Parameters
  • collection_id (number)
Return type
boolean

Mark a collection as private

↑ back to available methods

jama_upload_infos

Parameters
  • sha256_hash (string)
  • project_id (number)
Return type
object

Get information for an upload based on the file hash.

Example output:

{ "status": "not available", "id": null, "available_chunks":[] }

"status" being one of "not available", "available" or "incomplete"

↑ back to available methods

jama_user_tasks_status

Parameters
  • project_id (number)
Return type
List

Returns list of user tasks.

↑ back to available methods

languages

Parameters
no parameters
Return type
array[object]

Get all available languages.

Return: ["fr", "en", "es"]

↑ back to available methods

list_studies

Parameters
  • role_label (string)
  • project_id (number)
  • digest (boolean defaults to true)
  • from_item (number defaults to 0)
  • to_item (number defaults to 20)
  • search (string defaults to null)
  • sort_by (array[object] defaults to null)
  • filtered_by (object defaults to null)
Return type
dict[str, list[dict]]

List all studies according to current user role

↑ back to available methods

list_topics

Parameters
  • project_id (number)
  • recursive (boolean defaults to true)
Return type
array[object]
No documentation available

↑ back to available methods

management_events

Parameters
  • from_item (number defaults to 0)
  • to_item (number defaults to 10)
  • project_id (number defaults to null)
Return type
dict[str, list[dict] | typing.Any]
No documentation available

↑ back to available methods

move_topic

Parameters
  • topic_id (number)
  • to_parent_id (number)
  • rank (number defaults to null)
Return type
boolean
No documentation available

↑ back to available methods

order_topics

Parameters
  • topics (array[object])
Return type
boolean
No documentation available

↑ back to available methods

permissions

Parameters
no parameters
Return type
array[string]
No documentation available

↑ back to available methods

project_roles

Parameters
  • project_id (number)
Return type
array[object]

List all roles available in a project

↑ back to available methods

projects

Parameters
no parameters
Return type
array[object]

List all projects for current user

↑ back to available methods

publish_atlas

Parameters
  • project_id (number)
Return type
object

extract and copy Atlas pages to the production server

↑ back to available methods

restore_archived_study

Parameters
  • study_id (number)
Return type
object
No documentation available

↑ back to available methods

restore_study

Parameters
  • study_id (number)
Return type
boolean

Restore a study

↑ back to available methods

search_concepts

Parameters
  • query (string)
  • lang (string)
  • limit_from (number defaults to 0)
  • limit_to (number defaults to 2000)
Return type
List

Search concepts

↑ back to available methods

set_roles

Parameters
  • project_id (number)
  • user_id (number)
  • roles_ids (List[int])
Return type
boolean

Only admin role is allowed to call set_roles.

↑ back to available methods

set_topic_rank

Parameters
  • topic_id (number)
  • rank (number)
Return type
boolean
No documentation available

↑ back to available methods

set_topic_visual

Parameters
  • topic_id (number)
  • jama_visual_resource_id (number)
Return type
boolean
No documentation available

↑ back to available methods

set_translation_status

Parameters
  • study_translation_id (number)
  • status_id (number)
Return type
boolean

This is intended for author and editor.

↑ back to available methods

study

Parameters
  • study_id (number)
Return type
object

Get a study

↑ back to available methods

study_translation

Parameters
  • study_translation_id (number)
Return type
object

Get a study version

↑ back to available methods

study_translation_text

Parameters
  • study_translation_text_id (number)
Return type
object

" Get a study translation text

↑ back to available methods

toggle_active_ser

Parameters
  • project_id (number)
  • user_id (number)
Return type
boolean
No documentation available

↑ back to available methods

toggle_active_user

Parameters
  • project_id (number)
  • user_id (number)
Return type
boolean

Only admin role is allowed to call toggleactiveuser.

↑ back to available methods

topic

Parameters
  • topic_id (number)
  • recursive (boolean defaults to false)
Return type
object
No documentation available

↑ back to available methods

translations_statuses

Parameters
no parameters
Return type
array[object]

Get all possible study statuses.

↑ back to available methods

update_concepts

Parameters
no parameters
Return type
object

Fetch concepts from thesaurus.

↑ back to available methods

update_study_metas

Parameters
  • study_id (number)
  • topic_id (number)
  • authors_ids (List[int])
  • concepts (array[string])
Return type
object
No documentation available

↑ back to available methods

update_study_translation

Parameters
  • title (string defaults to null)
  • text (string defaults to null)
  • sub_title (string defaults to null)
  • study_translation_id (number defaults to null)
  • translators (List[int] defaults to null)
  • project_id (number defaults to null)
Return type
object

Update a new study translation.

↑ back to available methods

update_study_translation_metas

Parameters
  • study_translation_id (number defaults to null)
  • title (string defaults to null)
  • sub_title (string defaults to null)
  • translators (List[int] defaults to null)
Return type
object

Update study translations metadata.

↑ back to available methods

update_topic

Parameters
  • topic_id (number)
  • translations (object defaults to null)
  • rank (number defaults to null)
  • jama_visual_resource_id (number defaults to null)
Return type
object
No documentation available

↑ back to available methods

update_user

Parameters
  • project_id (number)
  • user_id (number)
  • email (string)
  • first_name (string)
  • last_name (string)
  • usable_password (boolean defaults to false)
Return type
boolean
No documentation available

↑ back to available methods

user_roles

Parameters
  • user_id (number)
  • project_id (number)
Return type
array[object]

Get user's roles for the given project

↑ back to available methods

users

Parameters
  • from_item (number defaults to 0)
  • to_item (number defaults to 10)
  • search (string defaults to null)
  • sort_by (array[object] defaults to null)
  • project_id (number defaults to null)
Return type
dict[str, list[dict] | typing.Any]

Get all users, or project's users if project_id is defined

↑ back to available methods