PATCH Accommodation by id

Overview

Update/Modify accommodation by ID

Request

PATCH /Accommodation/[id]

Request Information

Request Parameters

Name
Type
Requirement
Description
id
Integer
Mandatory
ID of the accommodation
customers
List<HrefWrapper>
Mandatory
URIs of customers to book on the accommodation that has already been added to booking
Existing customers on the accommodation will not be affected – this only books new customers on the accommodation

Customers

Name
Type
Requirement
Description
href
String
Optional
URI of the resource

Request Example

{
  "customers": [
    {
      "href": "/bookings/5057124/customers/4945397"
    },
    {
      "href": "/bookings/5057124/customers/4945397"
    }
  ]
}

Response Information

Response Codes

HTTP status code
Description
200 OK
The resource was updated successfully
202 Accepted
The request was accepted
400 Bad Request
The resource was malformed
401 Unauthorized
Missing or invalid API key
403 Forbidden
One or more parameters has already been set on the resource record and cannot be updated
404 Not Found
The specified resource was not found
500 Internal Server Error
An unexpected error occurred on the API server