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": "a1b68fd8-5ce9-411d-9d0a-127d9a79fba6",
"Value": "sample string 2"
},
{
"Key": "3bf5314c-c665-4086-af30-e889eded4af8",
"Value": "sample string 2"
}
],
"RedirectUris": [
{
"Key": "2846e5ee-9cbc-45f1-b26c-20a7aed63d55",
"Value": "sample string 2"
},
{
"Key": "5a0371a8-67b2-45ca-8871-7287814e566d",
"Value": "sample string 2"
}
],
"AllowedScopes": [
{
"Key": "0f9755d5-6ac9-47ef-a1c6-e23fda5b4c84",
"Value": "sample string 2"
},
{
"Key": "97bc5e20-4b12-402d-bd9f-3cd59ee21e8a",
"Value": "sample string 2"
}
],
"AllowedCorsOrigins": [
{
"Key": "32d82c3e-a34a-4e35-b4c5-8f00182cf104",
"Value": "sample string 2"
},
{
"Key": "5886172f-5a3f-4ae3-ba84-4e360d0c9fe5",
"Value": "sample string 2"
}
],
"PostLogoutRedirectUris": [
{
"Key": "709378fe-523e-4a4c-92c6-c416d33d15da",
"Value": "sample string 2"
},
{
"Key": "7aa5774a-b030-41b0-a8db-73a0690eee9c",
"Value": "sample string 2"
}
],
"Flow": 4,
"RequireConsent": true,
"AllowRememberConsent": true,
"ClientUri": "sample string 7",
"AccessTokenType": 8,
"AccountId": "976757fb-110d-4603-aac4-7eb770e7f0a5",
"AccessTokenLifetime": 9,
"EnableLocalLogin": true,
"IdentityProviderRestrictions": [
{
"Key": "f0ba7134-3763-4361-9831-bef3b0d78e9f",
"Value": "sample string 2"
},
{
"Key": "176de5ed-0839-4de3-9b37-4bcb69358308",
"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>976757fb-110d-4603-aac4-7eb770e7f0a5</AccountId>
<AllowRememberConsent>true</AllowRememberConsent>
<AllowedCorsOrigins xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>32d82c3e-a34a-4e35-b4c5-8f00182cf104</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>5886172f-5a3f-4ae3-ba84-4e360d0c9fe5</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>0f9755d5-6ac9-47ef-a1c6-e23fda5b4c84</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>97bc5e20-4b12-402d-bd9f-3cd59ee21e8a</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>a1b68fd8-5ce9-411d-9d0a-127d9a79fba6</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>3bf5314c-c665-4086-af30-e889eded4af8</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>f0ba7134-3763-4361-9831-bef3b0d78e9f</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>176de5ed-0839-4de3-9b37-4bcb69358308</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>709378fe-523e-4a4c-92c6-c416d33d15da</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>7aa5774a-b030-41b0-a8db-73a0690eee9c</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>2846e5ee-9cbc-45f1-b26c-20a7aed63d55</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>5a0371a8-67b2-45ca-8871-7287814e566d</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>