POST client/{id}/relations
Add a new relation to a client.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The id of the client. |
integer |
Required |
Body Parameters
The RelationViewModel, containing information about the relation.
FiscaalGemak.Web.Api.Models.Models.RelationViewModelName | Description | Type | Additional information |
---|---|---|---|
IdentificationNumber |
Gets or sets the identification number of the relation. |
string |
Required |
RelationClientId |
Gets or sets the client id of the relation. |
integer |
Required |
Request Formats
application/json, text/json
Sample:
{ "IdentificationNumber": "sample string 1", "RelationClientId": 2 }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Returns status code 201-Created with the API route to get the client relation details, upon successful creation of the client relation.
FiscaalGemak.Web.Api.Models.Models.RelationViewModelName | Description | Type | Additional information |
---|---|---|---|
IdentificationNumber |
Gets or sets the identification number of the relation. |
string |
Required |
RelationClientId |
Gets or sets the client id of the relation. |
integer |
Required |
Response Formats
application/json, text/json
Sample:
{ "IdentificationNumber": "sample string 1", "RelationClientId": 2 }