> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFDataSetObject

> PFDataSetObject data model.

PFDataSetObject data model.

## Syntax

```cpp theme={null}
typedef struct PFDataSetObject {  
    PFJsonObject dataObject;  
    bool const* deleteObject;  
    const char* escapedDataObject;  
    const char* objectName;  
} PFDataSetObject;  
```

### Members

**`dataObject`**   [PFJsonObject](/services/playfab/api-references/c/pftypes/structs/pfjsonobject)

(Optional) Body of the object to be saved. If empty and DeleteObject is true object will be deleted if it exists, or no operation will occur if it does not exist. Only one of Object or EscapedDataObject fields may be used.

**`deleteObject`**   bool const\*<br />*may be nullptr*

(Optional) Flag to indicate that this object should be deleted. Both DataObject and EscapedDataObject must not be set as well.

**`escapedDataObject`**   const char\*<br />*is null-terminated*

(Optional) Body of the object to be saved as an escaped JSON string. If empty and DeleteObject is true object will be deleted if it exists, or no operation will occur if it does not exist. Only one of DataObject or EscapedDataObject fields may be used.

**`objectName`**   const char\*<br />*is null-terminated*

Name of object. Restricted to a-Z, 0-9, '(', ')', '\_', '-' and '.'.

## Requirements

**Header:** PFDataTypes.h

## See also

[PFDataTypes members](/services/playfab/api-references/c/pfdatatypes/pfdatatypes_members)


## Related topics

- [PFDataSetObjectsRequest](/services/playfab/api-references/c/pfdatatypes/structs/pfdatasetobjectsrequest.md)
- [Services C API overview - PFDataTypes.h](/services/playfab/api-references/c/pfdatatypes/pfdatatypes_members.md)
- [PFDataSetObjectInfo](/services/playfab/api-references/c/pfdatatypes/structs/pfdatasetobjectinfo.md)
- [PFDataSetObjectsResponse](/services/playfab/api-references/c/pfdatatypes/structs/pfdatasetobjectsresponse.md)
- [PFDataSetObjectsAsync](/services/playfab/api-references/c/pfdata/functions/pfdatasetobjectsasync.md)
