Update application
Update application details by ID with the given data.
Path parameters
-
The unique identifier of the application.
Body Required
-
name string
Minimum length is
1
, maximum length is256
. -
description string | null
-
oidcClientMetadata object
Additional properties are allowed.
-
customClientMetadata object
Additional properties are allowed.
-
customData object
arbitrary
Additional properties are allowed.
-
protectedAppMetadata object
Additional properties are allowed.
-
isAdmin boolean
Whether the application has admin access. User can enable the admin access for Machine-to-Machine apps.
PATCH /api/applications/{id}
curl \
-X PATCH https://[tenant_id].logto.app/api/applications/{id} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string","oidcClientMetadata":{"redirectUris":[{}],"postLogoutRedirectUris":["string"],"backchannelLogoutUri":"string","backchannelLogoutSessionRequired":true,"logoUri":"string"},"customClientMetadata":{"corsAllowedOrigins":["string"],"idTokenTtl":42.0,"refreshTokenTtl":42.0,"refreshTokenTtlInDays":42.0,"tenantId":"string","alwaysIssueRefreshToken":true,"rotateRefreshToken":true},"customData":{},"protectedAppMetadata":{"origin":"string","sessionDuration":42.0,"pageRules":[{"path":"string"}]},"isAdmin":true}'
Request examples
{
"name": "string",
"description": "string",
"oidcClientMetadata": {
"redirectUris": [
{}
],
"postLogoutRedirectUris": [
"string"
],
"backchannelLogoutUri": "string",
"backchannelLogoutSessionRequired": true,
"logoUri": "string"
},
"customClientMetadata": {
"corsAllowedOrigins": [
"string"
],
"idTokenTtl": 42.0,
"refreshTokenTtl": 42.0,
"refreshTokenTtlInDays": 42.0,
"tenantId": "string",
"alwaysIssueRefreshToken": true,
"rotateRefreshToken": true
},
"customData": {},
"protectedAppMetadata": {
"origin": "string",
"sessionDuration": 42.0,
"pageRules": [
{
"path": "string"
}
]
},
"isAdmin": true
}
Response examples (200)
{
"tenantId": "string",
"id": "string",
"name": "string",
"secret": "string",
"description": "string",
"type": "Native",
"oidcClientMetadata": {
"redirectUris": [
{}
],
"postLogoutRedirectUris": [
"string"
],
"backchannelLogoutUri": "string",
"backchannelLogoutSessionRequired": true,
"logoUri": "string"
},
"customClientMetadata": {
"corsAllowedOrigins": [
"string"
],
"idTokenTtl": 42.0,
"refreshTokenTtl": 42.0,
"refreshTokenTtlInDays": 42.0,
"tenantId": "string",
"alwaysIssueRefreshToken": true,
"rotateRefreshToken": true
},
"protectedAppMetadata": {
"host": "string",
"origin": "string",
"sessionDuration": 42.0,
"pageRules": [
{
"path": "string"
}
],
"customDomains": [
{
"domain": "string",
"status": "PendingVerification",
"errorMessage": "string",
"dnsRecords": [
{
"name": "string",
"type": "string",
"value": "string"
}
],
"cloudflareData": {
"id": "string",
"status": "string",
"ssl": {
"status": "string",
"validation_errors": [
{
"message": "string"
}
]
},
"verification_errors": [
"string"
]
}
}
]
},
"customData": {},
"isThirdParty": true,
"createdAt": 42.0
}