AlmondTill/G3N API

Bring someone onto the team

Give a person a working identity here — who they are, what they may do, and the team they sit in.

Manage · a play in 2 steps.

In the office

Give a new person a working identity: who they are, what they may do, and the team they sit in so shared work and team messages reach them. The first page asks everything in one pass; nothing is created until you confirm on the last page.

Where it starts: the office’s Bring someone onto the team page.

Bring someone onto the team — /organization/bring-someone-on
Bring someone onto the team — /organization/bring-someone-on

Step 1. Create their user — binds their sign-in account and sets what they may do.

Step 2. Seat them in a team so shared work and team messages reach them.

What you see

The example shop’s team today is 11 people, every one of them brought on this way.

Try it

Walked with screenshots in the owner’s manual: chapter 6 — Bring someone onto the team

For developers — the calls

The steps

  1. Create their user — binds their sign-in account and sets what they may do. — createUser
  2. Seat them in a team so shared work and team messages reach them. — updateTeam

The calls

Every operation this use case runs, in the order it first appears, with the request and the response its reference page shows.

createUser

createUser — mutation · Create a new staff user at your organization.

Example request

graphql
mutation ExampleCreateUser($input: NewUserInput!) {
  createUser(input: $input) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    accountId
  }
}

Variables:

json
{
  "input": {
    "caption": "Blue jeans",
    "accountId": "01900000-0000-7000-8000-59f8a2fc0000",
    "orgRoles": [
      {
        "org": "01900000-0000-7000-8000-9c1df0590000",
        "roles": [
          "01900000-0000-7000-8000-98bc5cde0000"
        ]
      }
    ]
  }
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

json
{
  "data": {
    "createUser": {
      "id": "01900000-0000-7000-8000-e0a63e120000",
      "sysId": "US-EXMP-0000-000F",
      "type": "User",
      "caption": "Blue jeans",
      "status": "active",
      "parentId": "01900000-0000-7000-8000-eacdfcfd0000",
      "rootId": "01900000-0000-7000-8000-a1295a650000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "updatedAt": "2027-01-31T00:00:00.000Z",
      "revisionNum": 0,
      "revision": "01900000-0000-7000-8000-53c6eea90000",
      "accountId": "01900000-0000-7000-8000-59f8a2fc0000"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

updateTeam

updateTeam — mutation · Edit a team — a working group of staff — change its details.

Example request

graphql
mutation ExampleUpdateTeam($id: ID!, $revision: ID!, $input: EditTeamInput!) {
  updateTeam(id: $id, revision: $revision, input: $input) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    memberUserIds
    leadUserId
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-2329c92c0000",
  "revision": "01900000-0000-7000-8000-b7960e180000",
  "input": {
    "caption": "Blue jeans"
  }
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

json
{
  "data": {
    "updateTeam": {
      "id": "01900000-0000-7000-8000-2329c92c0000",
      "sysId": "TM-EXMP-0000-000F",
      "type": "Team",
      "caption": "Blue jeans",
      "status": "active",
      "parentId": "01900000-0000-7000-8000-eacdfcfd0000",
      "rootId": "01900000-0000-7000-8000-a1295a650000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "updatedAt": "2027-01-31T00:00:00.000Z",
      "revisionNum": 1,
      "revision": "01900000-0000-7000-8000-53c6eea90000",
      "memberUserIds": [
        "01900000-0000-7000-8000-cbef24000000"
      ],
      "leadUserId": "01900000-0000-7000-8000-71f28afc0000"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}