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": "3b5a2053-20cc-425c-a361-744a26e8f46a",
"Value": "sample string 2"
},
{
"Key": "4d1a559b-395d-4350-ad40-3c8588f57cc9",
"Value": "sample string 2"
}
],
"RedirectUris": [
{
"Key": "0bf46422-c26c-46d2-b8cd-90aa3b280624",
"Value": "sample string 2"
},
{
"Key": "b6b365d7-3a8f-4283-a273-e70c240a4c01",
"Value": "sample string 2"
}
],
"AllowedScopes": [
{
"Key": "76cd90f0-2cda-4329-881b-bfabf22b324f",
"Value": "sample string 2"
},
{
"Key": "ba26b54f-6357-4b64-9c0e-20700e210dab",
"Value": "sample string 2"
}
],
"AllowedCorsOrigins": [
{
"Key": "5ac2cdfc-a82d-442e-820a-c64b1fdadc73",
"Value": "sample string 2"
},
{
"Key": "ad4d0931-44fe-4b42-9201-a6d2aa7de075",
"Value": "sample string 2"
}
],
"PostLogoutRedirectUris": [
{
"Key": "9e4bcb4a-d278-4ad9-8a04-d2956ddf3694",
"Value": "sample string 2"
},
{
"Key": "52924b3c-a758-4114-9cc8-b1404181ac88",
"Value": "sample string 2"
}
],
"Flow": 4,
"RequireConsent": true,
"AllowRememberConsent": true,
"ClientUri": "sample string 7",
"AccessTokenType": 8,
"AccountId": "3046fc12-ed67-4bc7-9067-ad89ba942ccc",
"AccessTokenLifetime": 9,
"EnableLocalLogin": true,
"IdentityProviderRestrictions": [
{
"Key": "2428ac2d-78fd-4d87-81f7-70330cc154ad",
"Value": "sample string 2"
},
{
"Key": "d40643b8-3527-4b2c-8fe5-38b12aaea5f6",
"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>3046fc12-ed67-4bc7-9067-ad89ba942ccc</AccountId>
<AllowRememberConsent>true</AllowRememberConsent>
<AllowedCorsOrigins xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>5ac2cdfc-a82d-442e-820a-c64b1fdadc73</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>ad4d0931-44fe-4b42-9201-a6d2aa7de075</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>76cd90f0-2cda-4329-881b-bfabf22b324f</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>ba26b54f-6357-4b64-9c0e-20700e210dab</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>3b5a2053-20cc-425c-a361-744a26e8f46a</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>4d1a559b-395d-4350-ad40-3c8588f57cc9</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>2428ac2d-78fd-4d87-81f7-70330cc154ad</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>d40643b8-3527-4b2c-8fe5-38b12aaea5f6</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>9e4bcb4a-d278-4ad9-8a04-d2956ddf3694</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>52924b3c-a758-4114-9cc8-b1404181ac88</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>0bf46422-c26c-46d2-b8cd-90aa3b280624</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>b6b365d7-3a8f-4283-a273-e70c240a4c01</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>