updateContentTemplate method

Future<ContentTemplate> updateContentTemplate({
  1. required ContentTemplateUpdate body,
})

Updates a content template. Note, blueprint templates cannot be updated via the REST API.

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

Implementation

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