Templates

Duplicate a template

Changed on

Create a copy of an existing template. Optionally override the title and target collection.

post/templates.duplicate

Request

  • Base URL
    https://app.getoutline.com/api
  • URL
    https://app.getoutline.com/api/templates.duplicate
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization code: https://app.getoutline.com/oauth/authorize
      Token URL: https://app.getoutline.com/oauth/token scopes: read, write

Request body

idstring required

Unique identifier for the template to duplicate. Either the UUID or the urlId is acceptable.

titlestring

Override the title of the duplicated template.

collectionIdstring uuid nullable

Identifier for the collection to place the duplicated template in. If not provided, uses the original template's collection.

Response

OK

Example response

{
  "data": {
    "createdBy": {
      "name": "Jane Doe"
    },
    "updatedBy": {
      "name": "Jane Doe"
    }
  },
  "policies": [
    {
      "abilities": {
        "read": true,
        "update": true,
        "delete": false
      }
    }
  ]
}

Changes

    • info

      added the optional property / to the response with the status

    • info

      response property data/url deprecated

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status