This articles outlines error messages that might be issued when calling endpoints of the Resources API.
The Create Resource and Bulk Create Resource endpoints might issue the following error messages:
HTTP status | Error code | Error message | Troubleshooting |
---|---|---|---|
INVALID_ARGUMENT (400) | RESOURCE_LOCATION_ID_IS_REQUIRED | locationId is a required field of locationOptions.specificLocationOptions.businessLocations | Make sure that each element in the businessLocations array contains a non-empty ID. |
INVALID_ARGUMENT (400) | RESOURCE_SPECIFIC_LOCATION_OPTIONS_NOT_ALLOWED | specificLocationOptions of locationOptions cannot be set if availableInAllLocations is true | Make sure that a resource is specified to be available at all locations by setting availableInAllLocations to true or at specific locations only by setting specificLocationOptions . |
INVALID_ARGUMENT (400) | RESOURCE_SPECIFIC_LOCATION_OPTIONS_MUST_BE_SET | specificLocationOptions of locationOptions must be set if availableInAllLocations is false or empty | If the resource is not available at any location, then supply the specificLocationOptions field to specify the locations the resource is available. |
INVALID_ARGUMENT (400) | RESOURCE_AVAILABLE_IN_BUSINESS_LOCATION_MUST_BE_TRUE | available_in_business_locations in locationOptions.specificLocationOptions must be set to true | When availableInAllLocations is false or empty then available_in_business_locations must be set to true . |
INVALID_ARGUMENT (400) | RESOURCE_WORKING_HOURS_NOT_SUPPORTED_IN_BULK_REQUEST | workingHoursSchedules is currently not supported in bulk requests | At this time it is not possible to include a resource with working hour schedules in a call to Bulk Create Resources. |
The Update Resource endpoint might issue the following error messages:
HTTP status | Error code | Error message | Troubleshooting |
---|---|---|---|
INVALID_ARGUMENT (400) | RESOURCE_NAME_IS_REQUIRED | 'name' is a required field of Resource | When updating the name of the resource make sure that the new name is not empty. |
INVALID_ARGUMENT (400) | RESOURCE_LOCATION_ID_IS_REQUIRED | locationId is a required field of locationOptions.specificLocationOptions.businessLocations | Make sure that each element in the businessLocations array contains a non-empty value. |
INVALID_ARGUMENT (400) | RESOURCE_SPECIFIC_LOCATION_OPTIONS_NOT_ALLOWED | specificLocationOptions of locationOptions cannot be set if availableInAllLocations is true | Make sure that a resource is specified to be available at all locations by setting availableInAllLocations to true or at specific locations only by setting specificLocationOptions . |
INVALID_ARGUMENT (400) | RESOURCE_SPECIFIC_LOCATION_OPTIONS_MUST_BE_SET | specificLocationOptions of locationOptions must be set if availableInAllLocations is false or empty | If the resource is not available at any location, then supply the specificLocationOptions field to specify the locations the resource is available. |
INVALID_ARGUMENT (400) | RESOURCE_AVAILABLE_IN_BUSINESS_LOCATION_MUST_BE_TRUE | available_in_business_locations in locationOptions.specificLocationOptions must be set to true | When availableInAllLocations is false or empty then available_in_business_locations must be set to true . |
INVALID_ARGUMENT (400) | RESOURCE_WORKING_HOURS_SCHEDULE_ID_IS_REQUIRED | scheduleId is a required field of workingHoursSchedules.values | When updating the working hour schedules of a resource make sure that scheduleId has a non-empty value. |
INVALID_ARGUMENT (400) | RESOURCE_WORKING_HOURS_SHARED_IS_REQUIRED | shared is a required field of workingHoursSchedules.values | When updating the working hour schedules of a resource make sure that shared has a non-empty value. |
INVALID_ARGUMENT (400) | RESOURCE_TYPE_IS_IMMUTABLE | type is an immutable field and can therefore not be modified | The type field of a resource cannot be updated. |