createContentTemplate method

Future<ContentTemplate> createContentTemplate({
  1. required ContentTemplateCreate body,
})

Creates a new content template. Note, blueprint templates cannot be created via the REST API.

Permissions required: 'Admin' permission for the space to create a space template or 'Confluence Administrator' global permission to create a global template.

Implementation

Future<ContentTemplate> createContentTemplate(
    {required ContentTemplateCreate body}) async {
  return ContentTemplate.fromJson(await _client.send(
    'post',
    'wiki/rest/api/template',
    body: body.toJson(),
  ));
}