PUT api/clients/{id}
Updates client
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
Required |
Body Parameters
UpsertClientRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Enabled | boolean |
None. |
|
| ClientName | string |
None. |
|
| ClientId | string |
None. |
|
| ClientSecrets | Collection of Pair of globally unique identifier [key] and string [value] |
None. |
|
| RedirectUris | Collection of Pair of globally unique identifier [key] and string [value] |
None. |
|
| AllowedScopes | Collection of Pair of globally unique identifier [key] and string [value] |
None. |
|
| AllowedCorsOrigins | Collection of Pair of globally unique identifier [key] and string [value] |
None. |
|
| PostLogoutRedirectUris | Collection of Pair of globally unique identifier [key] and string [value] |
None. |
|
| Flow | integer |
None. |
|
| RequireConsent | boolean |
None. |
|
| AllowRememberConsent | boolean |
None. |
|
| ClientUri | string |
None. |
|
| AccessTokenType | integer |
None. |
|
| AccountId | globally unique identifier |
None. |
|
| AccessTokenLifetime | integer |
None. |
|
| EnableLocalLogin | boolean |
None. |
|
| IdentityProviderRestrictions | Collection of Pair of globally unique identifier [key] and string [value] |
None. |
|
| ClientSignupFlowTemplate | Collection of Pair of ClientSignupFlowTemplateKeys [key] and string [value] |
None. |
|
| AmxSecret | string |
None. |
|
| LayoutId | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Enabled": true,
"ClientName": "sample string 2",
"ClientId": "sample string 3",
"ClientSecrets": [
{
"Key": "5639790a-e1b9-41fb-8c2c-4ae5adb38217",
"Value": "sample string 2"
},
{
"Key": "09d784fe-9b07-4243-b8f4-264836e090d2",
"Value": "sample string 2"
}
],
"RedirectUris": [
{
"Key": "d899f353-631f-4ac1-8c1b-86e6286303db",
"Value": "sample string 2"
},
{
"Key": "27699a6f-dca6-4e21-a358-34199f173660",
"Value": "sample string 2"
}
],
"AllowedScopes": [
{
"Key": "516a37b8-e8d2-4bc9-930a-5d7b2cd30e77",
"Value": "sample string 2"
},
{
"Key": "1e4811f9-aab1-4cdb-9af3-4a57f2b8033e",
"Value": "sample string 2"
}
],
"AllowedCorsOrigins": [
{
"Key": "26aa4953-50ab-4936-bb33-c84c407ec803",
"Value": "sample string 2"
},
{
"Key": "b3dbdca9-d5b4-4cb7-a1b5-ab09bbc825da",
"Value": "sample string 2"
}
],
"PostLogoutRedirectUris": [
{
"Key": "35cc6790-a870-4e16-9061-4bf18ad9cf63",
"Value": "sample string 2"
},
{
"Key": "c608c4f4-d23b-4608-9c54-d2d1e48927e1",
"Value": "sample string 2"
}
],
"Flow": 4,
"RequireConsent": true,
"AllowRememberConsent": true,
"ClientUri": "sample string 7",
"AccessTokenType": 8,
"AccountId": "e4abcde6-160c-460d-a976-4998a5ff498b",
"AccessTokenLifetime": 9,
"EnableLocalLogin": true,
"IdentityProviderRestrictions": [
{
"Key": "0183d1be-1df9-4329-b118-55acbeb8bd1b",
"Value": "sample string 2"
},
{
"Key": "a3da2205-c621-441c-8c5c-dc2514dfef39",
"Value": "sample string 2"
}
],
"ClientSignupFlowTemplate": [
{
"Key": 1,
"Value": "sample string 1"
},
{
"Key": 1,
"Value": "sample string 1"
}
],
"AmxSecret": "sample string 11",
"LayoutId": "sample string 12"
}
application/xml, text/xml
Sample:
<UpsertClientRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Requests.Client">
<AccessTokenLifetime>9</AccessTokenLifetime>
<AccessTokenType>8</AccessTokenType>
<AccountId>e4abcde6-160c-460d-a976-4998a5ff498b</AccountId>
<AllowRememberConsent>true</AllowRememberConsent>
<AllowedCorsOrigins xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>26aa4953-50ab-4936-bb33-c84c407ec803</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>b3dbdca9-d5b4-4cb7-a1b5-ab09bbc825da</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
</AllowedCorsOrigins>
<AllowedScopes xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>516a37b8-e8d2-4bc9-930a-5d7b2cd30e77</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>1e4811f9-aab1-4cdb-9af3-4a57f2b8033e</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
</AllowedScopes>
<AmxSecret>sample string 11</AmxSecret>
<ClientId>sample string 3</ClientId>
<ClientName>sample string 2</ClientName>
<ClientSecrets xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>5639790a-e1b9-41fb-8c2c-4ae5adb38217</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>09d784fe-9b07-4243-b8f4-264836e090d2</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
</ClientSecrets>
<ClientSignupFlowTemplate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<d2p1:KeyValuePairOfClientSignupFlowTemplateKeysstring4T9o1gJJ>
<d2p1:key>IsActive</d2p1:key>
<d2p1:value>sample string 1</d2p1:value>
</d2p1:KeyValuePairOfClientSignupFlowTemplateKeysstring4T9o1gJJ>
<d2p1:KeyValuePairOfClientSignupFlowTemplateKeysstring4T9o1gJJ>
<d2p1:key>IsActive</d2p1:key>
<d2p1:value>sample string 1</d2p1:value>
</d2p1:KeyValuePairOfClientSignupFlowTemplateKeysstring4T9o1gJJ>
</ClientSignupFlowTemplate>
<ClientUri>sample string 7</ClientUri>
<EnableLocalLogin>true</EnableLocalLogin>
<Enabled>true</Enabled>
<Flow>4</Flow>
<IdentityProviderRestrictions xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>0183d1be-1df9-4329-b118-55acbeb8bd1b</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>a3da2205-c621-441c-8c5c-dc2514dfef39</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
</IdentityProviderRestrictions>
<LayoutId>sample string 12</LayoutId>
<PostLogoutRedirectUris xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>35cc6790-a870-4e16-9061-4bf18ad9cf63</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>c608c4f4-d23b-4608-9c54-d2d1e48927e1</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
</PostLogoutRedirectUris>
<RedirectUris xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>d899f353-631f-4ac1-8c1b-86e6286303db</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>27699a6f-dca6-4e21-a358-34199f173660</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
</RedirectUris>
<RequireConsent>true</RequireConsent>
</UpsertClientRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ValidationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| IsValid | boolean |
None. |
|
| Errors | Collection of ValidationFailure |
None. |
Response Formats
application/json, text/json
Sample:
{
"errors": []
}
application/xml, text/xml
Sample:
<ValidationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FluentValidation.Results"> <errors /> </ValidationResult>