---
updatedAt: 2025-03-10T14:14:15.000Z
agentTools:
  projectIndex: https://docs.umbrellacost.io/llms.txt
---

# Edit Cost Event

The call is used to update budget created by api-key defined user

The response will contain the updated event in the regular structure.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Advanced services",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.umbrellacost.io"
    }
  ],
  "x-readme": {
    "explorer-enabled": false
  },
  "paths": {
    "/api/v1/users/events/{event-id}": {
      "put": {
        "description": "The call is used to update budget created by api-key defined user",
        "summary": "Edit Cost Event",
        "tags": [
          "Cost Events"
        ],
        "operationId": "put_apiv1usersevents{event-id}",
        "responses": {
          "200": {
            "description": ""
          }
        },
        "parameters": [
          {
            "name": "event-id",
            "in": "path",
            "required": true,
            "description": "The event ID to update\t",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "description": "",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "apikey",
            "in": "header",
            "required": true,
            "description": "",
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "x-readme": {
          "code-samples": [
            {
              "code": "curl --location --request PUT 'https://api.umbrellacost.io/api/v1/users/events/{event-id}' \\\n--header 'apikey: {{account-api-key}}' \\\n--header 'Authorization: {{Bearer-token}}' \\\n--header 'commonParams: {\"isPpApplied\":false}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n  \"title\": \"The Big API Palooza III\",\n  \"description\": \"Its time to get the API going!\",\n  \"date\": \"2022-07-07\",\n  \"createdBy\": \"Ragnar Lothbrok\"\n}'",
              "language": "shell",
              "name": ""
            }
          ],
          "samples-languages": [
            "shell"
          ]
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "Event title",
                    "x-readme-id": "0.0"
                  },
                  "description": {
                    "type": "string",
                    "description": "Event description",
                    "x-readme-id": "0.1"
                  },
                  "date": {
                    "type": "string",
                    "format": "date",
                    "description": "The event date",
                    "x-readme-id": "0.2"
                  },
                  "createdBy": {
                    "type": "string",
                    "description": "Name of the event creator",
                    "x-readme-id": "0.3"
                  }
                },
                "type": "object",
                "required": [
                  "title",
                  "createdBy",
                  "date"
                ]
              }
            }
          }
        }
      }
    }
  }
}
```