POST api/clients/add
Creates client
Request Information
URI Parameters
None.
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": "9837d723-7a90-497f-ac11-6595094c8355",
"Value": "sample string 2"
},
{
"Key": "ae3d51b3-9d02-43c3-98b0-e6d34d80e779",
"Value": "sample string 2"
}
],
"RedirectUris": [
{
"Key": "357bf751-c9e7-4213-a41a-cabe2875874d",
"Value": "sample string 2"
},
{
"Key": "26a889b8-524b-483c-9f1e-ad60f882fc75",
"Value": "sample string 2"
}
],
"AllowedScopes": [
{
"Key": "d4c04601-3e5a-4077-8e6c-c36477fef32c",
"Value": "sample string 2"
},
{
"Key": "71d8628b-cd01-402d-a996-9935bdf97116",
"Value": "sample string 2"
}
],
"AllowedCorsOrigins": [
{
"Key": "a9086ad0-2ff2-41f6-adf5-524221c2fb8d",
"Value": "sample string 2"
},
{
"Key": "5a7a8427-4a3d-48fe-b7ac-d9a24aa7c399",
"Value": "sample string 2"
}
],
"PostLogoutRedirectUris": [
{
"Key": "bb581a00-f004-4aa9-aa24-646988f2460f",
"Value": "sample string 2"
},
{
"Key": "cb7a4448-78fe-4289-a0e0-acdfed96abc1",
"Value": "sample string 2"
}
],
"Flow": 4,
"RequireConsent": true,
"AllowRememberConsent": true,
"ClientUri": "sample string 7",
"AccessTokenType": 8,
"AccountId": "f30ffa3c-188a-454a-a595-436f5c89843d",
"AccessTokenLifetime": 9,
"EnableLocalLogin": true,
"IdentityProviderRestrictions": [
{
"Key": "dafc6978-a2e2-4430-92b9-6d556b82b4c6",
"Value": "sample string 2"
},
{
"Key": "aab53bdc-75a0-40de-b2f9-97a8270e9d9f",
"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>f30ffa3c-188a-454a-a595-436f5c89843d</AccountId>
<AllowRememberConsent>true</AllowRememberConsent>
<AllowedCorsOrigins xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>a9086ad0-2ff2-41f6-adf5-524221c2fb8d</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>5a7a8427-4a3d-48fe-b7ac-d9a24aa7c399</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>d4c04601-3e5a-4077-8e6c-c36477fef32c</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>71d8628b-cd01-402d-a996-9935bdf97116</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>9837d723-7a90-497f-ac11-6595094c8355</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>ae3d51b3-9d02-43c3-98b0-e6d34d80e779</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>dafc6978-a2e2-4430-92b9-6d556b82b4c6</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>aab53bdc-75a0-40de-b2f9-97a8270e9d9f</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>bb581a00-f004-4aa9-aa24-646988f2460f</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>cb7a4448-78fe-4289-a0e0-acdfed96abc1</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>357bf751-c9e7-4213-a41a-cabe2875874d</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>26a889b8-524b-483c-9f1e-ad60f882fc75</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>