123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367 |
- {
- "get": {
- "tags": ["Organizations"],
- "description": "Return details on an individual organization including various details such as membership access, features, and teams.",
- "operationId": "Retrieve an Organization",
- "parameters": [
- {
- "name": "organization_id_or_slug",
- "in": "path",
- "description": "The id or slug of the organization to look up.",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Success",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "../../components/schemas/organization-details.json#/OrganizationDetails"
- },
- "example": {
- "access": [],
- "allowSharedIssues": true,
- "availableRoles": [
- {
- "id": "member",
- "name": "Member"
- },
- {
- "id": "admin",
- "name": "Admin"
- },
- {
- "id": "manager",
- "name": "Manager"
- },
- {
- "id": "owner",
- "name": "Owner"
- }
- ],
- "avatar": {
- "avatarType": "letter_avatar",
- "avatarUuid": null
- },
- "dataScrubber": false,
- "dataScrubberDefaults": false,
- "dateCreated": "2018-11-06T21:19:55.101Z",
- "defaultRole": "member",
- "enhancedPrivacy": false,
- "experiments": {},
- "features": [
- "new-teams",
- "shared-issues",
- "new-issue-ui",
- "repos",
- "open-membership",
- "invite-members",
- "sso-saml2",
- "sso-basic",
- "suggested-commits"
- ],
- "id": "2",
- "isDefault": false,
- "isEarlyAdopter": false,
- "name": "The Interstellar Jurisdiction",
- "onboardingTasks": [
- {
- "data": {},
- "dateCompleted": "2018-11-06T21:20:08.089Z",
- "status": "complete",
- "task": 1,
- "user": ""
- }
- ],
- "openMembership": true,
- "pendingAccessRequests": 0,
- "projects": [
- {
- "dateCreated": "2018-11-06T21:19:58.536Z",
- "firstEvent": null,
- "hasAccess": true,
- "id": "3",
- "isBookmarked": false,
- "isMember": true,
- "latestDeploys": null,
- "name": "Prime Mover",
- "platform": null,
- "platforms": [],
- "slug": "prime-mover",
- "team": {
- "id": "2",
- "name": "Powerful Abolitionist",
- "slug": "powerful-abolitionist"
- },
- "teams": [
- {
- "id": "2",
- "name": "Powerful Abolitionist",
- "slug": "powerful-abolitionist"
- }
- ]
- },
- {
- "dateCreated": "2018-11-06T21:19:55.121Z",
- "firstEvent": null,
- "hasAccess": true,
- "id": "2",
- "isBookmarked": false,
- "isMember": true,
- "latestDeploys": null,
- "name": "Pump Station",
- "platform": null,
- "platforms": [],
- "slug": "pump-station",
- "team": {
- "id": "2",
- "name": "Powerful Abolitionist",
- "slug": "powerful-abolitionist"
- },
- "teams": [
- {
- "id": "2",
- "name": "Powerful Abolitionist",
- "slug": "powerful-abolitionist"
- }
- ]
- },
- {
- "dateCreated": "2018-11-06T21:20:08.064Z",
- "firstEvent": null,
- "hasAccess": true,
- "id": "4",
- "isBookmarked": false,
- "isMember": true,
- "latestDeploys": null,
- "name": "The Spoiled Yoghurt",
- "platform": null,
- "platforms": [],
- "slug": "the-spoiled-yoghurt",
- "team": {
- "id": "2",
- "name": "Powerful Abolitionist",
- "slug": "powerful-abolitionist"
- },
- "teams": [
- {
- "id": "2",
- "name": "Powerful Abolitionist",
- "slug": "powerful-abolitionist"
- }
- ]
- }
- ],
- "quota": {
- "accountLimit": 0,
- "maxRate": 0,
- "maxRateInterval": 60,
- "projectLimit": 100
- },
- "require2FA": false,
- "safeFields": [],
- "scrapeJavaScript": true,
- "scrubIPAddresses": false,
- "sensitiveFields": [],
- "slug": "the-interstellar-jurisdiction",
- "status": {
- "id": "active",
- "name": "active"
- },
- "storeCrashReports": 0,
- "teams": [
- {
- "avatar": {
- "avatarType": "letter_avatar",
- "avatarUuid": null
- },
- "dateCreated": "2018-11-06T21:20:08.115Z",
- "hasAccess": true,
- "id": "3",
- "isMember": true,
- "isPending": false,
- "memberCount": 1,
- "name": "Ancient Gabelers",
- "slug": "ancient-gabelers"
- },
- {
- "avatar": {
- "avatarType": "letter_avatar",
- "avatarUuid": null
- },
- "dateCreated": "2018-11-06T21:19:55.114Z",
- "hasAccess": true,
- "id": "2",
- "isMember": true,
- "isPending": false,
- "memberCount": 1,
- "name": "Powerful Abolitionist",
- "slug": "powerful-abolitionist"
- }
- ],
- "trustedRelays": []
- }
- }
- }
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "The requested resource does not exist"
- },
- "401": {
- "description": "Unauthorized"
- }
- },
- "security": [
- {
- "auth_token": ["org: read"]
- }
- ]
- },
- "put": {
- "tags": ["Organizations"],
- "description": "Update various attributes and configurable settings for the given organization.",
- "operationId": "Update an Organization",
- "parameters": [
- {
- "name": "organization_id_or_slug",
- "in": "path",
- "description": "The id or slug of the organization to update.",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "required": ["name"],
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "An optional new name for the organization."
- },
- "slug": {
- "type": "string",
- "description": "An optional new slug for the organization. Needs to be available and unique."
- }
- }
- },
- "example": {
- "name": "Impeccably Designated",
- "slug": "impeccably-designated"
- }
- }
- },
- "required": false
- },
- "responses": {
- "200": {
- "description": "Success",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "../../components/schemas/organization-details.json#/OrganizationDetails"
- },
- "example": {
- "access": [],
- "allowSharedIssues": true,
- "availableRoles": [
- {
- "id": "member",
- "name": "Member"
- },
- {
- "id": "admin",
- "name": "Admin"
- },
- {
- "id": "manager",
- "name": "Manager"
- },
- {
- "id": "owner",
- "name": "Owner"
- }
- ],
- "avatar": {
- "avatarType": "letter_avatar",
- "avatarUuid": null
- },
- "dataScrubber": false,
- "dataScrubberDefaults": false,
- "dateCreated": "2018-11-06T21:20:19.548Z",
- "defaultRole": "member",
- "enhancedPrivacy": false,
- "experiments": {},
- "features": [
- "new-teams",
- "shared-issues",
- "new-issue-ui",
- "repos",
- "open-membership",
- "invite-members",
- "sso-saml2",
- "sso-basic",
- "suggested-commits"
- ],
- "id": "3",
- "isDefault": false,
- "isEarlyAdopter": false,
- "name": "Impeccably Designated",
- "onboardingTasks": [],
- "openMembership": true,
- "pendingAccessRequests": 0,
- "projects": [],
- "quota": {
- "accountLimit": 0,
- "maxRate": 0,
- "maxRateInterval": 60,
- "projectLimit": 100
- },
- "require2FA": false,
- "safeFields": [],
- "scrapeJavaScript": true,
- "scrubIPAddresses": false,
- "sensitiveFields": [],
- "slug": "impeccably-designated",
- "status": {
- "id": "active",
- "name": "active"
- },
- "storeCrashReports": 0,
- "teams": [],
- "trustedRelays": []
- }
- }
- }
- },
- "403": {
- "description": "Forbidden"
- },
- "401": {
- "description": "Unauthorized"
- },
- "404": {
- "description": "Not Found"
- },
- "400": {
- "description": "Bad Input"
- }
- },
- "security": [
- {
- "auth_token": ["org:write"]
- }
- ]
- }
- }
|