---
title: "Test Connection"
description: "Test Connection"
keywords: "Test Connection"
url: "https://myrapidi.com/wiki/test_connection"
locale: "en"
published: "2018-09-26T09:31:50Z"
modified: "2023-04-06T08:55:43Z"
---

Below you see an example on how to update a specific connection. Examples both in JSON and JSONAPI are provided.

NOTE: Remember to substitute the token (after Bearer) and the service id (the "[SERVICE ID]" below) to your own token and service id.

## JSON:

```
curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/json" 
  -H "Accept: application/json"
  -X POST
  https://api.myrapidi.com/api/v2/service/[SERVICE ID]/connections/2/test
```

The out-put for this example would be:

```
{
  "threadid":"20180926090450Thread",
  "message":"Connection Test Started.\u003cbr/\u003e"
}
```

## JSONAPI:

```
curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/vnd.api+json" 
  -H "Accept: application/vnd.api+json"
  -X POST
  https://api.myrapidi.com/api/v2/service/[SERVICE ID]/connections/2/test
```

The out-put for this example would be:

```
{
  "data":{
    "type": "messages",
    "attributes": {
      "threadid":"20180926090450Thread",
      "message":"Connection Test Started.\u003cbr/\u003e"
    }
  }
}
```

In order for you to view the following messages run the 'get message' command - please find the description under Messages.
