Technology template

Update a technology template

Updates a technology template.

patch/template/{id}

Path parameters

idinteger required

The unique ID for the technology template.

Request body

namestring

The name of the technology template (e.g., node, java-spring, go, kotlin-ktor).

urlstring

The URL of the template in the repository.

organizationinteger

The ID of the organization.

accountinteger

The ID of account.

status'active' | 'inactive'

The status of the template.

tagsstring[]

Tags associated with the template (e.g., node, nextjs, frontend)

rulesobject

Defines rules for enforcing naming conventions and structuring repository paths.

Example request

{
  "name": "Next.JS 13",
  "organization": 234,
  "account": 345,
  "status": "active",
  "url": "https://github.com/nullplatform/technology-templates-nextjs",
  "provider": {
    "repository": "technology-templates-nextjs"
  },
  "components": [
    {
      "type": "language",
      "id": "javascript",
      "version": "es6"
    },
    {
      "type": "framework",
      "id": "next.js",
      "version": "13"
    }
  ],
  "rules": {
    "application_name": "^(.*)-api$",
    "repository_path": "s/^(.*)-(.*)$/${namespace.slug}-golang-${1}-${2}/g"
  },
  "tags": [
    "javascript",
    "frontend",
    "nextjs"
  ],
  "metadata": {
    "key": "value",
    "schemas": [
      {
        "schema": "schema1"
      },
      {
        "schema": "schema2"
      }
    ],
    "tags": [
      {
        "key": "tag1",
        "value": "value1"
      },
      {
        "key": "tag2",
        "value": "value2"
      }
    ]
  }
}

Response

The operation was successful.

idinteger

The ID of the template.

namestring

The name of the technology template (e.g., node, java-spring, go, kotlin-ktor).

urlstring

The URL of the template in the repository.

tagsstring[]

Tags associated with the template (e.g., node, nextjs, frontend).

updated_atstring date-time nullable

The ISO-8601 UTC timestamp of when the technology template was last updated.

created_atstring date-time

The ISO-8601 UTC timestamp of when the technology template was created.

Example response

{
  "id": 123,
  "name": "Next.JS 13 template",
  "url": "https://github.com/nullplatform/technology-templates-nextjs",
  "provider": {
    "repository": "technology-templates-nextjs"
  },
  "components": [
    {
      "type": "language",
      "id": "javascript-language",
      "version": "1.0"
    }
  ],
  "updated_at": "2021-01-02T00:00:00Z",
  "created_at": "2021-01-02T00:00:00Z"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.