POST api/tags/add
Creates tag
Request Information
URI Parameters
None.
Body Parameters
UpsertTagRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| TagTypeId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "72a1f8e2-ae2a-41b2-b413-105027d6aa5c",
"Name": "sample string 2",
"Description": "sample string 3",
"TagTypeId": "18d92592-67f9-45be-85a1-92a724c8e801"
}
application/xml, text/xml
Sample:
<UpsertTagRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Requests.Tags"> <Description>sample string 3</Description> <Id>72a1f8e2-ae2a-41b2-b413-105027d6aa5c</Id> <Name>sample string 2</Name> <TagTypeId>18d92592-67f9-45be-85a1-92a724c8e801</TagTypeId> </UpsertTagRequest>
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>