Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 781c7ba

Browse files
authored
Update Create a repository section
backslash in JSON data is causing JSON parsing error
1 parent 7ad35c8 commit 781c7ba

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

content/rest/guides/getting-started-with-the-rest-api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,11 @@ we need to `POST` some JSON containing the details and configuration options.
275275
276276
```shell
277277
$ curl -i -H "Authorization: token {% ifversion fpt or ghes > 3.1 or ghae or ghec %}ghp_16C7e42F292c6912E7710c838347Ae178B4a{% else %}5199831f4dd3b79e7c5b7e0ebe75d67aa66e79d4{% endif %}" \
278-
-d '{ \
279-
"name": "blog", \
280-
"auto_init": true, \
281-
"private": true, \
282-
"gitignore_template": "nanoc" \
278+
-d '{
279+
"name": "blog",
280+
"auto_init": true,
281+
"private": true,
282+
"gitignore_template": "nanoc"
283283
}' \
284284
{% data variables.product.api_url_pre %}/user/repos
285285
```

0 commit comments

Comments
 (0)