{ "lexicon": 1, "id": "org.atgrp.internal.migratePrepare", "defs": { "main": { "type": "procedure", "description": "On the source host: start moving the group to another host. Answers with a service token signed by the group, for the destination's migrateReceive; the group's handle, address and spaces; and a token, good for an hour, with which the destination pulls the group from here (migrateExport). Requires group.configure.", "input": { "encoding": "application/json", "schema": { "type": "object", "required": ["group", "destDid"], "properties": { "group": { "type": "string", "format": "did" }, "destDid": { "type": "string", "format": "did", "description": "The destination host's service DID." } } } }, "output": { "encoding": "application/json", "schema": { "type": "object", "required": ["serviceJwt", "snapshot", "exportToken"], "properties": { "serviceJwt": { "type": "string" }, "snapshot": { "type": "unknown", "description": "{handle, address, spaces: [uri]}: the group's handle and address, and every space the group holds, each by its URI, as a string. For migrateReceive, as it is." }, "exportToken": { "type": "string", "description": "For migrateExport, for an hour." } } } }, "errors": [ { "name": "NotController", "description": "The PLC directory's last operation for the group no longer lists this host's rotation key." } ] } } }