Skip to main content
Skip table of contents

Move a resource

Moving resources

Move resources between resource groups.

JSON
{
    "resources": [
        1
    ],
    "type": "move"
}

POST /api/admin/v1/analytics/files/transfer/{current_group}/to/{target_group}

Parameters

int current_group, Unique identifier of the resource group from which the resource will be moved


int target_group, Unique identifier of the resource group to which the resource will be moved


array resources, Array of resource ids.


string type, Resource movement type

200 OK

Returns an array of resource objects

JSON
null

401 Unauthorized

Authorization token not sent or not valid

422 Unprocessable Entity

Returns a JSON object with an error.

JSON
{
    "message": "There will be no informative message here",
    "errors": {
        "any_key": [
            "The cause of the error will be described here"
        ]
    }
}
cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/analytics/files/transfer/{current_group}/to/{target_group}' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "current_group": 0,
    "target_group": 0,
    "resources": [],
    "type": "string"
}'
PHP
PHP
$data = array (
  'current_group' => 0,
  'target_group' => 0,
  'resources' => 
  array (
  ),
  'type' => 'string',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'POST',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/analytics/files/transfer/{current_group}/to/{target_group}', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.