Answers.Body: <p>Currently, neither the Element API plugin nor the native Craft GraphQL implementation supports writes or updates.</p>
  
  <p>It is on the Craft 4.0 backlog to have mutations support in the native GraphQL implementation. <a href="https://github.com/craftcms/cms/issues/4835" rel="nofollow noreferrer">https://github.com/craftcms/cms/issues/4835</a></p>
  
  <p>There is a 3rd party CraftQL plugin that does support mutations.</p>
  
  <p>If you want the ability to write in a REST context, I'd suggest watching this video: <a href="https://dotall.com/sessions/how-to-create-a-full-rest-api-with-craft-3" rel="nofollow noreferrer">https://dotall.com/sessions/how-to-create-a-full-rest-api-with-craft-3</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-28T16:11:18.257Z
Answers.Text: Also there is a sample project for the REST setup here: https://github.com/flipboxlabs/craft-restful-project
Answers.UserDisplayName: dmatthams
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-27T00:06:42.623Z
Answers.LastActivityDate: 2019-10-27T00:06:42.623Z
Answers.UserDisplayName: Brad Bell
Answers.Body: <p>You may have a look at the <a href="https://docs.craftcms.com/v3/dev/headless.html" rel="nofollow noreferrer">headless documentation</a> which offers a few solutions / ways such as a GraphQL API, REST-API &amp; a JSON API</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-26T14:34:54.333Z
Answers.Text: I have tried to use the rest api but I cant make it work. Do you have any link or tutorial for getting to work?
Answers.UserDisplayName: Rafael Mora
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-26T16:32:42.437Z
Answers.Text: You can try this tutorial/video out to get started https://mijingo.com/blog/what-is-the-element-api-in-craft-cms. It is for an older version, but still holds up rather well. You will have to define the routes that you want and it is only designed for read access.
Answers.UserDisplayName: Jason McCallister
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-26T22:59:59.283Z
Answers.Text: What if I want to change (update) the something in the DB?
Answers.UserDisplayName: Rafael Mora
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-26T13:59:43.647Z
Answers.LastActivityDate: 2019-10-26T13:59:43.647Z
Answers.UserDisplayName: Christopher Dosin
Body: <p>Does anyone know if there is an API for CRAFT 3 where I can authenticate to and query (CRUD) all the elements (channels, etc.) I have created on it? </p>
  
  <p>Thanks.</p>
  
Tags: <craft3>
Title: API access to Craft 3
ThreadText: # API access to Craft 3
  
  (Asked by: username_0 on 2019-10-26)
  
  Does anyone know if there is an API for CRAFT 3 where I can authenticate to and query (CRUD) all the elements (channels, etc.) I have created on it?
  
  Thanks.
  
  **Tags:** craft3
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2019-10-27. Score: 2
  
  Currently, neither the Element API plugin nor the native Craft GraphQL implementation supports writes or updates.
  
  It is on the Craft 4.0 backlog to have mutations support in the native GraphQL implementation. <https://github.com/craftcms/cms/issues/4835>
  
  There is a 3rd party CraftQL plugin that does support mutations.
  
  If you want the ability to write in a REST context, I'd suggest watching this video: <https://dotall.com/sessions/how-to-create-a-full-rest-api-with-craft-3>
  
  > **Comments:**
  > **username_2**: Also there is a sample project for the REST setup here: https://github.com/flipboxlabs/craft-restful-project  
  
  ---
  
  ### Answer by username_3 on 2019-10-26. Score: 2
  
  You may have a look at the [headless documentation](https://docs.craftcms.com/v3/dev/headless.html) which offers a few solutions / ways such as a GraphQL API, REST-API & a JSON API
  
  > **Comments:**
  > **username_0**: I have tried to use the rest api but I cant make it work. Do you have any link or tutorial for getting to work?  
  > **username_4**: You can try this tutorial/video out to get started https://mijingo.com/blog/what-is-the-element-api-in-craft-cms. It is for an older version, but still holds up rather well. You will have to define the routes that you want and it is only designed for read access.  
  > **username_0**: What if I want to change (update) the something in the DB?  
  
  ---
  
  