# 5.3 Populate the tracking database with the designated result folder for each sample to be processed

**Besides populating the input file S3 path, users will also need to set the results folder using the API command VCPA provides, so that this information will be effectively imported to the tracking database:**

```
function rawurlencode(){
echo -n "$1" | perl -pe 's/([^a-zA-Z0-9_.!~*()'\''-])/sprintf("%%%02X", ord($1))/ge' | perl -pe 's/(\W)/sprintf("%%%02X", ord($1))/ge'
}
```

```

$  s3='s3://YOUR/RESULTS/FOLDER'    
### S3 path for the results folder for each sample 
$  results_s3_path=$(rawurlencode $s3)
```

```
$ curl -sS "http://IP/v1/sample/set-attr/results_s3_uri/${project_id}/${sample_name}/${results_s3_path}"
```

<mark style="color:blue;">`GET`</mark> `http://IP/v1/sample/set-attr/results_s3_uri/${project_id}/${sample_name}/${results_s3_path}`

Add the path of result files.

#### Path Parameters

| Name              | Type   | Description                                                                                |
| ----------------- | ------ | ------------------------------------------------------------------------------------------ |
| project\_id       | string | This is the project ID outputted by Section 3.2.                                           |
| sample\_name      | string | Sample name (note this needs to match the sample name of the input file in the S3 bucket). |
| results\_s3\_path | string | S3 path of where the results will be written to.                                           |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "status":"success",
    "id":"8"
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://niagads.gitbook.io/vcpa/step-5-configure-your-samples-information-in-the-tracking-database/5.3-populate-the-tracking-database-with-the-designated-result-folder-for-each-sample-to-be-processed.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
