> For the complete documentation index, see [llms.txt](https://help.novacuraflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.novacuraflow.com/6.12/development/flow-studio/connectors/communication/rest-service/rest-project-tool/enumerations.md).

# Enumerations

Enumerations can be used in models to limit the possible values a workflow designer can assign to a member of a model.

Consider for instance an API for 'orders' in a 'store'. We got the operations 'Add new order', 'Update order' and 'Delete order'. Let's look at the 'Order' model:&#x20;

![](https://3419513391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M77ZqQL2FLJLj9rSZ7c%2F-M77Ztq08nEPAOBIANO5%2Fhelp_root_connectors_communication_rest_enum_1.png?alt=media\&token=2c4de9bd-7729-4485-b107-0cd76ea00f5f)

'status' is of type 'Enum':&#x20;

![](https://3419513391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M77ZqQL2FLJLj9rSZ7c%2F-M77ZwtG1YYci5HenoOG%2Fhelp_root_connectors_communication_rest_enum_2.png?alt=media\&token=766ada09-74fe-46e8-9db9-5cf9ee61d2a7)

And if we look at that enum you can see what possible values that member can have. You can add or delete memberse using the buttons in the circled area.&#x20;

![](https://3419513391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M77ZqQL2FLJLj9rSZ7c%2F-M77_-mgyV4XLJBzlQQa%2Fhelp_root_connectors_communication_rest_enum_3.png?alt=media\&token=fdedbb65-7bb3-4c91-a8b4-7de7cb3d63e8)

Let's look at an operation using the 'Order' model, 'Update order'&#x20;

![](https://3419513391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M77ZqQL2FLJLj9rSZ7c%2F-M77_4GP-MrYSrO4QzH7%2Fhelp_root_connectors_communication_rest_enum_4.png?alt=media\&token=d9c2e2b5-d753-4972-bc85-ac8920741492)

![](https://3419513391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M77ZqQL2FLJLj9rSZ7c%2F-M77_7UrhyNN3g3RKTB_%2Fhelp_root_connectors_communication_rest_enum_5.png?alt=media\&token=6e5de68c-fa8b-4d60-98c2-829914ac1c8c)

It uses 'PATCH' to only update certain members, accepting a body of model 'Order'. Let's look how this will look in Flow Studio:

![](https://3419513391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-M77ZqQL2FLJLj9rSZ7c%2F-M77_G8fIfNa4xXaVTBi%2Fhelp_root_connectors_communication_rest_enum_6.png?alt=media\&token=58a45050-450f-418b-8c0a-278ef9c7b0bf)

When using 'Constant' as mapping to 'status' only the members of the enum are available. You can still mess it up by selecting 'Variable' as mapping and providing an invalid value in the passed variable. But with the usage of enums you can at least guide the person using the connector in Flow Studio in what kind of values are expected.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.novacuraflow.com/6.12/development/flow-studio/connectors/communication/rest-service/rest-project-tool/enumerations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
