# bow_resource.postresourcebooking: Bouw7 Package for resource operations that could not be mapped to a table.
bow_resource.postresourcebooking: Bouw7 Package for resource operations that could not be mapped to a table.
Creates or updates a resource booking for the currently authenticated user.Parameters of Procedure
The following parameters can be used to control the behaviour of the procedure `bow_resource.postresourcebooking`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `begin package.procedure(value1, value2, value3); end` on a procedure with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `begin package.procedure(name1 => value1, name3 => value3); end` on the same procedure will use the default values for the second and fourth parameters and the specified values for the first and third.
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `id` | `int64` | ☐ | | The unique identifier of the resource booking. |
| `type` | `string` | ☑ | | Resource type, possible values: equipment. |
| `id_2` | `int64` | ☐ | | The unique identifier of the project the resource belongs to. |
| `name` | `string` | ☐ | | The name of the project the resource belongs to. |
| `id_3` | `int64` | ☐ | | The unique identifier of the project security link. |
| `name_2` | `string` | ☐ | | The name of the project security link. |
| `chapterName` | `string` | ☐ | | The name of the project security chapter. |
| `status` | `int64` | ☐ | | The status of the project security link. |
| `id_4` | `int64` | ☐ | | The unique identifier of the resource. |
| `name_3` | `string` | ☐ | | The name of the resource. |
| `id_5` | `int64` | ☐ | | The unique identifier of the resource group. |
| `name_4` | `string` | ☐ | | The name of the resource group. |
| `id_6` | `int64` | ☐ | | The unique identifier of the resource unit. |
| `amount` | `string` | ☑ | | The amount of the resource booking. |
| `price` | `string` | ☐ | | The price of this booking, if this is not provided, the price of the unit will be used for the booking. |
| `priceTotal` | `string` | ☐ | | The total price of this booking. |
| `sellingPrice` | `string` | ☐ | | The selling price of this booking. |
| `sellingPriceTotal` | `string` | ☐ | | The total selling price of this booking. |
| `logDate` | `datetime` | ☑ | | The cost price of this booking. |
| `comment` | `string` | ☐ | | The comment of this booking. |
| `createdAt` | `datetime` | ☐ | | The creation time of the entity. |
| `createdBy` | `string` | ☐ | | The user that created the entity. |
| `updatedAt` | `datetime` | ☐ | | The last updated time of the entity. |
| `updatedBy` | `string` | ☐ | | The user that last updated the entity. |