Update client configuration
curl --request PUT \
--url https://app.sideshift.app/api/oauth/v1/clients/{clientId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"client_name": "<string>",
"redirect_uris": [
"<string>"
],
"logo_uri": "<string>",
"client_uri": "<string>",
"contacts": [
"<string>"
],
"grant_types": [],
"response_types": [
"code"
],
"scope": "<string>"
}
'import requests
url = "https://app.sideshift.app/api/oauth/v1/clients/{clientId}"
payload = {
"client_name": "<string>",
"redirect_uris": ["<string>"],
"logo_uri": "<string>",
"client_uri": "<string>",
"contacts": ["<string>"],
"grant_types": [],
"response_types": ["code"],
"scope": "<string>"
}
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({
client_name: '<string>',
redirect_uris: ['<string>'],
logo_uri: '<string>',
client_uri: '<string>',
contacts: ['<string>'],
grant_types: [],
response_types: ['code'],
scope: '<string>'
})
};
fetch('https://app.sideshift.app/api/oauth/v1/clients/{clientId}', 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://app.sideshift.app/api/oauth/v1/clients/{clientId}",
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([
'client_name' => '<string>',
'redirect_uris' => [
'<string>'
],
'logo_uri' => '<string>',
'client_uri' => '<string>',
'contacts' => [
'<string>'
],
'grant_types' => [
],
'response_types' => [
'code'
],
'scope' => '<string>'
]),
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://app.sideshift.app/api/oauth/v1/clients/{clientId}"
payload := strings.NewReader("{\n \"client_name\": \"<string>\",\n \"redirect_uris\": [\n \"<string>\"\n ],\n \"logo_uri\": \"<string>\",\n \"client_uri\": \"<string>\",\n \"contacts\": [\n \"<string>\"\n ],\n \"grant_types\": [],\n \"response_types\": [\n \"code\"\n ],\n \"scope\": \"<string>\"\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://app.sideshift.app/api/oauth/v1/clients/{clientId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"client_name\": \"<string>\",\n \"redirect_uris\": [\n \"<string>\"\n ],\n \"logo_uri\": \"<string>\",\n \"client_uri\": \"<string>\",\n \"contacts\": [\n \"<string>\"\n ],\n \"grant_types\": [],\n \"response_types\": [\n \"code\"\n ],\n \"scope\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/oauth/v1/clients/{clientId}")
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 \"client_name\": \"<string>\",\n \"redirect_uris\": [\n \"<string>\"\n ],\n \"logo_uri\": \"<string>\",\n \"client_uri\": \"<string>\",\n \"contacts\": [\n \"<string>\"\n ],\n \"grant_types\": [],\n \"response_types\": [\n \"code\"\n ],\n \"scope\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"client_id": "oauthc_8f1c2e...",
"client_id_issued_at": 1718700000,
"redirect_uris": [
"https://acme.example.com/oauth/callback"
],
"grant_types": [
"authorization_code",
"refresh_token"
],
"response_types": [
"code"
],
"token_endpoint_auth_method": "none",
"scope": "campaigns:read contracts:read offline_access",
"client_name": "Acme Analytics (updated)"
}{
"error": "invalid_grant",
"error_description": "Authorization code is invalid or expired"
}{
"error": "invalid_client",
"error_description": "Client authentication failed"
}Update client configuration
RFC 7592 update. Re-validates all metadata (same rules as registration).
PUT
/
clients
/
{clientId}
Update client configuration
curl --request PUT \
--url https://app.sideshift.app/api/oauth/v1/clients/{clientId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"client_name": "<string>",
"redirect_uris": [
"<string>"
],
"logo_uri": "<string>",
"client_uri": "<string>",
"contacts": [
"<string>"
],
"grant_types": [],
"response_types": [
"code"
],
"scope": "<string>"
}
'import requests
url = "https://app.sideshift.app/api/oauth/v1/clients/{clientId}"
payload = {
"client_name": "<string>",
"redirect_uris": ["<string>"],
"logo_uri": "<string>",
"client_uri": "<string>",
"contacts": ["<string>"],
"grant_types": [],
"response_types": ["code"],
"scope": "<string>"
}
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({
client_name: '<string>',
redirect_uris: ['<string>'],
logo_uri: '<string>',
client_uri: '<string>',
contacts: ['<string>'],
grant_types: [],
response_types: ['code'],
scope: '<string>'
})
};
fetch('https://app.sideshift.app/api/oauth/v1/clients/{clientId}', 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://app.sideshift.app/api/oauth/v1/clients/{clientId}",
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([
'client_name' => '<string>',
'redirect_uris' => [
'<string>'
],
'logo_uri' => '<string>',
'client_uri' => '<string>',
'contacts' => [
'<string>'
],
'grant_types' => [
],
'response_types' => [
'code'
],
'scope' => '<string>'
]),
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://app.sideshift.app/api/oauth/v1/clients/{clientId}"
payload := strings.NewReader("{\n \"client_name\": \"<string>\",\n \"redirect_uris\": [\n \"<string>\"\n ],\n \"logo_uri\": \"<string>\",\n \"client_uri\": \"<string>\",\n \"contacts\": [\n \"<string>\"\n ],\n \"grant_types\": [],\n \"response_types\": [\n \"code\"\n ],\n \"scope\": \"<string>\"\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://app.sideshift.app/api/oauth/v1/clients/{clientId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"client_name\": \"<string>\",\n \"redirect_uris\": [\n \"<string>\"\n ],\n \"logo_uri\": \"<string>\",\n \"client_uri\": \"<string>\",\n \"contacts\": [\n \"<string>\"\n ],\n \"grant_types\": [],\n \"response_types\": [\n \"code\"\n ],\n \"scope\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/oauth/v1/clients/{clientId}")
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 \"client_name\": \"<string>\",\n \"redirect_uris\": [\n \"<string>\"\n ],\n \"logo_uri\": \"<string>\",\n \"client_uri\": \"<string>\",\n \"contacts\": [\n \"<string>\"\n ],\n \"grant_types\": [],\n \"response_types\": [\n \"code\"\n ],\n \"scope\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"client_id": "oauthc_8f1c2e...",
"client_id_issued_at": 1718700000,
"redirect_uris": [
"https://acme.example.com/oauth/callback"
],
"grant_types": [
"authorization_code",
"refresh_token"
],
"response_types": [
"code"
],
"token_endpoint_auth_method": "none",
"scope": "campaigns:read contracts:read offline_access",
"client_name": "Acme Analytics (updated)"
}{
"error": "invalid_grant",
"error_description": "Authorization code is invalid or expired"
}{
"error": "invalid_client",
"error_description": "Client authentication failed"
}Authorizations
RFC 7592 registration access token (returned once at registration) — used to read/update/delete the client's own configuration.
Path Parameters
Body
application/json
RFC 7591 client metadata. All fields optional except redirect_uris for authorization-code clients.
Absolute HTTPS URIs (loopback HTTP allowed); no fragments.
Available options:
authorization_code, refresh_token, client_credentials Available options:
code Space-delimited capability scopes (whitelist-validated).
Available options:
none, client_secret_basic, client_secret_post Response
Updated client configuration.
RFC 7591/7592 client information response.
Returned only on registration.
Confidential clients only; returned once at registration.
⌘I