Create organization
Create organization.
Header Parameters
- Authorization required
Oauth2 token or private token (needs to start with Bearer plus a space)
- application/json
Request Body required
create org request body
- name string
name of organization
- org string
name space of organization
- description string
description of organization
- 200
- 400
- 401
- 403
Success
- application/json
- Schema
- Example (from schema)
Schema
- login string
organization name
- id string
organization id
- url string
Organization's OepnApi address
- repos_url string
organization’s repos address
- events_url string
The organization’s event address
- hooks_url string
Organization’s hooks address
- issues_url string
The organization’s issue address
- members_url string
The organization’s members address
- public_members_url string
The organization’s public members address
- avatar_url string
Organization avatar address
- description string
description of the organization
- name string
the organization's name
- company string
Organization official website
- blog string
Organization's blog
- location string
Organization location
- public_repos Integer
The number of public repositories of the organization
- followers Integer
Number of fans of the organization
- following Integer
Number of followers of the organization
- email string
Organization's email address
- html_url string
URL of the organization
- created_at string
Creation time of the organization
- updated_at string
Organization update time
- type string
type of 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",
"name": "test organization",
"company": "http://www.csdn.net",
"blog": "http://www.csdn.net",
"location": "Chaoyang District, Beijing",
"public_repos": 1,
"followers": 10,
"following": 0,
"email": "admin@csdn.net",
"html_url": "https://atomgit.com/csdn",
"created_at": "2022-12-21T15:45:17+08:00",
"updated_at": "2022-12-21T15:45:17+08:00",
"type": "Organization"
}
Parameter error.
Operation failed, not logged in yet
No permission yet, operation failed.