# Update a web app's name, URL, icon, or project

Personal name/email disclosure preferences and sign-in consent require a signed-in session and cannot be changed here. Moving the URL to a new origin clears consent.

HTML: https://notify.belweave.ai/docs/api/patchAppsId

Required scopes: `apps:write`

```http
PATCH /api/agent/apps/{id}
Authorization: Bearer ntf_your_token
```

## Operation schema

```json
{
  "summary": "Update a web app's name, URL, icon, or project",
  "description": "Personal name/email disclosure preferences and sign-in consent require a signed-in session and cannot be changed here. Moving the URL to a new origin clears consent.",
  "operationId": "patchAppsId",
  "security": [
    {
      "bearer": [
        "apps:write"
      ]
    }
  ],
  "x-notify-scopes": [
    "apps:write"
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "schema": {
        "type": "string"
      },
      "required": true
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            },
            "url": {
              "type": "string",
              "maxLength": 2048,
              "format": "uri"
            },
            "iconUrl": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048,
                  "format": "uri"
                },
                {
                  "type": "null"
                }
              ]
            },
            "project": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "additionalProperties": false
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "app": {
                "$ref": "#/components/schemas/App"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "app"
            ]
          }
        }
      }
    },
    "400": {
      "description": "Invalid request",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "401": {
      "description": "Missing, unknown, revoked, or expired token",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The token lacks a required scope or the account lacks permission",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Not found for this account",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}
```

Resolve schema references against [OpenAPI](https://notify.belweave.ai/openapi.json).
