Authorization: Bearer ********************
{
"name": "terry",
"display_name": "Terry",
"html_url": "https://github.com/terrylee",
"avatar_url": "https://avatars2.githubusercontent.com/u/694592?v=4"
}
curl --location -g --request POST 'https://open.pingcode.com/v1/scm/products/{{scm_product_id}}/users?access_token={access_token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "terry",
"display_name": "Terry",
"html_url": "https://github.com/terrylee",
"avatar_url": "https://avatars2.githubusercontent.com/u/694592?v=4"
}'
{
"id": "5666aea91f99e33cb7c44964",
"url": "https://rest_api_root/v1/scm/products/564587fe700d43b81b080765/users/5666aea91f99e33cb7c44964",
"product": {
"id": "564587fe700d43b81b080765",
"url": "https://rest_api_root/v1/scm/products/564587fe700d43b81b080765",
"name": "Github",
"type": "github"
},
"name": "terry",
"display_name": "Terry",
"html_url": "https://github.com/terrylee",
"avatar_url": "https://avatars2.githubusercontent.com/u/694592?v=4"
}