Google Workspace · Arazzo Workflow

Google Workspace Rename an Org Unit

Version 1.0.0

Read an org unit, patch its name and description, then confirm.

1 workflow 1 source API 1 provider
View Spec View on GitHub CalendarCollaborationEmailProductivityStorageVideo ConferencingArazzoWorkflows

Provider

google-workspace

Workflows

rename-org-unit
Patch an org unit's name and description and confirm the update.
Reads the organizational unit to confirm it exists, patches the supplied name and description, and re-reads it to confirm the new values.
3 steps inputs: accessToken, customerId, description, name, orgUnitPath outputs: description, name, orgUnitId
1
lookupOrgUnit
Read the organizational unit by its path to confirm it exists and capture its current name and id.
2
renameOrgUnit
Patch the organizational unit with the new name and description.
3
confirmRename
Read the organizational unit back to confirm the new name and description are set.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Google Workspace Rename an Org Unit
  summary: Read an org unit, patch its name and description, then confirm.
  description: >-
    Updates the name and description of an existing organizational unit. The
    workflow reads the org unit to confirm it exists, patches the new name and
    description with patch semantics, and reads it back to confirm the change.
    Every step spells out its request inline so the flow can be read and executed
    without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: orgunitsApi
  url: ../openapi/google-workspace-orgunits-api-openapi.yml
  type: openapi
workflows:
- workflowId: rename-org-unit
  summary: Patch an org unit's name and description and confirm the update.
  description: >-
    Reads the organizational unit to confirm it exists, patches the supplied
    name and description, and re-reads it to confirm the new values.
  inputs:
    type: object
    required:
    - accessToken
    - orgUnitPath
    - name
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer access token with the admin.directory.orgunit scope.
      orgUnitPath:
        type: string
        description: The full path (minus leading slash) of the org unit to rename.
      name:
        type: string
        description: The new name for the organizational unit.
      description:
        type: string
        description: The new description for the organizational unit.
        default: ""
      customerId:
        type: string
        description: Customer account id or the my_customer alias.
        default: my_customer
  steps:
  - stepId: lookupOrgUnit
    description: >-
      Read the organizational unit by its path to confirm it exists and capture
      its current name and id.
    operationId: getOrgUnit
    parameters:
    - name: customerId
      in: path
      value: $inputs.customerId
    - name: orgUnitPath
      in: path
      value: $inputs.orgUnitPath
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      orgUnitId: $response.body#/orgUnitId
      currentName: $response.body#/name
  - stepId: renameOrgUnit
    description: >-
      Patch the organizational unit with the new name and description.
    operationId: patchOrgUnit
    parameters:
    - name: customerId
      in: path
      value: $inputs.customerId
    - name: orgUnitPath
      in: path
      value: $inputs.orgUnitPath
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.name
        description: $inputs.description
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      orgUnitId: $response.body#/orgUnitId
      name: $response.body#/name
  - stepId: confirmRename
    description: >-
      Read the organizational unit back to confirm the new name and description
      are set.
    operationId: getOrgUnit
    parameters:
    - name: customerId
      in: path
      value: $inputs.customerId
    - name: orgUnitPath
      in: path
      value: $inputs.orgUnitPath
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      orgUnitId: $response.body#/orgUnitId
      name: $response.body#/name
      description: $response.body#/description
  outputs:
    orgUnitId: $steps.confirmRename.outputs.orgUnitId
    name: $steps.confirmRename.outputs.name
    description: $steps.confirmRename.outputs.description

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/google-workspace-rename-org-unit-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.