# Slash graphql â Dgraph Doc v20.07

**URL:** <https://discuss.dgraph.io/t/slash-graphql-a-dgraph-doc-v20-07/9659>\
**Category:** Documentation\
**Created:** [August 25, 2020, 9:39am UTC](https://discuss.dgraph.io/t/slash-graphql-a-dgraph-doc-v20-07/9659 "2020-08-25T09:39:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)\
**Post date:** [August 25, 2020, 9:39am UTC](https://discuss.dgraph.io/t/slash-graphql-a-dgraph-doc-v20-07/9659/1 "2020-08-25T09:39:21Z")

</div>

Your GraphQL schema can be fetched and updated using the `/admin` endpoint of your cluster. As an example, if your graphql endpoint is `https://frozen-mango-42.us-west-2.aws.cloud.dgraph.io/graphql`, then the admin endpoint for schema will be at `https://frozen-mango.us-west-2.aws.cloud.dgraph.io/admin`.

This endpoint works in a similar way to the [/admin](https://dgraph.io/docs/graphql/admin) endpoint of Dgraph, with the additional constraint of [requiring authentication](https://dgraph.io/docs/slash-graphql/admin/authentication).

### Fetching the Current Schema

It is possible to fetch your current schema using the `getGQLSchema` query on `/admin`. Below is a sample GraphQL query which will fetch this schema.

```
{
  getGQLSchema {
    schema
  }
}

```

### Setting a New Schema

You can save a new schema using the `updateGQLSchema` mutation on `/admin`. Below is an example GraphQL body, with a variable called sch which must be passed in as a [variable](https://graphql.org/graphql-js/passing-arguments/)

```
mutation($sch: String!) {
  updateGQLSchema(input: { set: { schema: $sch}})
  {
    gqlSchema {
      schema
      generatedSchema
    }
  }
}

```

* * *
This is a companion discussion topic for the original entry at [https://dgraph.io/docs/slash-graphql/admin/schema/](https://dgraph.io/docs/slash-graphql/admin/schema/)

---

<div class="post-metadata">

**Author:** ![gja](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/gja/32/2654_2.png) [@gja](https://discuss.dgraph.io/u/gja)\
**Post date:** [August 25, 2020, 9:44am UTC](https://discuss.dgraph.io/t/slash-graphql-a-dgraph-doc-v20-07/9659/2 "2020-08-25T09:44:00Z")

</div>

Testing out comments

---

<div class="post-metadata">

**Author:** ![mortenalbertsen](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/mortenalbertsen/32/5444_2.png) [@mortenalbertsen](https://discuss.dgraph.io/u/mortenalbertsen)\
**Post date:** [February 1, 2021, 6:29pm UTC](https://discuss.dgraph.io/t/slash-graphql-a-dgraph-doc-v20-07/9659/3 "2021-02-01T18:29:05Z")

</div>

The `/admin/schema` endpoint does not work for me on Slash GraphQL. I’m getting `404 - Not found`.  
It works for me locally using `dgraph/standalone:latest`. Is this intentional?

---

<div class="post-metadata">

**Author:** ![Shohoo](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@Shohoo](https://discuss.dgraph.io/u/Shohoo)\
**Post date:** [March 26, 2021, 3:03pm UTC](https://discuss.dgraph.io/t/slash-graphql-a-dgraph-doc-v20-07/9659/4 "2021-03-26T15:03:31Z")

</div>

Any response?

---

<div class="post-metadata">

**Author:** ![chewxy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/chewxy/32/4339_2.png) [@chewxy](https://discuss.dgraph.io/u/chewxy)\
**Post date:** [March 29, 2021, 2:19am UTC](https://discuss.dgraph.io/t/slash-graphql-a-dgraph-doc-v20-07/9659/5 "2021-03-29T02:19:16Z")

</div>

You can now click on Ratel to perform your admin stuff in Slash now I believe. Not sure about the endpoints still
