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

# Webresources.update

`PATCH /entities/Webresources/{id}`

Modifies Webresource or Webresources with given id(s)

## Path parameters

- `id` string, uuid, required

## Query parameters

- `validation-level` integer

## Request body

- UpdateWebresourceInput
  - `display_param` string — Bit flag controlling how the web resource is displayed (e.g. full-screen, in a tab).
  - `entity` string — Name of the entity the web resource is attached to (e.g. "Account", "Lead").
  - `name` string — Name of the entity and its default text representation.
  - `request_method` 1 | 2 — Field whose values are strictly defined with an enumeration of values. Integer enum value: 1 - Get, 2 - Post
  - `url` string — URL template for the embedded web resource. May reference field values via "{#<field_id>}" placeholders that are substituted with the current record's values.
  - `revision` integer — Revision when entity was lastly changed.

## Response `200`

Modification confirmation. Returns resulting Webresource

- object
  - `success` boolean — True when response succeeded, false on error.
  - `data` Webresource
    - `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.
    - `has_draft` boolean, required — Set to True if draft for entity exists and can be published
    - `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.
    - `display_param` string, required — Bit flag controlling how the web resource is displayed (e.g. full-screen, in a tab).
    - `entity` string, required — Name of the entity the web resource is attached to (e.g. "Account", "Lead").
    - `name` string, required — Name of the entity and its default text representation.
    - `request_method` 1 | 2 — Field whose values are strictly defined with an enumeration of values. Integer enum value: 1 - Get, 2 - Post
    - `url` string — URL template for the embedded web resource. May reference field values via "{#<field_id>}" placeholders that are substituted with the current record's values.
    - `is_published` boolean — True when the web resource 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/versions/e8c12ae60aca/schema)
