| Back | Main view

IMiS/Storage Connector Services REST - Object transfer

Product:IMiS/StorageConnector Services REST
Release:9.6.2010
Date:02/23/2021

Case: IMiS/Storage Connector Services REST - Object transfer

Description:

This example demonstrates operations which transfers objects from unstructured object storage (Stages) to structured storage on the IMiS/ARChive Server.
Requests and responses are in JSON format.
Below is a description of operations for the object transfer.


1. Object transfer

Operation transfer the object from unstructured object storage with identifier "ID_2001" to entity with classification code "C=3^C=92^D=000001". The same can be applied to examples using internal or external entity identifiers.

Request
POST archives/{archiveId}/batch/create.json


Headers:
- Authorization: Bearer <session-token>
- Content-Type: application/json;charset=utf-8

Body:
{
"entities": [
{
"id_type": "C",
"id": "C=3^C=92^D=000001",
"object_transfer": [
{
"id": "ID_2001"
}
]
}
]
}

Response

Body:
{
"size": 1,
"entities": [
{
... <updated state of target entity> ...
}
]
}


2. Object and identifier transfer

Operation transfer the object and identifier from unstructured object storage with identifier "ID_1601" to entity with classification code "C=3^C=92^D=000002".
Identifier "ID_1601" is transferred to entity's external identifiers property list.

Request
POST archives/{archiveId}/batch/create.json


Headers:
- Authorization: Bearer <session-token>
- Content-Type: application/json;charset=utf-8

Body:
{
"entities": [
{
"id_type": "C",
"id": "C=3^C=92^D=000002",
"update": true,
"object_transfer": [
{
"id": "ID_1601",
"transfer_id": true
}
]
}
]
}

Response

Body:
{
"size": 1,
"entities": [
{
... <updated state of target entity> ...
}
]
}



Related Documents:



| Back | Main view