title: How to create public style with API?
body: <p>I'm trying to create a new style in public with a json file on mapbox. </p>
  
  <p>Documentation (<a href="https://docs.mapbox.com/api/maps/#create-a-style" rel="nofollow noreferrer">https://docs.mapbox.com/api/maps/#create-a-style</a>) say we can create new style with command </p>
  
  <pre><code>curl -X POST "https://api.mapbox.com/styles/v1/urbaneaseantho?access_token=sYOURTOKEN" --data @test2.json --header "Content-Type:application/json"
  </code></pre>
  
  <p>Return say is upload : </p>
  
  <pre><code>{"version":8,"name":"My Awesome Style","metadata":{},"sources":{"myvectorsource":{"url":"mapbox://{map_id}","type":"vector"},"myrastersource":{"url":"mapbox://{map_id}","type":"raster"}},"sprite":"mapbox://sprites/urbaneaseantho/cjw0ebb5v01p41co9znianoam/ck2u8j60r58fu0sgyxrigm3cu","glyphs":"mapbox://fonts/urbaneaseantho/{fontstack}/{range}.pbf","layers":[],"created":"2019-05-23T08:29:54.901Z","id":"cjw0ebb5v01p41co9znianoam","modified":"2019-05-23T08:29:54.901Z","owner":"urbaneaseantho","visibility":"private"}
  </code></pre>
  
  <p>My problem is the visibility, I need to set on "public" by default. </p>
  
  <p>With ""visibility": "public" in my test2.json file, same result, if add "draft": false , mapbox don't want my file</p>
  
  <p>Other way try to update style, but when use</p>
  
  <pre><code>curl -X POST "https://api.mapbox.com/styles/v1/urbaneaseantho/STYLE_ID?access_token=TOKEN" --data @test_update.json --header "Content-Type:application/json"
  </code></pre>
  
  <p>return is </p>
  
  <pre><code>{"message":"Not Found"}
  </code></pre>
  
  <p>Is it possible or maybe is an api limit ?</p>
  
  <p>Thank you</p>