curl --location --request POST 'https://api.github.com/user/projects' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": "This project represents the sprint of the first week in January",
"name": "Week One Sprint"
}'
{
"body": "This project represents the sprint of the first week in January",
"columns_url": "https://api.github.com/projects/1002604/columns",
"created_at": "2011-04-10T20:09:31Z",
"creator": {
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"gravatar_id": "41d064eb2195891e12d0413f63227ea7",
"html_url": "https://github.com/octocat",
"id": 1,
"login": "octocat",
"node_id": "MDQ6VXNlcjE=",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"repos_url": "https://api.github.com/users/octocat/repos",
"site_admin": true,
"starred_at": "\"2020-07-09T00:17:55Z\"",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/octocat"
},
"html_url": "https://github.com/api-playground/projects-test/projects/12",
"id": 1002604,
"name": "Week One Sprint",
"node_id": "MDc6UHJvamVjdDEwMDI2MDQ=",
"number": 1,
"organization_permission": "read",
"owner_url": "https://api.github.com/repos/api-playground/projects-test",
"private": true,
"state": "open",
"updated_at": "2014-03-03T18:58:10Z",
"url": "https://api.github.com/projects/1002604"
}
Authorization: Bearer ********************
【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通