endpoints
Create an endpoint
Create a new endpoint.
post/groups/{groupId}/apps/{appId}/endpoints
Request body
routestring
http_method'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | '*'
function_idstring required
validation_method'NO_VALIDATION' | 'SECRET_AS_QUERY_PARAM' | 'VERIFY_PAYLOAD'
secret_idstring
If validation_method is set to "SECRET_AS_QUERY_PARAM" or "VERIFY_PAYLOAD", this is the _id of the Secret that authorizes requests.
return_type'JSON' | 'EJSON'
A data format supported by the Data API & custom endpoints.
respond_resultboolean
fetch_custom_user_databoolean
create_user_on_authboolean
disabledboolean
Response
Created
routestring
http_method'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | '*'
function_idstring required
validation_method'NO_VALIDATION' | 'SECRET_AS_QUERY_PARAM' | 'VERIFY_PAYLOAD'
secret_idstring
If validation_method is set to "SECRET_AS_QUERY_PARAM" or "VERIFY_PAYLOAD", this is the _id of the Secret that authorizes requests.
return_type'JSON' | 'EJSON'
A data format supported by the Data API & custom endpoints.
respond_resultboolean
fetch_custom_user_databoolean
create_user_on_authboolean
disabledboolean
function_namestring