| Requires any of the roles: | bookingsupplier-administrator-write, superadmin | 
| PUT | /resourcetypes/{Id} | Update existing resourcetype | Updates an existing resourcetype if you are authorized to do so. | 
|---|
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| CompanyId | body | Guid? | No | The company id, if empty will use the company id for the user you are logged in with. | 
| Id | path | int | Yes | Id of the resourcetype | 
| Resources | body | List<UpdateResourceTypeResource> | Yes | The resources to be added | 
| Name | body | string | Yes | The resourcetype name | 
| Description | body | string | Yes | The resourcetype description | 
| Active | body | bool | No | If resourcetype is active or not | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| Id | form | int | No | The resource id | 
| Priority | form | int | No | The priority of the resource | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| Id | form | int | No | The resourcetype id | 
| Name | form | string | Yes | The resourcetype name | 
| Description | form | string | Yes | The resourcetype description | 
| Resources | form | List<ResourceTypeResource> | Yes | The resources in the resourcetype. Only shows active resources if not admin. | 
| Active | form | bool | No | If resourcetype is active or not | 
| Created | form | DateTime | No | The date when the resource was created | 
| Updated | form | DateTime | No | The date when the resource was updated | 
| Name | Parameter | Data Type | Required | Description | 
|---|---|---|---|---|
| Id | form | int | No | The resource id | 
| Name | form | string | Yes | The resource name | 
| Active | form | bool | No | The resource status | 
| Description | form | string | Yes | The resource description | 
| form | string | Yes | The resource email | |
| Phone | form | string | Yes | The resource phone | 
| Color | form | string | Yes | The resource color | 
| ImageUrl | form | Uri | Yes | The resource image | 
| Priority | form | int | No | The priority of the resource | 
| EmailNotification | form | bool | No | If the resource wants to receive Email notifications | 
| SMSNotification | form | bool | No | If the resource wants to receive SMS notifications | 
| EmailReminder | form | bool | No | If the resource wants to receive Email reminders | 
| SMSReminder | form | bool | No | If the resource wants to receive SMS reminders | 
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /resourcetypes/{Id} HTTP/1.1 
Host: testapi.bokamera.se 
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateResourceType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos">
  <Active>false</Active>
  <CompanyId>00000000-0000-0000-0000-000000000000</CompanyId>
  <Description>String</Description>
  <Id>0</Id>
  <Name>String</Name>
  <Resources>
    <UpdateResourceTypeResource>
      <Id>0</Id>
      <Priority>0</Priority>
    </UpdateResourceTypeResource>
  </Resources>
</UpdateResourceType>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ResourceTypeQueryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos">
  <Active>false</Active>
  <Created>0001-01-01T00:00:00</Created>
  <Description>String</Description>
  <Id>0</Id>
  <Name>String</Name>
  <Resources>
    <ResourceTypeResource>
      <Active>false</Active>
      <Color>String</Color>
      <Description>String</Description>
      <Email>String</Email>
      <EmailNotification>false</EmailNotification>
      <EmailReminder>false</EmailReminder>
      <Id>0</Id>
      <ImageUrl i:nil="true" />
      <Name>String</Name>
      <Phone>String</Phone>
      <Priority>0</Priority>
      <SMSNotification>false</SMSNotification>
      <SMSReminder>false</SMSReminder>
    </ResourceTypeResource>
  </Resources>
  <Updated>0001-01-01T00:00:00</Updated>
</ResourceTypeQueryResponse>