# Enable the Data API **POST /groups/{groupId}/apps/{appId}/data_api/config** Create your app's [Data API](https://www.mongodb.com/zh-cn/docs/atlas/app-services/data-api/generated-endpoints/) configuration. ## Servers - The root API resource and starting point for the App Services API.: https://services.cloud.mongodb.com/api/admin/v3.0 (The root API resource and starting point for the App Services API.) ## Authentication methods - Token auth ## Parameters ### Path parameters - **groupId** (string) An Atlas [Project/Group ID](https://docs.atlas.mongodb.com/tutorial/manage-projects/). - **appId** (string) The ObjectID of your application. [The App Services API Project and Application IDs section](#section/Project-and-Application-IDs) demonstrates how to find this value. ### Body: application/json (object | null) A valid [configuration object](https://www.mongodb.com/zh-cn/docs/atlas/app-services/reference/config/https_endpoints/#data-api-configuration) for the endpoint. - **disabled** (boolean) - **versions** (array[string]) A supported version of the Data API. - **return_type** (string) A [data format](https://mongodb.com/docs/atlas/app-services/data-api/#data-formats) supported by the Data API & custom endpoints. - **create_user_on_auth** (boolean) - **run_as_user_id** (string) An application user's account ID. If defined, endpoints will always run as the specified user. - **run_as_user_id_script_source** (string) Stringified source code for a function that returns an application user's account ID. If defined, endpoints execute the function on every request and run as the user with the ID returned from the function. - **validation_method** (string) - **secret_name** (string) If `validation_method` is set to `"SECRET_AS_QUERY_PARAM"` or `"VERIFY_PAYLOAD"`, this is the `name` of the [Secret](https://www.mongodb.com/zh-cn/docs/atlas/app-services/values-and-secrets/) that authorizes requests. - **can_evaluate** (object) A JSON expression that evaluates to `true` if an endpoint is allowed to run in response to an incoming request. ## Responses ### 201 Created #### Body: application/json (object | null) - **disabled** (boolean) - **versions** (array[string]) A supported version of the Data API. - **return_type** (string) A [data format](https://mongodb.com/docs/atlas/app-services/data-api/#data-formats) supported by the Data API & custom endpoints. - **create_user_on_auth** (boolean) - **run_as_user_id** (string) An application user's account ID. If defined, endpoints will always run as the specified user. - **run_as_user_id_script_source** (string) Stringified source code for a function that returns an application user's account ID. If defined, endpoints execute the function on every request and run as the user with the ID returned from the function. - **validation_method** (string) - **secret_name** (string) If `validation_method` is set to `"SECRET_AS_QUERY_PARAM"` or `"VERIFY_PAYLOAD"`, this is the `name` of the [Secret](https://www.mongodb.com/zh-cn/docs/atlas/app-services/values-and-secrets/) that authorizes requests. - **can_evaluate** (object) A JSON expression that evaluates to `true` if an endpoint is allowed to run in response to an incoming request. [Powered by Bump.sh](https://bump.sh)