Skip to main content
Skip table of contents

Update a resource

Resource update

Resource update.

JSON
{
    "name": "name"
}

POST /api/admin/v1/analytics/groups/{analytic_group}/files/{analytic_file}

Parameters

int analytic_group, Unique identifier of the resource group


int analytic_file, Unique resource identifier


string name, Name of the resource

201 Created

Returns a resource object

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/groups/{analytic_group}/files/{analytic_file}' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "analytic_group": 0,
    "analytic_file": 0,
    "name": "string"
}'
PHP
PHP
$data = array (
  'analytic_group' => 0,
  'analytic_file' => 0,
  'name' => '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/groups/{analytic_group}/files/{analytic_file}', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.