{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Only authenticated organization owners can add a member to the organization or update the member's role.\n\n*   If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](https://docs.github.com/rest/orgs/members#get-organization-membership-for-a-user) will be `pending` until they accept the invitation.\n    \n*   Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent.\n\n**Rate limits**\n\nTo prevent abuse, organization owners are limited to creating 50 organization invitations for an organization within a 24 hour period. If the organization is more than one month old or on a paid plan, the limit is 500 invitations per 24 hour period.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."},"username":{"type":"string","description":"The handle for the GitHub user account."}},"required":["org","username"],"additionalProperties":false},"body":{"type":"object","properties":{"role":{"type":"string","description":"The role to give the user in the organization. Can be one of:  \n * `admin` - The user will become an owner of the organization.  \n * `member` - The user will become a non-owner member of the organization.","enum":["admin","member"],"default":"member"}},"examples":[{"role":"member"}]}},"required":["path"],"additionalProperties":false},"name":"Set organization membership for a user","id":"github.orgs.set-membership-for-user","example":{"path":{"org":"example","username":"example"}},"maxRequests":1,"summary":false}}