559 B
559 B
GetOrgInfo query
query(
$login: String!
){
organization (login: $login)
{
login
id
name
databaseId
}
}
| Query variable | Description |
|---|---|
login |
Your organization name. |
GetOrgInfo response
{
"data": {
"organization": {
"login": "Octo",
"id": "MDEyOk9yZ2FuaXphdGlvbjU2MTA=",
"name": "Octo-org",
"databaseId": 5610
}
}
}
In this example, MDEyOk9yZ2FuaXphdGlvbjU2MTA= is the organization ID or ownerId, which we'll use in the next step.