data-api

Modify the Data API

Update your app's Data API configuration.

patch/groups/{groupId}/apps/{appId}/data_api/config

Request body

disabledboolean
versionsDataApiVersion[]
return_type'JSON' | 'EJSON'

A data format supported by the Data API & custom endpoints.

create_user_on_authboolean
run_as_user_idstring

An application user's account ID. If defined, endpoints will always run as the specified user.

run_as_user_id_script_sourcestring

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'NO_VALIDATION' | 'SECRET_AS_QUERY_PARAM' | 'VERIFY_PAYLOAD'
secret_namestring

If validation_method is set to "SECRET_AS_QUERY_PARAM" or "VERIFY_PAYLOAD", this is the name of the Secret that authorizes requests.

can_evaluateobject

A JSON expression that evaluates to true if an endpoint is allowed to run in response to an incoming request.

Response

No content

Changes