Degraphql_routes
Upsert a Degraphql_route associated with a Service
Create or Update a Degraphql_route associated with a Service using ID or name.
put/v2/control-planes/{controlPlaneId}/core-entities/services/{ServiceId}/degraphql/routes/{Degraphql_routeId}
Path parameters
ServiceIdstring required
ID of the Service to lookup
Degraphql_routeIdstring required
ID of the Degraphql_route to lookup
Request body
Example request
{
"id": "56c4566c-14cc-4132-9011-4139fcbbe50a",
"query": "query{ user { email } }",
"uri": "/users"
}Response
Successfully upserted Degraphql_route
Example response
{
"id": "56c4566c-14cc-4132-9011-4139fcbbe50a",
"query": "query{ user { email } }",
"service": {
"id": "bd380f99-659d-415e-b0e7-72ea05df3218"
},
"uri": "/users"
}