---
category: [Platform and Product Extensions/Workday Extend, Platform and Product Extensions, Administration & Integrations, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Integration]
keyword: [Extend, Presentation Components, UI components]
nav: wcp_docs
parent_url: /wcp_docs/
title: >- 
  Reference: Mock Data Responses
layout: subsection
---

<a id="section_azc_ksx_rvb"></a>
Mock data responses contain `MockResponse` objects that simulate JSON responses. They're located in the <b>Testing</b> section of App Builder.

## <a id="section_z4m_nhj_rvb"></a>Mock Data Response Examples

```
{
  "id": "mapResponse",
  "responseCode": 200,
  "responseBody": {
    "hello": "hi",
    "bye": [1, 2, 3]
  }
}
 
```

```
{
  "id": "listResponse",
  "responseCode": 201,
  "responseBody": ["this", "is", "a", "list]
}
 
```

```
 
{
  "id": "stringResponse",
  "responseCode": 500,
  "responseBody": "String"
}
 
```

```
{
  "id": "emptyStringResponse",
  "responseCode": 404,
  "responseBody": ""
}
 
```

```
{
  "id": "emptyMapResponse",
  "responseCode": 404,
  "responseBody": {}
}
```

## <a id="section_qqw_v3j_rvb"></a>Attributes

-   <b>id</b>

    Data type: string

    (Required) Unique identifier used to reference this mock response from the mock configuration file. The `id` must:

    -   Match the mock response filename.
    -   Start with a letter and only contain letters, numbers, and underscores.

-   <b>responseBody</b>

    Data type: object node

    (Required) The body of the response. `responseBody` can be any object, such as a string, list, or map.

-   <b>responseCode</b>

    Data type: integer

    The status code of the mock data response. The default value is 200. `` must be a valid HTTP response status code.



### Related Information

[Mock Data](/wcp_docs/fyx1669849518693.html)

[Reference: Mock Data Configuration](/wcp_docs/pqp1669673626830.html)

