Updates mutable fields of a Connected App. Cannot update Client Type, Client ID, or Secrets.
Update Connected App
PUT
https://test.stytch.com/v1/connected_apps/clients/{client_id}Path parameters
client_id* string
Body parameters
client_name string
client_description string
redirect_urls array
post_logout_redirect_urls array[strings]
full_access_allowed boolean
access_token_expiry_minutes number
access_token_custom_audience string
access_token_template_content string
logo_url string
bypass_consent_for_offline_access boolean
Response fields
request_id string
status_code int
connected_app object
const stytch = require('stytch');
const client = new stytch.Client({
project_id: 'PROJECT_ID',
secret: 'SECRET',
});
const params = {
client_id: "m2m-client-test-d731954d-dab3-4a2b-bdee-07f3ad1be885",
client_name: "My Sample Client",
client_description: "My sample client for testing out Connected Apps",
redirect_urls: ["https://example.com/callback"],
full_access_allowed: false,
};
client.connectedApp.clients.update(params)
.then(resp => { console.log(resp) })
.catch(err => { console.log(err) });
RESPONSE
200
{
"client_id": "connected-app-test-d731954d-dab3-4a2b-bdee-07f3ad1be888",
"client_name": "Updated Connected App",
"redirect_urls": ["https://new.myapp.com/callback"]
}