Resources Errors

This articles outlines error messages that might be issued when calling endpoints of the Resources API.

Create Resource Errors

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_REQUIREDlocationId is a required field of locationOptions.specificLocationOptions.businessLocationsMake sure that each element in the businessLocations array contains a non-empty ID.
INVALID_ARGUMENT (400)RESOURCE_SPECIFIC_LOCATION_OPTIONS_NOT_ALLOWEDspecificLocationOptions of locationOptions cannot be set if availableInAllLocations is trueMake 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_SETspecificLocationOptions of locationOptions must be set if availableInAllLocations is false or emptyIf 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_TRUEavailable_in_business_locations in locationOptions.specificLocationOptions must be set to trueWhen 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_REQUESTworkingHoursSchedules is currently not supported in bulk requestsAt this time it is not possible to include a resource with working hour schedules in a call to Bulk Create Resources.

Update Resource Errors

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 ResourceWhen updating the name of the resource make sure that the new name is not empty.
INVALID_ARGUMENT (400)RESOURCE_LOCATION_ID_IS_REQUIREDlocationId is a required field of locationOptions.specificLocationOptions.businessLocationsMake sure that each element in the businessLocations array contains a non-empty value.
INVALID_ARGUMENT (400)RESOURCE_SPECIFIC_LOCATION_OPTIONS_NOT_ALLOWEDspecificLocationOptions of locationOptions cannot be set if availableInAllLocations is trueMake 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_SETspecificLocationOptions of locationOptions must be set if availableInAllLocations is false or emptyIf 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_TRUEavailable_in_business_locations in locationOptions.specificLocationOptions must be set to trueWhen availableInAllLocations is false or empty then available_in_business_locations must be set to true.
INVALID_ARGUMENT (400)RESOURCE_WORKING_HOURS_SCHEDULE_ID_IS_REQUIREDscheduleId is a required field of workingHoursSchedules.valuesWhen 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_REQUIREDshared is a required field of workingHoursSchedules.valuesWhen updating the working hour schedules of a resource make sure that shared has a non-empty value.
INVALID_ARGUMENT (400)RESOURCE_TYPE_IS_IMMUTABLEtype is an immutable field and can therefore not be modifiedThe type field of a resource cannot be updated.
Did this help?