Description
Refreshes a specific connection, based on its ID
POST
/api/v1/connections/{connectionId}/refresh
Required OAuth Scopes:
No OAuth scopes are required to use this endpoint.
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
connectionId | path | string | true | The ID of the connection to refresh |
body | body | RefreshConnectionDto | true | refreshConnectionDto |
Body parameter example
{
"connectionId": "string",
"destinationParameters": {},
"sourceParameters": {},
"usePreviousDestinationParameters": false,
"usePreviousSourceParameters": false,
"workspaceId": "string"
}
Code Samples
curl -X POST https://h.app.wdesk.com/s/wdata/prep/api/v1/connections/{connectionId}/refresh \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
http POST https://h.app.wdesk.com/s/wdata/prep/api/v1/connections/{connectionId}/refresh \
Content-Type:application/json \
Accept:application/json \
Authorization:"Bearer {access-token}"
wget --method=POST "https://h.app.wdesk.com/s/wdata/prep/api/v1/connections/{connectionId}/refresh" \
--output-document - \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}'
import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer {access-token}'
}
r = requests.post('https://h.app.wdesk.com/s/wdata/prep/api/v1/connections/{connectionId}/refresh', headers = headers)
print(r.json())
Returns
200 - OK
undefined
Example Responses
{
"body": {
"connectionId": "string",
"created": "string",
"createdBy": "string",
"destinationParameters": {},
"destinationStatus": "string",
"destinationWorkspaceId": "string",
"error": "string",
"jobId": "string",
"sourceParameters": {},
"sourceStatus": "string",
"sourceWorkspaceId": "string",
"updated": "string",
"workspaceId": "string"
},
"code": "integer"
}