SetOrgMemberRole
Set the user's role in the organization based on the user name
Path Parameters
- org string required
organization namespace
- username string required
the queried user's username
Header Parameters
- Authorization required
Oauth2 token or private token (needs to start with Bearer plus a space)
- application/json
Request Body
- role string
set user's role:maintainer、developer、guest。
- 200
Success
- application/json
- Schema
- Example (from schema)
Schema
- url string
openApi address of organization member details
- state string
Organization status
- role string
To query organization member roles
- organization_url string
openApi address of organization details
user object
Detailed information of the user name being queried
login stringthe user name being queried
id stringThe user ID being queried
avatar_url stringThe avatar of the user being queried
url stringthe openApi address of the user details being queried
html_url stringThe atomgit access address of the queried user
followers_url stringThe queried user followers address
following_url stringThe following address of the user being queried
gists_url stringThe user gists address being queried
starred_url stringThe starred address of the user being queried
subscriptions_url stringQueryed user subscriptions address
organizations_url stringQueryed user organizations address
repos_url stringThe queried user repos address
events_url stringThe user events address being queried
received_events_url stringThe queried user's received events address
type stringThe type of user being queried
site_admin stringThe user being queried is an administrator
organization object
Organization information of the current operation
login stringorganization name
id stringorganization id
url stringOrganization's OepnApi address
repos_url stringorganization’s repos address
events_url stringThe organization’s event address
hooks_url stringOrganization’s hooks address
issues_url stringThe organization’s issue address
members_url stringThe organization’s members address
public_members_url stringThe organization’s public members address
avatar_url stringOrganization avatar address
description stringdescription of the organization
{
"url": "https://api.atomgit.com/orgs/csdn",
"state": "active",
"role": "maintainer",
"organization_url": "https://api.atomgit.com/orgs/csdn",
"user": {
"login": "mrpuatomgit",
"id": "63db126c0566d2f7d2c9498c",
"avatar_url": "https://img-host/uploads/user/1656318880150_5104.png",
"url": "https://api.atomgit.com/users/leige",
"html_url": "https://atomgit.com/mrpuatomgit",
"followers_url": null,
"following_url": null,
"gists_url": null,
"starred_url": null,
"subscriptions_url": null,
"organizations_url": null,
"repos_url": null,
"events_url": null,
"received_events_url": null,
"type": "user",
"site_admin": false
},
"organization": {
"login": "csdn",
"id": "62b59720cbcaeffdff0148ce",
"url": "https://api.atomgit.com/orgs/csdn",
"repos_url": "https://api.atomgit.com/orgs/csdn/repos",
"events_url": "https://api.atomgit.com/orgs/csdn/events",
"hooks_url": "https://api.atomgit.com/orgs/csdn/hooks",
"issues_url": "https://api.atomgit.com/orgs/csdn_test2/issues",
"members_url": "https://api.atomgit.com/orgs/csdn/members/{/member}",
"public_members_url": "https://api.atomgit.com/orgs/csdn/public_members/{/member}",
"avatar_url": "https://img-host/uploads/org/1656042927816_7741.png",
"description": "csdn is a goog website"
}
}