# displayOrder API param not working / Schema Endpoint

**URL:** <https://community.hubspot.com/t/displayorder-api-param-not-working-schema-endpoint/102254>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [March 11, 2024, 6:34pm UTC](https://community.hubspot.com/t/displayorder-api-param-not-working-schema-endpoint/102254 "2024-03-11T18:34:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ACarrillo7](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@ACarrillo7](https://community.hubspot.com/u/ACarrillo7)\
**Post date:** [March 11, 2024, 6:34pm UTC](https://community.hubspot.com/t/displayorder-api-param-not-working-schema-endpoint/102254/1 "2024-03-11T18:34:47Z")

</div>

Hey everyone, I’m having some issues when creating a new schema.

I want to set the order in which the properties should appear in the UI but for some reason, is not working.

Payload:

```lia-code-sample
{
 "labels": {
 "singular": "playstation",
 "plural": "playstations"
 },
 "requiredProperties": [
 "name"
 ],
 "searchableProperties": [
 "name",
 "description"
 ],
 "primaryDisplayProperty": "name",
 "secondaryDisplayProperties": [
 "description"
 ],
 "properties": [
 {
 "name": "name",
 "label": "Name",
 "type": "string",
 "fieldType": "text",
 "description": "",
 "groupName": "playstation_information",
 "displayOrder": 1,
 "isPrimaryDisplayLabel": true,
 "optionSortStrategy": "DISPLAY_ORDER"
 },
 {
 "name": "description",
 "label": "Description",
 "type": "string",
 "fieldType": "text",
 "description": "",
 "groupName": "playstation_information",
 "displayOrder": 2,
 "optionSortStrategy": "DISPLAY_ORDER"
 },
 {
 "name": "date",
 "label": "Date",
 "type": "datetime",
 "fieldType": "date",
 "description": "",
 "groupName": "playstation_information",
 "displayOrder": 3,
 "optionSortStrategy": "DISPLAY_ORDER"
 },
 {
 "name": "time",
 "label": "Time",
 "type": "number",
 "fieldType": "number",
 "description": "",
 "groupName": "playstation_information",
 "displayOrder": 4,
 "optionSortStrategy": "DISPLAY_ORDER" 
 }
 ],
 "name": "playstation" 
 }

```

And the result in HS UI:

 ![ACarrillo7_0-1710181962483.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/f/0ff3735ed193c3b30fe0a78329f13e2eb9800e6f.png)

The correct order should be:

1. name

2. description

3. date

4. time

Any idea on why the Date field is being displayed first?

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [March 12, 2024, 4:00pm UTC](https://community.hubspot.com/t/displayorder-api-param-not-working-schema-endpoint/102254/2 "2024-03-12T16:00:08Z")

</div>

Hi @ACarrillo7

The code is correct and works fine. The problem is with the order display for this you can go to the edit form setting and change the order, set it according to your requirements.

 ![GRajput_0-1710232477365.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/0/d08302cfa3b9797667f9faaa2ad9f0fa5ddbb356.png)

I hope this will help you out. Please mark it as **Solution Accepted and upvote** to help another Community member.  
Thanks!

---

<div class="post-metadata">

**Author:** ![ACarrillo7](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@ACarrillo7](https://community.hubspot.com/u/ACarrillo7)\
**Post date:** [March 12, 2024, 6:55pm UTC](https://community.hubspot.com/t/displayorder-api-param-not-working-schema-endpoint/102254/3 "2024-03-12T18:55:06Z")

</div>

Thanks for your response Gaurav!

I don’t want to change the order manually. From what I read in the docs you can set an order using this parameter

`"displayOrder": 4,`

but it doesn’t work or amI not understanding what this parameter is used for?

---

<div class="post-metadata">

**Author:** ![MattPickle](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mattpickle/32/84631_2.png) [@MattPickle](https://community.hubspot.com/u/MattPickle)\
**Post date:** [March 12, 2024, 7:52pm UTC](https://community.hubspot.com/t/displayorder-api-param-not-working-schema-endpoint/102254/4 "2024-03-12T19:52:44Z")

</div>

I think there may be a mistake in the docs. “displayOrder” is something you can set for each option in the options array of a dropdown property, but not for the property itself. You can see how displayOrder is used in the response example in the docs.

 ![Screenshot 2024-03-12 at 2.49.15 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/d/cdad1403549ff9707a892a23350166b986504dd8.png)

What you’re looking at is the form to create a new object, which I believe can only be updated manually. The properties in the sidebar view of a record can also be re-ordered, but I don’t think it can be done through the API. The main “View All Properties” list for a record is alphabetical within each group, and that can’t be changed.
