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