Workflows - Client Connections
Revoke Client Connection Request
POST
Revoke Client Connection Request
Autorizaciones
Respuesta
Successful Response
Revoke Client Connection Request
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
import requests
url = "https://api.diga.io/v1/workflow/client-connection-requests/{request_id}/revoke"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.diga.io/v1/workflow/client-connection-requests/{request_id}/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.diga.io/v1/workflow/client-connection-requests/{request_id}/revoke \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.diga.io/v1/workflow/client-connection-requests/{request_id}/revoke"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"piece_name": "<string>",
"piece_version": "<string>",
"piece_display_name": "<string>",
"piece_logo_url": "<string>",
"display_name": "<string>",
"purpose": "<string>",
"requester_name": "<string>",
"requester_company_name": "<string>",
"auth_property_index": 123,
"connection_type": "OAUTH2",
"oauth_grant_type": "AUTHORIZATION_CODE",
"status": "AWAITING_CLIENT",
"expires_at": "2023-11-07T05:31:56Z",
"target_connection_external_id": "<string>",
"result_connection_external_id": "<string>",
"safe_identity": {},
"last_error_code": "<string>",
"last_error_message": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"opened_at": "2023-11-07T05:31:56Z",
"authentication_started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"resource_type": "CLIENT_CONNECTION_REQUEST",
"events": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"data": {}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Successful Response
import requests
url = "https://api.diga.io/v1/workflow/client-connection-requests/{request_id}/revoke"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.diga.io/v1/workflow/client-connection-requests/{request_id}/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.diga.io/v1/workflow/client-connection-requests/{request_id}/revoke \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.diga.io/v1/workflow/client-connection-requests/{request_id}/revoke"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"piece_name": "<string>",
"piece_version": "<string>",
"piece_display_name": "<string>",
"piece_logo_url": "<string>",
"display_name": "<string>",
"purpose": "<string>",
"requester_name": "<string>",
"requester_company_name": "<string>",
"auth_property_index": 123,
"connection_type": "OAUTH2",
"oauth_grant_type": "AUTHORIZATION_CODE",
"status": "AWAITING_CLIENT",
"expires_at": "2023-11-07T05:31:56Z",
"target_connection_external_id": "<string>",
"result_connection_external_id": "<string>",
"safe_identity": {},
"last_error_code": "<string>",
"last_error_message": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"opened_at": "2023-11-07T05:31:56Z",
"authentication_started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"resource_type": "CLIENT_CONNECTION_REQUEST",
"events": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"data": {}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}