Update OAuth Application
curl --request PUT \
--url https://sandbox-api.cardcore.cloud/institutions/oauth/{institutionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Updated Banking App",
"description": "Updated description",
"websiteUrl": "https://myapp.com",
"scopes": [
"READ"
]
}
'import requests
url = "https://sandbox-api.cardcore.cloud/institutions/oauth/{institutionId}"
payload = {
"name": "Updated Banking App",
"description": "Updated description",
"websiteUrl": "https://myapp.com",
"scopes": ["READ"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Updated Banking App',
description: 'Updated description',
websiteUrl: 'https://myapp.com',
scopes: ['READ']
})
};
fetch('https://sandbox-api.cardcore.cloud/institutions/oauth/{institutionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-api.cardcore.cloud/institutions/oauth/{institutionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Updated Banking App',
'description' => 'Updated description',
'websiteUrl' => 'https://myapp.com',
'scopes' => [
'READ'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-api.cardcore.cloud/institutions/oauth/{institutionId}"
payload := strings.NewReader("{\n \"name\": \"Updated Banking App\",\n \"description\": \"Updated description\",\n \"websiteUrl\": \"https://myapp.com\",\n \"scopes\": [\n \"READ\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://sandbox-api.cardcore.cloud/institutions/oauth/{institutionId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Updated Banking App\",\n \"description\": \"Updated description\",\n \"websiteUrl\": \"https://myapp.com\",\n \"scopes\": [\n \"READ\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.cardcore.cloud/institutions/oauth/{institutionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Updated Banking App\",\n \"description\": \"Updated description\",\n \"websiteUrl\": \"https://myapp.com\",\n \"scopes\": [\n \"READ\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"message": "Institution OAuth updated successfully",
"data": {
"_id": "6a143e0164e77fc7a0e2b5ea",
"institution": "68da3e6080b90fbbb96716c9",
"name": "Prince Muteh2",
"description": "aearsoms",
"redirectUri": [],
"isVerified": true,
"isOfficial": false,
"institutionId": "53f1e54df75bbab63c5859d780498c1a",
"subject": "E=prince.muteh@gmail.com, CN=PRINCE, OU=, O=PRINCE, L=PRINCE, ST=PRINCE, C=Ng",
"scopes": [
"*"
],
"grantType": "client_credentials",
"isDeleted": false,
"createdBy": "68da3e6180b90fbbb96716cb",
"createdAt": "2026-05-25T12:18:09.005Z",
"updatedAt": "2026-05-25T12:21:10.883Z",
"id": "6a143e0164e77fc7a0e2b5ea"
}
}Institution OAuth
Update OAuth Application
Update an OAuth application.
PUT
/
institutions
/
oauth
/
{institutionId}
Update OAuth Application
curl --request PUT \
--url https://sandbox-api.cardcore.cloud/institutions/oauth/{institutionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Updated Banking App",
"description": "Updated description",
"websiteUrl": "https://myapp.com",
"scopes": [
"READ"
]
}
'import requests
url = "https://sandbox-api.cardcore.cloud/institutions/oauth/{institutionId}"
payload = {
"name": "Updated Banking App",
"description": "Updated description",
"websiteUrl": "https://myapp.com",
"scopes": ["READ"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Updated Banking App',
description: 'Updated description',
websiteUrl: 'https://myapp.com',
scopes: ['READ']
})
};
fetch('https://sandbox-api.cardcore.cloud/institutions/oauth/{institutionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-api.cardcore.cloud/institutions/oauth/{institutionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Updated Banking App',
'description' => 'Updated description',
'websiteUrl' => 'https://myapp.com',
'scopes' => [
'READ'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-api.cardcore.cloud/institutions/oauth/{institutionId}"
payload := strings.NewReader("{\n \"name\": \"Updated Banking App\",\n \"description\": \"Updated description\",\n \"websiteUrl\": \"https://myapp.com\",\n \"scopes\": [\n \"READ\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://sandbox-api.cardcore.cloud/institutions/oauth/{institutionId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Updated Banking App\",\n \"description\": \"Updated description\",\n \"websiteUrl\": \"https://myapp.com\",\n \"scopes\": [\n \"READ\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.cardcore.cloud/institutions/oauth/{institutionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Updated Banking App\",\n \"description\": \"Updated description\",\n \"websiteUrl\": \"https://myapp.com\",\n \"scopes\": [\n \"READ\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"message": "Institution OAuth updated successfully",
"data": {
"_id": "6a143e0164e77fc7a0e2b5ea",
"institution": "68da3e6080b90fbbb96716c9",
"name": "Prince Muteh2",
"description": "aearsoms",
"redirectUri": [],
"isVerified": true,
"isOfficial": false,
"institutionId": "53f1e54df75bbab63c5859d780498c1a",
"subject": "E=prince.muteh@gmail.com, CN=PRINCE, OU=, O=PRINCE, L=PRINCE, ST=PRINCE, C=Ng",
"scopes": [
"*"
],
"grantType": "client_credentials",
"isDeleted": false,
"createdBy": "68da3e6180b90fbbb96716cb",
"createdAt": "2026-05-25T12:18:09.005Z",
"updatedAt": "2026-05-25T12:21:10.883Z",
"id": "6a143e0164e77fc7a0e2b5ea"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Path parameter: institutionId.
Body
application/json
Response
200 - application/json
Update OAuth Application completed successfully.
The response is of type object.