Product management
ReferenceProduct management

deleteUnitSpace mutation

Deletes a space from a unit. The space ID is required. Refer to updateUnit to delete unit data, such as its size or an amenity.

Note: You cannot delete all spaces. A minimum of one bedroom and one bathroom space must exist for a unit.

Syntax

1mutation {
2 deleteUnitSpace(
5}

Example

1mutation {
2 deleteUnitSpace(
3 input: {
4 spaceId: "3920jf236",
5 unitId: "00je08374",
6 propertyId: "d407e1545",
7 clientMutationId: "7125dea-94543-ef6"
8 }
9 ) {
10 clientMutationId
11 }
12}

Arguments

NameDescription

input

Required.
Type: DeleteUnitSpaceInput

Types


Name
Type
DeleteUnitSpaceInput
InputObject

IDs for the space to be deleted.

FieldDescription
clientMutationId

Partner's transaction ID that uniquely identifies the request, which can be used to associate requests and responses for troubleshooting purposes. This ID must be unique across requests and cannot be reused. However, if a request needs to be retried, such as because it failed or timed out, the ID provided in the original request should be used. The ID can be in any format as long as it uniquely identifies the request.

Type: String
propertyIdNot nullable.

Expedia property ID to which the unit belongs.

Type: ID
spaceIdNot nullable.

Space ID to delete.

Type: ID
unitIdNot nullable.

Unit ID that includes the space to be deleted.

Type: ID
DeleteUnitSpacePayload
Object

Payload after deleting a unit space.

FieldDescription
clientMutationId

Partner's transaction ID that identifies the request, which can be used to correlate with partner's transaction logs. This ID must be unique across requests and cannot be reused.

Type: String
ID
ID

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

String
String

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.