PUT v1/application/content-type/{id}
Use this method to update fields of an existing content type.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Content type unique identifier. |
string |
Required |
Body Parameters
Update elements to be saved.
ContentType| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Unique identifier. There is always a different id per application. |
string |
None. |
| name |
Display Name |
string |
None. |
| type |
Internal humanly readable identifier. |
string |
None. |
| properties |
This field contains the default properties or settings any content element created will inherit. |
Collection of SettingBase |
None. |
| showWysiwyg |
This field is used by any WYSIWYG Editor and specifies if a user can by himself create instances of this content type or only underneath logic should handle creation or this elements. |
boolean |
None. |
Request Formats
application/json, text/json
{
"id": "sample string 1",
"name": "sample string 2",
"type": "sample string 3",
"properties": [
{
"id": "sample string 1",
"name": "sample string 2",
"value": "sample string 3"
},
{
"id": "sample string 1",
"name": "sample string 2",
"value": "sample string 3"
}
],
"showWysiwyg": true
}
Response Information
Resource Description
Returns HTTP headers with appropriate information as to the result of the update operation. In the body, returns a boolean value (true/false) where true means the operation did update the record, or false if the record did needed to be updated for example, when all fields match.
booleanResponse Formats
application/json, text/json
true
