Transfer a collection target to another runner

POST
/v1/scopes/{scope_id}/source-targets/{target_id}/transfer

Assigns the target to another registered runner. The target keeps its ID and, unless reset_checkpoint is true, its checkpoint. The configuration version increases, so results the previous runner collected are refused. Permissions are those of adding the target to the destination runner; server.admin is required when either runner is the server runner. A target with the same key on the destination runner is a conflict.

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer credential resolved to an opaque authenticated Principal by the Server deployment.

In: header

Path Parameters

scope_id*string
Match.*\S.*
Length1 <= length <= 256
target_id*string
Match^[0-9a-f]{1,64}$
Length1 <= length <= 64

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/scopes/string/source-targets/string/transfer" \  -H "Content-Type: application/json" \  -d '{    "runner": "string"  }'
{  "scope_id": "string",  "target_id": "string",  "runner": "string",  "capability": "string",  "target_key": "string",  "parameters": {},  "enabled": true,  "config_version": 1,  "updated_at": "2019-08-24T14:15:22Z",  "updated_by": "string",  "status": {    "last_attempt_at": "2019-08-24T14:15:22Z",    "last_success_at": "2019-08-24T14:15:22Z",    "consecutive_failures": 0,    "last_error_code": "string",    "last_error_message": "string"  }}