---
title: "ProjectTypes.update"
method: PATCH
path: "/entities/ProjectTypes/{id}"
tags: ["Project"]
---

# ProjectTypes.update

`PATCH /entities/ProjectTypes/{id}`

Modifies ProjectType or ProjectTypes with given id(s)

## Path parameters

- `id` string, uuid, required

## Query parameters

- `validation-level` integer

## Request body

- UpdateProjectTypeInput
  - `form_edit` object — JSON definition of the form layout used by the UI when creating or editing projects of this type.
  - `icon` 0 | 1 — Icon used to display projects of this type in the UI (e.g. GeneralIcon, Account). Integer enum value: 0 - GeneralIcon, 1 - Account
  - `is_readonly` boolean — True when the project type is system-managed and cannot be edited or deleted by users.
  - `name` string — Name of the entity and its default text representation.
  - `settings` string, binary — Per-type configuration for records of this entity type, e.g. allowed task and appointment types that may be linked to records of this type.
  - `revision` integer — Revision when entity was lastly changed.

## Response `200`

Modification confirmation. Returns resulting ProjectType

- object
  - `success` boolean — True when response succeeded, false on error.
  - `data` ProjectType
    - `has_draft` boolean, required — Set to True if draft for entity exists and can be published
    - `is_delete_protected` boolean, required — Tells if the entity instance is protected against delete (Entities that need to be present in the system at any time). Delete action still may fail if entity is deletable, due some other additional validations.
    - `form_edit_api` object, required — API-friendly form definition. Returns the published form merged with any pending draft changes; read via this field, modify via the underlying form_edit / form_lost field through drafts.
    - `can_change_readonly` boolean — Returns if user can change readonly flag on this entity_type.
    - `id` string, uuid, required — Unique identifier of entity.
    - `is_deleted` boolean — Specifies if the entity is considered deleted.
    - `modified` string, date-time — Last modification time.
    - `created` string, date-time — Creation time.
    - `form_edit` object — JSON definition of the form layout used by the UI when creating or editing projects of this type.
    - `icon` 0 | 1 — Icon used to display projects of this type in the UI (e.g. GeneralIcon, Account). Integer enum value: 0 - GeneralIcon, 1 - Account
    - `is_readonly` boolean, required — True when the project type is system-managed and cannot be edited or deleted by users.
    - `name` string, required — Name of the entity and its default text representation.
    - `settings` string, binary, required — Per-type configuration for records of this entity type, e.g. allowed task and appointment types that may be linked to records of this type.
    - `is_published` boolean — True when the entity configuration is published; false while it exists only as an unpublished draft.
    - `revision` integer — Revision when entity was lastly changed.

## Other responses

- `404` — Sent when invalid ID is given
- `500` — unexpected error

---

[API](https://skmtc.net/aws/apis/pipeliner-cloud-api.md) · [All operations](https://skmtc.net/aws/apis/pipeliner-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/pipeliner-cloud-api/revisions/e8c12ae60aca/schema)
