Platform Admin Update Client
curl --request PATCH \
--url https://api.member.dev/api/v1/oauth-clients/{client_pk} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"allowed_scopes": [
"<string>"
],
"first_party": true
}
'import requests
url = "https://api.member.dev/api/v1/oauth-clients/{client_pk}"
payload = {
"allowed_scopes": ["<string>"],
"first_party": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/vnd.api+json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/vnd.api+json'},
body: JSON.stringify({allowed_scopes: ['<string>'], first_party: true})
};
fetch('https://api.member.dev/api/v1/oauth-clients/{client_pk}', 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://api.member.dev/api/v1/oauth-clients/{client_pk}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'allowed_scopes' => [
'<string>'
],
'first_party' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/vnd.api+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://api.member.dev/api/v1/oauth-clients/{client_pk}"
payload := strings.NewReader("{\n \"allowed_scopes\": [\n \"<string>\"\n ],\n \"first_party\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/vnd.api+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.member.dev/api/v1/oauth-clients/{client_pk}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/vnd.api+json")
.body("{\n \"allowed_scopes\": [\n \"<string>\"\n ],\n \"first_party\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.member.dev/api/v1/oauth-clients/{client_pk}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/vnd.api+json'
request.body = "{\n \"allowed_scopes\": [\n \"<string>\"\n ],\n \"first_party\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"attributes": {
"allowed_scopes": [
"<string>"
],
"client_id": "<string>",
"first_party": true,
"hub_id": "<string>",
"is_public": true,
"name": "<string>",
"team_id": "<string>",
"brand_label": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"logo_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
},
"id": "<string>",
"type": "<string>",
"links": {
"self": "<string>"
},
"meta": {},
"relationships": {}
},
"included": [
"<unknown>"
],
"links": {
"self": "<string>"
},
"meta": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}oauth-clients-admin
Platform Admin Update Client
Platform-admin-only: set first_party flag and/or allowed_scopes.
Requires platform_admin role. Returns the updated client (no secret).
Each provided field is applied independently — a PATCH that sends BOTH
first_party and allowed_scopes updates both (a no-op PATCH is idempotent).
PATCH
/
api
/
v1
/
oauth-clients
/
{client_pk}
Platform Admin Update Client
curl --request PATCH \
--url https://api.member.dev/api/v1/oauth-clients/{client_pk} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"allowed_scopes": [
"<string>"
],
"first_party": true
}
'import requests
url = "https://api.member.dev/api/v1/oauth-clients/{client_pk}"
payload = {
"allowed_scopes": ["<string>"],
"first_party": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/vnd.api+json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/vnd.api+json'},
body: JSON.stringify({allowed_scopes: ['<string>'], first_party: true})
};
fetch('https://api.member.dev/api/v1/oauth-clients/{client_pk}', 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://api.member.dev/api/v1/oauth-clients/{client_pk}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'allowed_scopes' => [
'<string>'
],
'first_party' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/vnd.api+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://api.member.dev/api/v1/oauth-clients/{client_pk}"
payload := strings.NewReader("{\n \"allowed_scopes\": [\n \"<string>\"\n ],\n \"first_party\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/vnd.api+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.member.dev/api/v1/oauth-clients/{client_pk}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/vnd.api+json")
.body("{\n \"allowed_scopes\": [\n \"<string>\"\n ],\n \"first_party\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.member.dev/api/v1/oauth-clients/{client_pk}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/vnd.api+json'
request.body = "{\n \"allowed_scopes\": [\n \"<string>\"\n ],\n \"first_party\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"attributes": {
"allowed_scopes": [
"<string>"
],
"client_id": "<string>",
"first_party": true,
"hub_id": "<string>",
"is_public": true,
"name": "<string>",
"team_id": "<string>",
"brand_label": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"logo_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
},
"id": "<string>",
"type": "<string>",
"links": {
"self": "<string>"
},
"meta": {},
"relationships": {}
},
"included": [
"<unknown>"
],
"links": {
"self": "<string>"
},
"meta": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
⌘I