Skip to content

Commit

Permalink
Update Create a repository section
Browse files Browse the repository at this point in the history
backslash in JSON data is causing JSON parsing error
  • Loading branch information
jatin837 authored May 14, 2022
1 parent 7ad35c8 commit 781c7ba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions content/rest/guides/getting-started-with-the-rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,11 @@ we need to `POST` some JSON containing the details and configuration options.
```shell
$ curl -i -H "Authorization: token {% ifversion fpt or ghes > 3.1 or ghae or ghec %}ghp_16C7e42F292c6912E7710c838347Ae178B4a{% else %}5199831f4dd3b79e7c5b7e0ebe75d67aa66e79d4{% endif %}" \
-d '{ \
"name": "blog", \
"auto_init": true, \
"private": true, \
"gitignore_template": "nanoc" \
-d '{
"name": "blog",
"auto_init": true,
"private": true,
"gitignore_template": "nanoc"
}' \
{% data variables.product.api_url_pre %}/user/repos
```
Expand Down

0 comments on commit 781c7ba

Please sign in to comment.