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

# Create Cost Event

The call is used to create events created by api-key defined user

# 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": {
      "post": {
        "description": "The call is used to create events created by api-key defined user",
        "summary": "Create Cost Event",
        "tags": [
          "Cost Events"
        ],
        "operationId": "post_apiv1usersevets",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "account_id": {
                      "type": "string",
                      "description": ""
                    },
                    "uuid": {
                      "type": "string",
                      "description": ""
                    },
                    "account_key": {
                      "type": "string",
                      "description": ""
                    },
                    "division_id": {
                      "type": "string",
                      "description": ""
                    },
                    "user_key": {
                      "type": "string",
                      "description": ""
                    },
                    "creation_time": {
                      "type": "string",
                      "description": ""
                    },
                    "created_by": {
                      "type": "string",
                      "description": ""
                    },
                    "title": {
                      "type": "string",
                      "description": ""
                    },
                    "description": {
                      "type": "string",
                      "description": ""
                    },
                    "date": {
                      "type": "string",
                      "description": ""
                    },
                    "estimation": {
                      "type": "integer",
                      "description": ""
                    }
                  }
                },
                "examples": {
                  "newExample": {
                    "summary": "Responses Example",
                    "value": {
                      "account_id": "{{acccountID}}",
                      "uuid": "fd50e8f0-823a-456e-9df8-7e14f8df3fb7",
                      "account_key": "{{accountKey}}",
                      "division_id": "0",
                      "user_key": "{{user-Key}}",
                      "creation_time": "2022-07-07 13:00:50",
                      "created_by": "Umbrella User",
                      "title": "The Big API Palooza II",
                      "description": "Its time to get the API going!",
                      "date": "2022-07-07",
                      "estimation": 100
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "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 POST 'https://api.umbrellacost.io/api/v1/users/events' \\\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 II\",\n  \"description\": \"Its time to get the API going!\",\n  \"date\": \"2022-07-07\",\n  \"createdBy\": \"Umbrella User\",\n  \"estimation\" : 100\n}'",
              "language": "shell",
              "name": ""
            }
          ],
          "samples-languages": [
            "shell"
          ]
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "Event title\t",
                    "x-readme-id": "0.0"
                  },
                  "description": {
                    "type": "string",
                    "description": "Event description\t",
                    "x-readme-id": "0.1"
                  },
                  "date": {
                    "type": "string",
                    "format": "date",
                    "description": "Event date\t",
                    "x-readme-id": "0.2"
                  },
                  "createdBy": {
                    "type": "string",
                    "description": "Name of user creating the event\t",
                    "x-readme-id": "0.3"
                  },
                  "estimation": {
                    "type": "integer",
                    "description": "$ value of the event\t",
                    "x-readme-id": "0.4"
                  }
                },
                "type": "object",
                "required": [
                  "title",
                  "description",
                  "date",
                  "createdBy"
                ]
              }
            }
          }
        }
      }
    }
  }
}
```