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": "56c4297e-b906-42bb-95a3-bc8fc9f4a120",
"Value": "sample string 2"
},
{
"Key": "52d0b861-1f75-4d8b-ba5b-2ce4230d9bc4",
"Value": "sample string 2"
}
],
"RedirectUris": [
{
"Key": "499d1f45-8ac5-4aee-8d1a-9391d485a4c3",
"Value": "sample string 2"
},
{
"Key": "a552a2c7-1377-4327-a38d-6f81b40d5d19",
"Value": "sample string 2"
}
],
"AllowedScopes": [
{
"Key": "d22469bf-6e6d-4368-a533-f994b3651730",
"Value": "sample string 2"
},
{
"Key": "66afa6ee-8f67-4a8f-b36e-da3a2aa8e102",
"Value": "sample string 2"
}
],
"AllowedCorsOrigins": [
{
"Key": "2c32028b-a0c5-4bf3-aeda-b235a621aad1",
"Value": "sample string 2"
},
{
"Key": "a2162a03-9cf9-491c-b73e-c0db36453660",
"Value": "sample string 2"
}
],
"PostLogoutRedirectUris": [
{
"Key": "cb097f76-6d5b-4b6c-a469-ff10d5aa680e",
"Value": "sample string 2"
},
{
"Key": "aea42063-ef56-46fc-a696-abc2ded3113b",
"Value": "sample string 2"
}
],
"Flow": 4,
"RequireConsent": true,
"AllowRememberConsent": true,
"ClientUri": "sample string 7",
"AccessTokenType": 8,
"AccountId": "a4a84049-3748-4912-8d1e-1854124d80d6",
"AccessTokenLifetime": 9,
"EnableLocalLogin": true,
"IdentityProviderRestrictions": [
{
"Key": "dc643c14-f977-401e-adb3-13e4fd931c9e",
"Value": "sample string 2"
},
{
"Key": "79c5a87c-caeb-4cdf-9c07-f87b5eb99737",
"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>a4a84049-3748-4912-8d1e-1854124d80d6</AccountId>
<AllowRememberConsent>true</AllowRememberConsent>
<AllowedCorsOrigins xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>2c32028b-a0c5-4bf3-aeda-b235a621aad1</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>a2162a03-9cf9-491c-b73e-c0db36453660</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>d22469bf-6e6d-4368-a533-f994b3651730</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>66afa6ee-8f67-4a8f-b36e-da3a2aa8e102</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>56c4297e-b906-42bb-95a3-bc8fc9f4a120</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>52d0b861-1f75-4d8b-ba5b-2ce4230d9bc4</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>dc643c14-f977-401e-adb3-13e4fd931c9e</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>79c5a87c-caeb-4cdf-9c07-f87b5eb99737</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>cb097f76-6d5b-4b6c-a469-ff10d5aa680e</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>aea42063-ef56-46fc-a696-abc2ded3113b</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>499d1f45-8ac5-4aee-8d1a-9391d485a4c3</d2p1:key>
<d2p1:value>sample string 2</d2p1:value>
</d2p1:KeyValuePairOfguidstring>
<d2p1:KeyValuePairOfguidstring>
<d2p1:key>a552a2c7-1377-4327-a38d-6f81b40d5d19</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>