Skip to content

List all templates of a particular type

GET
/api/v4/projects/{id}/templates/{type}

Lists all templates of a specified type for a project.

id
required
One of:
string

The ID or URL-encoded path of the project

type
required
string
>= 1 characters
Allowed values: dockerfiles gitignores gitlab_ci_ymls licenses issues merge_requests

The type (dockerfiles|gitignores|gitlab_ci_ymls|licenses|issues|merge_requests) of the template

page
integer
default: 1 nullable

Current page number

Example
1
per_page
integer
default: 20 nullable

Number of items per page

Example
20

OK

Media type application/json
object
key
string
name
string
Example
{
"key": "mit",
"name": "MIT License"
}

Bad Request

Unauthorized

Not found