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

# EntityFitnesses.update

`PATCH /entities/EntityFitnesses/{id}`

Modifies EntityFitness or EntityFitnesses with given id(s)

## Path parameters

- `id` string, uuid, required

## Query parameters

- `validation-level` integer

## Request body

- UpdateEntityFitnessInput
  - `revision` integer — Revision when entity was lastly changed.
  - `indicator_relations` object[] — Fitness indicators (system or custom rules) defined for this configuration.
    - `id` string, uri

## Response `200`

Modification confirmation. Returns resulting EntityFitness

- object
  - `success` boolean — True when response succeeded, false on error.
  - `data` EntityFitness
    - `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.
    - `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.
    - `lead_type` string, uri — Lead type this fitness configuration applies to. Set when configuring fitness for leads. Relation to LeadType. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'LeadType' object for properties.
    - `oppty_type` string, uri — Opportunity type this fitness configuration applies to. Set when configuring fitness for opportunities. Relation to OpportunityType. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'OpportunityType' object for properties.
    - `lead_type_id` string, uuid — Id of the lead type.
    - `oppty_type_id` string, uuid — Id of the opportunity type.
    - `revision` integer — Revision when entity was lastly changed.
    - `indicator_relations` string[] — Fitness indicators (system or custom rules) defined for this configuration.
    - `entity_type_id` string, uuid, required — Id of the lead or opportunity type this fitness configuration applies to.
    - `entity_type` 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12, required — Entity kind this fitness configuration applies to (Lead or Opportunity). Derived from whichever of lead_type/oppty_type is set. Integer enum value: 1 - Lead, 2 - Account, 3 - Contact, 4 - Opportunity, 5 - Task, 6 - Appointment, 7 - OpptyProductRelation, 8 - Project, 9 - Quote, 10 - OnlineForm, 11 - CustomEntity, 12 - Product

## 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/versions/e8c12ae60aca/schema)
