createCustomContentProperty method
Future<ContentProperty>
createCustomContentProperty({
- required int customContentId,
- bool? serializeIdsAsStrings,
- required ContentPropertyCreateRequest body,
Creates a new content property for a piece of custom content.
Permissions required: Permission to update the custom content.
Implementation
Future<ContentProperty> createCustomContentProperty(
{required int customContentId,
bool? serializeIdsAsStrings,
required ContentPropertyCreateRequest body}) async {
return ContentProperty.fromJson(await _client.send(
'post',
'custom-content/{custom-content-id}/properties',
pathParameters: {
'custom-content-id': '$customContentId',
},
queryParameters: {
if (serializeIdsAsStrings != null)
'serialize-ids-as-strings': '$serializeIdsAsStrings',
},
body: body.toJson(),
));
}