POST v1/Article/{articleKey}/Type
Create a type for an article. To see the list of possible types, visit the ElementTypes controller.
Roles Allowed
admin, editor
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
articleKey |
Identifies the article the type applies to |
integer |
Required |
Body Parameters
integerRequest Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HTTP 201 with new ElementType if found, HTTP 404 otherwise, HTTP 409 if validation fails
ArticleTypeName | Description | Type | Additional information |
---|---|---|---|
ArticleTypeKey |
Unique identifier for an Article Type |
integer |
None. |
ElementType |
The ElementType that this ArticleType is assigning to the Article |
ElementType |
None. |
Response Formats
application/json, text/json
Sample:
{ "ArticleTypeKey": 1, "ElementType": { "ElementTypeId": 1, "ElementTypeValue": "sample string 2" } }
application/xml, text/xml
Sample:
<ArticleType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bondi.Models.V3.ApiDto"> <ArticleTypeKey>1</ArticleTypeKey> <ElementType> <ElementTypeId>1</ElementTypeId> <ElementTypeValue>sample string 2</ElementTypeValue> </ElementType> </ArticleType>