---
title: ''
product: Resource Management Roles API
version: 2.0.0
latest_version: 2.0.0
status: This page documents version 2.0.0. The latest version is 2.0.0.
canonical: https://docs.unity.com/en-us/oas-unity-client-roles/2.0.0
latest_url: https://docs.unity.com/en-us/oas-unity-client-roles/2.0.0.md
last_updated: 2026-11-24
generated_at: 2026-11-24T02:44:49.861Z
locale: en-us
---

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Unity Resource Management API",
    "version": "1.0.0",
    "contact": {
      "name": "Services Foundation"
    },
    "description": "Public unity/v2 API for organizations, projects, environments, apps, and membership. Service accounts can call resource-scoped reads and environment create and delete. User access tokens work on every operation, and are required for the `/users/me` routes, the organization list, and all organization, project, and app mutations."
  },
  "servers": [
    {
      "url": "https://services.api.unity.com/unity/v2",
      "description": "Production"
    }
  ],
  "paths": {
    "/organizations/{organizationId}/members": {
      "get": {
        "operationId": "listOrganizationMembers",
        "summary": "List members of an organization",
        "description": "Returns a paginated list of members of the organization, each with their user type and add-on roles.",
        "tags": [
          "members"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$",
              "example": "9134567201"
            },
            "required": true,
            "description": "ID of the organization (a numeric string with no leading zeros)",
            "name": "organizationId",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            },
            "description": "Maximum number of results to return (default 10).",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "description": "Number of results to skip (default 0).",
            "name": "offset",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 320
            },
            "description": "Case-insensitive substring match on a member's name or email. The project member list also matches a group's name.",
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "userType"
              ],
              "default": "name"
            },
            "description": "Sort field (default name). userType orders members by the strength of their user type: in ascending order, members without a user type come first, then project_guest, guest, user, manager and owner. Members with the same user type are ordered by name in the same direction. Groups, which only the project member list includes, come before the users in ascending order and after them in descending order, ordered by name among themselves.",
            "name": "sort",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ],
              "default": "asc"
            },
            "description": "Sort direction (default asc)",
            "name": "order",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated member list",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedMembers"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/GatewayTimeout"
          }
        }
      }
    },
    "/organizations/{organizationId}/members/{memberId}": {
      "get": {
        "operationId": "getOrganizationMember",
        "summary": "Get a member of an organization",
        "description": "Returns the given member of the organization, with their user type and add-on roles.",
        "tags": [
          "members"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$",
              "example": "9134567201"
            },
            "required": true,
            "description": "ID of the organization (a numeric string with no leading zeros)",
            "name": "organizationId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^(me|0|[1-9][0-9]*)$",
              "example": "1375591318337"
            },
            "required": true,
            "description": "ID of the member (a numeric string with no leading zeros), or the literal `me` for the authenticated caller (accepted on read operations only)",
            "name": "memberId",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Organization member",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/GatewayTimeout"
          }
        }
      },
      "patch": {
        "operationId": "updateOrganizationMember",
        "summary": "Update a member of an organization",
        "description": "Changes the member's user type, their baseline role in the organization. The user type is the only field that can be changed. A caller can't change their own user type (code 44058), give a user type stronger than their own (code 44013), or set the user type the member already has (code 44060). Only an owner can make a member an owner or change an owner's user type (code 44059). A demotion removes the member's add-on roles on the organization, and a demotion to guest also removes those on everything in it and takes the member out of the organization's groups, with the project roles those groups give. Every user must own at least one organization, so an owner who owns no other organization can't be given another user type (code 44040). A project guest has no organization role to change (code 44061).",
        "tags": [
          "members"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$",
              "example": "9134567201"
            },
            "required": true,
            "description": "ID of the organization (a numeric string with no leading zeros)",
            "name": "organizationId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$",
              "example": "1375591318337"
            },
            "required": true,
            "description": "ID of the member (a numeric string with no leading zeros)",
            "name": "memberId",
            "in": "path"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Fields to update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrganizationMemberRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated member",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/GatewayTimeout"
          }
        },
        "security": [
          {
            "UnityUser": []
          }
        ]
      },
      "delete": {
        "operationId": "removeOrganizationMember",
        "summary": "Remove a member from an organization",
        "description": "Removes the member from the organization: their user type, their add-on roles on the organization and everything in it, and their place in the organization's groups, with the project roles those groups give. A member who also holds a role directly on one of the organization's projects keeps that role, and stays in the organization as a project guest. A caller who can remove members can also remove themselves. The caller's user type must be at least as strong as the member's (code 44062). Every user must own at least one organization, so an owner who owns no other organization can't be removed (code 44040). A project guest has no organization role to remove (code 44061); remove them from the organization's projects instead.",
        "tags": [
          "members"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$",
              "example": "9134567201"
            },
            "required": true,
            "description": "ID of the organization (a numeric string with no leading zeros)",
            "name": "organizationId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$",
              "example": "1375591318337"
            },
            "required": true,
            "description": "ID of the member (a numeric string with no leading zeros)",
            "name": "memberId",
            "in": "path"
          }
        ],
        "responses": {
          "204": {
            "description": "Member removed"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/GatewayTimeout"
          }
        },
        "security": [
          {
            "UnityUser": []
          }
        ]
      }
    },
    "/projects/{projectId}/members": {
      "get": {
        "operationId": "listProjectMembers",
        "summary": "List members of a project",
        "description": "Returns a paginated list of members of the project, each with their user type and add-on roles. Members are the users with a role on the project, the organization's members who have access to the project through their organization user type, and the groups assigned to the project. A user whose only organization user type is guest or project_guest is listed only when they hold a role on the project. In a restricted project, an organization member without a role on the project is listed only when they are a manager or owner, or hold one of the organization roles that apply to restricted projects. search matches a user's name or email, or a group's name. With sort=userType, groups come before users in ascending order and after them in descending order.",
        "tags": [
          "members"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "example": "7f3c9b2e-4a61-4c0f-9d2a-8b5e1c6f0a34"
            },
            "required": true,
            "description": "ID of the project — the same projectId shown in the Unity Editor and Unity Dashboard. A GUID for current projects; some older projects use a numeric string.",
            "name": "projectId",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            },
            "description": "Maximum number of results to return (default 10).",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "description": "Number of results to skip (default 0).",
            "name": "offset",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 320
            },
            "description": "Case-insensitive substring match on a member's name or email. The project member list also matches a group's name.",
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "userType"
              ],
              "default": "name"
            },
            "description": "Sort field (default name). userType orders members by the strength of their user type: in ascending order, members without a user type come first, then project_guest, guest, user, manager and owner. Members with the same user type are ordered by name in the same direction. Groups, which only the project member list includes, come before the users in ascending order and after them in descending order, ordered by name among themselves.",
            "name": "sort",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ],
              "default": "asc"
            },
            "description": "Sort direction (default asc)",
            "name": "order",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated project member list",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedMembers"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/GatewayTimeout"
          }
        }
      }
    },
    "/projects/{projectId}/members/{memberId}": {
      "get": {
        "operationId": "getProjectMember",
        "summary": "Get a member of a project",
        "description": "Returns the given member of the project, with their user type and add-on roles. The member is a user, including one who has access to the project through their organization user type; a group's ID names no member here.",
        "tags": [
          "members"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "example": "7f3c9b2e-4a61-4c0f-9d2a-8b5e1c6f0a34"
            },
            "required": true,
            "description": "ID of the project — the same projectId shown in the Unity Editor and Unity Dashboard. A GUID for current projects; some older projects use a numeric string.",
            "name": "projectId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^(me|0|[1-9][0-9]*)$",
              "example": "1375591318337"
            },
            "required": true,
            "description": "ID of the member (a numeric string with no leading zeros), or the literal `me` for the authenticated caller (accepted on read operations only)",
            "name": "memberId",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Project member",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/GatewayTimeout"
          }
        }
      },
      "patch": {
        "operationId": "updateProjectMember",
        "summary": "Update a member of a project",
        "description": "Changes the member's user type on the project, their direct baseline role on it, which is the only field that can be changed. It never adds a member, and it doesn't change the member's user type in the organization, which a read still returns when it is stronger. A caller can't change their own user type (code 44058). Only an owner, of the project or of its organization, can make a member an owner or change the user type of a member who is an owner (code 44059). The new user type can't be the one the member's direct role already has (code 44060), stronger than the caller's own user type, or weaker than the member's user type in the organization (code 44013). A demotion removes the add-on roles given to the member directly on the project; those they get through a group stay. A member without a direct role on the project, such as one whose access comes only from the organization or through a group, has no user type of their own on it to change (code 44061).",
        "tags": [
          "members"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "example": "7f3c9b2e-4a61-4c0f-9d2a-8b5e1c6f0a34"
            },
            "required": true,
            "description": "ID of the project — the same projectId shown in the Unity Editor and Unity Dashboard. A GUID for current projects; some older projects use a numeric string.",
            "name": "projectId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$",
              "example": "1375591318337"
            },
            "required": true,
            "description": "ID of the member (a numeric string with no leading zeros)",
            "name": "memberId",
            "in": "path"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Fields to update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProjectMemberRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated member",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/GatewayTimeout"
          }
        },
        "security": [
          {
            "UnityUser": []
          }
        ]
      },
      "delete": {
        "operationId": "removeProjectMember",
        "summary": "Remove a member from a project",
        "description": "Removes the member's direct role on the project, and the add-on roles given to them directly on the project and everything in it; add-on roles they get through a group stay. It does not affect their organization membership: a member who also has access to the project through their organization user type or through a group stays a member. A user who had access to the organization only through their project roles, and has none left in it, is no longer listed among the organization's members. The caller's user type must be at least as strong as the member's (code 44062). A member without a direct role on the project, such as one whose access comes only from the organization or through a group, has no user type of their own on it to remove (code 44061).",
        "tags": [
          "members"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "example": "7f3c9b2e-4a61-4c0f-9d2a-8b5e1c6f0a34"
            },
            "required": true,
            "description": "ID of the project — the same projectId shown in the Unity Editor and Unity Dashboard. A GUID for current projects; some older projects use a numeric string.",
            "name": "projectId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]*)$",
              "example": "1375591318337"
            },
            "required": true,
            "description": "ID of the member (a numeric string with no leading zeros)",
            "name": "memberId",
            "in": "path"
          }
        ],
        "responses": {
          "204": {
            "description": "Member removed"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/GatewayTimeout"
          }
        },
        "security": [
          {
            "UnityUser": []
          }
        ]
      }
    }
  },
  "tags": [
    {
      "name": "members",
      "description": "Organization, project, environment and app membership"
    }
  ],
  "components": {
    "responses": {
      "BadRequest": {
        "description": "The request is invalid (400). Field-level problems are listed in `details`.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://services.docs.unity.com/docs/errors/#55",
              "title": "Bad Request",
              "status": 400,
              "detail": "Validation failed for 1 field",
              "code": 55,
              "requestId": "e4c494ed-a22f-4c19-a30d-ce1ddea96d01",
              "details": [
                {
                  "field": "name",
                  "message": "must be 1-255 characters of letters, digits, hyphens or underscores"
                }
              ]
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Authentication is missing or invalid (401).",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://services.docs.unity.com/docs/errors/#51",
              "title": "Unauthorized",
              "status": 401,
              "detail": "invalid_token",
              "code": 51,
              "requestId": "e4c494ed-a22f-4c19-a30d-ce1ddea96d01"
            }
          }
        }
      },
      "Forbidden": {
        "description": "The caller cannot access the resource, or the resource does not exist (403). Code 56 means the caller holds none of the required permissions. Other denials use code 53.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://services.docs.unity.com/docs/errors/#56",
              "title": "Forbidden",
              "status": 403,
              "detail": "no_permissions",
              "code": 56,
              "requestId": "e4c494ed-a22f-4c19-a30d-ce1ddea96d01"
            }
          }
        }
      },
      "NotFound": {
        "description": "An item does not exist within a resource the caller can access, such as a group of another organization (404).",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://services.docs.unity.com/docs/errors/#54",
              "title": "Not Found",
              "status": 404,
              "detail": "Organization was not found",
              "code": 54,
              "requestId": "e4c494ed-a22f-4c19-a30d-ce1ddea96d01"
            }
          }
        }
      },
      "Conflict": {
        "description": "The request conflicts with the current state of the resource (409).",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://services.docs.unity.com/docs/errors/#58",
              "title": "Conflict",
              "status": 409,
              "detail": "Environment with the provided name already exists for this project",
              "code": 58,
              "requestId": "e4c494ed-a22f-4c19-a30d-ce1ddea96d01"
            }
          }
        }
      },
      "UnprocessableEntity": {
        "description": "A precondition for the operation is not met (422). The `code` identifies the precondition.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://services.docs.unity.com/docs/errors/#57",
              "title": "Unprocessable Entity",
              "status": 422,
              "detail": "Cannot remove user's default organization",
              "code": 57,
              "requestId": "e4c494ed-a22f-4c19-a30d-ce1ddea96d01"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Too many requests (429). Retry after the number of seconds in `Retry-After`.",
        "headers": {
          "Retry-After": {
            "description": "Seconds until requests will be accepted again",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://services.docs.unity.com/docs/errors/#50",
              "title": "Too Many Requests",
              "status": 429,
              "detail": "rate_limited",
              "code": 50,
              "requestId": "e4c494ed-a22f-4c19-a30d-ce1ddea96d01"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "An unexpected error occurred (500).",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "about:blank",
              "title": "Internal Server Error",
              "status": 500,
              "detail": "unexpected error",
              "code": 0,
              "requestId": "e4c494ed-a22f-4c19-a30d-ce1ddea96d01"
            }
          }
        }
      },
      "ServiceUnavailable": {
        "description": "The service is temporarily unavailable (503). Retry the request.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://services.docs.unity.com/docs/errors/#3",
              "title": "Service Unavailable",
              "status": 503,
              "detail": "upstream unavailable",
              "code": 3,
              "requestId": "e4c494ed-a22f-4c19-a30d-ce1ddea96d01"
            }
          }
        }
      },
      "GatewayTimeout": {
        "description": "The request timed out (504).",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://services.docs.unity.com/docs/errors/#2",
              "title": "Gateway Timeout",
              "status": 504,
              "detail": "Gateway Timeout",
              "code": 2,
              "requestId": "e4c494ed-a22f-4c19-a30d-ce1ddea96d01"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "UnityUser": {
        "type": "http",
        "scheme": "bearer",
        "description": "A Unity user JWT, sent as a bearer token."
      },
      "ServiceAccount": {
        "type": "http",
        "scheme": "basic",
        "description": "A Unity service account key ID and secret. Accepted on resource-scoped reads and on environment\ncreate and delete. See the\n[Service Account Authentication section](https://services.docs.unity.com/docs/service-account-auth)."
      }
    },
    "schemas": {
      "MemberUserType": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "guest",
              "user",
              "manager",
              "owner",
              "project_guest"
            ],
            "description": "Name of the user type. guest appears on organization members only. project_guest is a user who has access to some projects but holds no organization role; organization member lists include them.",
            "example": "user"
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "organization_group",
              "project_direct",
              "project_group",
              null
            ],
            "description": "Where the user type comes from. organization_group is the organization assignment, project_direct is a direct project assignment, and project_group is an assignment through a group. Null for project_guest, which comes from the member's access to projects rather than from an assignment of its own, and in the rare case where it isn't recorded.",
            "example": "organization_group"
          }
        },
        "required": [
          "name",
          "source"
        ],
        "additionalProperties": false,
        "description": "A member's user type and where it comes from. It can be inherited from an ancestor entity."
      },
      "MemberRole": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the role",
            "example": "84dfeb39-1d8b-406c-8069-01677a182bf0"
          },
          "name": {
            "type": "string",
            "description": "Name of the role",
            "example": "App Editor"
          },
          "entityType": {
            "type": "string",
            "enum": [
              "organization",
              "project",
              "environment",
              "app"
            ],
            "description": "Type of entity the role is granted on. An entity above the one being listed marks an inherited role.",
            "example": "organization"
          }
        },
        "required": [
          "id",
          "name",
          "entityType"
        ],
        "additionalProperties": false,
        "description": "An add-on role that applies to a member"
      },
      "Member": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "description": "ID of the user, or of the group when isGroup is true",
            "example": "3574024685494"
          },
          "name": {
            "type": "string",
            "description": "Display name of the user, or the name of the group",
            "example": "Jane Doe"
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Email address. Null for a group, and for a user with no verified email address.",
            "example": "jane@studio.com"
          },
          "avatar": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of the member's avatar. Null when the member has none, and always null for a group.",
            "example": "https://cdn.unity.com/avatars/3574024685494.png"
          },
          "isGroup": {
            "type": "boolean",
            "description": "Whether the member is a group rather than a user. Only project members can be groups.",
            "example": false
          },
          "userType": {
            "description": "The member's user type, which is their strongest baseline role on this entity. Null in the rare case where the member has none.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/MemberUserType"
              },
              {
                "type": "null"
              }
            ]
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemberRole"
            },
            "description": "Add-on roles that apply to the member, including roles inherited from ancestor entities. Empty when the member has none."
          }
        },
        "required": [
          "id",
          "name",
          "email",
          "avatar",
          "isGroup",
          "userType",
          "roles"
        ],
        "additionalProperties": false,
        "description": "A member of an organization, project, environment or app. A member is a user or a group, told apart by isGroup."
      },
      "PaginatedMembers": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "description": "Total number of matching items",
            "example": 42
          },
          "limit": {
            "type": "integer",
            "description": "Limit used by the request",
            "example": 10
          },
          "offset": {
            "type": "integer",
            "description": "Offset used by the request",
            "example": 0
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Member"
            }
          }
        },
        "required": [
          "total",
          "limit",
          "offset",
          "results"
        ],
        "additionalProperties": false,
        "description": "Paginated list of members"
      },
      "UpdateOrganizationMemberRequest": {
        "type": "object",
        "properties": {
          "userType": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "enum": [
                  "guest",
                  "user",
                  "manager",
                  "owner"
                ],
                "description": "New user type, the member's baseline role in the organization",
                "example": "manager"
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false,
            "description": "New user type"
          }
        },
        "required": [
          "userType"
        ],
        "additionalProperties": false,
        "description": "Fields to update on an organization member"
      },
      "UpdateProjectMemberRequest": {
        "type": "object",
        "properties": {
          "userType": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "enum": [
                  "user",
                  "manager",
                  "owner"
                ],
                "description": "New user type, the member's direct baseline role on the project",
                "example": "manager"
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false,
            "description": "New user type"
          }
        },
        "required": [
          "userType"
        ],
        "additionalProperties": false,
        "description": "Fields to update on a project member"
      },
      "Problem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "description": "Documentation link for the error code, or `about:blank` when the code has no page",
            "example": "https://services.docs.unity.com/docs/errors/#54"
          },
          "title": {
            "type": "string",
            "description": "Short human-readable summary",
            "example": "Not Found"
          },
          "status": {
            "type": "integer",
            "description": "HTTP status code",
            "example": 404
          },
          "detail": {
            "type": "string",
            "description": "Human-readable explanation of this occurrence",
            "example": "Environment is not found or the related project is archived"
          },
          "code": {
            "type": "integer",
            "description": "Machine-readable error code",
            "example": 54
          },
          "requestId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the request, used for support and tracing",
            "example": "e4c494ed-a22f-4c19-a30d-ce1ddea96d01"
          },
          "details": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string",
                  "description": "The request field the message applies to",
                  "example": "name"
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable explanation",
                  "example": "must be 1-255 characters of letters, digits, hyphens or underscores"
                }
              },
              "required": [
                "field",
                "message"
              ]
            },
            "description": "Field-level validation messages. Present on 400 validation failures."
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "code",
          "requestId"
        ],
        "description": "An RFC 9457 problem detail. Every error response in this API uses this one model."
      }
    }
  },
  "security": [
    {
      "UnityUser": []
    },
    {
      "ServiceAccount": []
    }
  ]
}
```