> For the complete documentation index, see [llms.txt](https://documentation.qure.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.qure.ai/api/platform-api/api-specifications/initiating-computation.md).

# Initiating Computation

Once all the Dicoms corresponding to a particular series are uploaded, the computation can be triggered.

{% hint style="info" %}
**Attention**:

Perform the computation call only for qER and qCT use cases.
{% endhint %}

Use the following sample script to initiate processing.

{% code title="Python" overflow="wrap" %}

```python
# Make the HTTP Get request to the service
r = requests.get(URL, headers={'Authorization': 'Token {}'.format(TOKEN)})
```

{% endcode %}

## Initiate Computing Process

<mark style="color:blue;">`GET`</mark> `http://BASE URL + compute/ + [SERIES INSTANCE UID]`

Use the URL to make a GET call.

#### Path Parameters

| Name                                  | Type   | Description                      |
| ------------------------------------- | ------ | -------------------------------- |
| URL<mark style="color:red;">\*</mark> | String | The URL pointing to the service. |

#### Headers

| Name                                            | Type   | Description   |
| ----------------------------------------------- | ------ | ------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer token. |

{% tabs %}
{% tab title="200: OK Successful Computation" %}
{% code title="Json" %}

```json
{
    "message": "series_instance_uid successfully pushed for computation!",
    "success": true
}
```

{% endcode %}
{% endtab %}

{% tab title="304: Not Modified No Modification" %}
{% code title="Json" %}

```json
{
    "message": "series_instance_uid was already pushed for computation!",
    "success": true
}
```

{% endcode %}
{% endtab %}

{% tab title="401: Unauthorized Invalid Token" %}
{% code title="Json" %}

```json
{
    "message": "Invalid token header. No credentials provided.",
    "next": "/accounts/login/",
    "authenticated": false
}
```

{% endcode %}
{% endtab %}

{% tab title="403: Forbidden Access Denied" %}
{% code title="Json" %}

```json
{
    "success": false,
    "message": "Access denied!"
}
```

{% endcode %}
{% endtab %}

{% tab title="404: Not Found Series Instance UID Not Found" %}
{% code title="Json" %}

```json
{
    "success": false,
    "message": "Series with SeriesInstanceUID series_instance_uid is not yet uploaded!"
}
```

{% endcode %}
{% endtab %}
{% endtabs %}

{% hint style="info" %}
The call is both configurable and optional. However, in case you choose to avoid this call, Qure can provision an automatic processing trigger. It is advisable to make this call.
{% endhint %}

### Response Attribute

<table><thead><tr><th width="221">Attribute</th><th width="121">Value type</th><th width="419">Description</th></tr></thead><tbody><tr><td><pre><code>message
</code></pre></td><td>String</td><td>It validates the post call action based on the response status code. </td></tr><tr><td><pre><code><strong>success
</strong></code></pre></td><td>Boolean</td><td><p>It indicates whether the API call was successful or not.</p><ul><li><strong>True</strong>: The call was successful.</li><li><strong>False</strong>: The call was not successful.</li></ul></td></tr><tr><td><pre><code>authenticated
</code></pre></td><td>Boolean</td><td>It validates the token validity. </td></tr></tbody></table>
