Skip to Content

ConvertToTeamOrganization

POST
/auth/v1/organizations/{org_id}/convert-to-team

Authorization

headerX-API-Key<token>

API key for protected endpoints, supplied in the X-API-Key header.

Path Parameters

org_id*org_id

Response Body

200application/json

Success

type: unknown

{
  "$ref": "#/components/schemas/auth.v1.ConvertToTeamOrganizationResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "organization": {
        "title": "organization",
        "$ref": "#/components/schemas/auth.v1.Organization",
        "$ref-value": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "title": "id"
            },
            "name": {
              "type": "string",
              "title": "name"
            },
            "slug": {
              "type": "string",
              "title": "slug"
            },
            "image_id": {
              "type": "string",
              "title": "image_id"
            },
            "personal": {
              "type": "boolean",
              "title": "personal"
            },
            "internal": {
              "type": "boolean",
              "title": "internal"
            },
            "created_at": {
              "title": "created_at",
              "$ref": "#/components/schemas/google.protobuf.Timestamp",
              "$ref-value": {
                "type": "string",
                "examples": [
                  "2023-01-15T01:30:15.01Z",
                  "2024-12-25T12:00:00Z"
                ],
                "format": "date-time",
                "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
              }
            },
            "state": {
              "title": "state",
              "$ref": "#/components/schemas/auth.v1.OrganizationState",
              "$ref-value": {
                "type": "string",
                "title": "OrganizationState",
                "enum": [
                  "ORGANIZATION_STATE_UNSPECIFIED",
                  "ORGANIZATION_STATE_ACTIVE",
                  "ORGANIZATION_STATE_DELETED",
                  "ORGANIZATION_STATE_PURGING"
                ]
              }
            },
            "delete_time": {
              "title": "delete_time",
              "$ref": "#/components/schemas/google.protobuf.Timestamp",
              "$ref-value": {
                "type": "string",
                "examples": [
                  "2023-01-15T01:30:15.01Z",
                  "2024-12-25T12:00:00Z"
                ],
                "format": "date-time",
                "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
              }
            },
            "purge_time": {
              "title": "purge_time",
              "$ref": "#/components/schemas/google.protobuf.Timestamp",
              "$ref-value": {
                "type": "string",
                "examples": [
                  "2023-01-15T01:30:15.01Z",
                  "2024-12-25T12:00:00Z"
                ],
                "format": "date-time",
                "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
              }
            }
          },
          "title": "Organization",
          "additionalProperties": false
        }
      },
      "personal_organization": {
        "title": "personal_organization",
        "$ref": "#/components/schemas/auth.v1.Organization",
        "$ref-value": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "title": "id"
            },
            "name": {
              "type": "string",
              "title": "name"
            },
            "slug": {
              "type": "string",
              "title": "slug"
            },
            "image_id": {
              "type": "string",
              "title": "image_id"
            },
            "personal": {
              "type": "boolean",
              "title": "personal"
            },
            "internal": {
              "type": "boolean",
              "title": "internal"
            },
            "created_at": {
              "title": "created_at",
              "$ref": "#/components/schemas/google.protobuf.Timestamp",
              "$ref-value": {
                "type": "string",
                "examples": [
                  "2023-01-15T01:30:15.01Z",
                  "2024-12-25T12:00:00Z"
                ],
                "format": "date-time",
                "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
              }
            },
            "state": {
              "title": "state",
              "$ref": "#/components/schemas/auth.v1.OrganizationState",
              "$ref-value": {
                "type": "string",
                "title": "OrganizationState",
                "enum": [
                  "ORGANIZATION_STATE_UNSPECIFIED",
                  "ORGANIZATION_STATE_ACTIVE",
                  "ORGANIZATION_STATE_DELETED",
                  "ORGANIZATION_STATE_PURGING"
                ]
              }
            },
            "delete_time": {
              "title": "delete_time",
              "$ref": "#/components/schemas/google.protobuf.Timestamp",
              "$ref-value": {
                "type": "string",
                "examples": [
                  "2023-01-15T01:30:15.01Z",
                  "2024-12-25T12:00:00Z"
                ],
                "format": "date-time",
                "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
              }
            },
            "purge_time": {
              "title": "purge_time",
              "$ref": "#/components/schemas/google.protobuf.Timestamp",
              "$ref-value": {
                "type": "string",
                "examples": [
                  "2023-01-15T01:30:15.01Z",
                  "2024-12-25T12:00:00Z"
                ],
                "format": "date-time",
                "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
              }
            }
          },
          "title": "Organization",
          "additionalProperties": false
        }
      }
    },
    "title": "ConvertToTeamOrganizationResponse",
    "additionalProperties": false
  }
}
default
curl -X POST 'https://api.rixl.com/auth/v1/organizations/string/convert-to-team'

Success

application/json

{
  "$ref": "#/components/schemas/auth.v1.ConvertToTeamOrganizationResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "organization": {
        "title": "organization",
        "$ref": "#/components/schemas/auth.v1.Organization",
        "$ref-value": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "title": "id"
            },
            "name": {
              "type": "string",
              "title": "name"
            },
            "slug": {
              "type": "string",
              "title": "slug"
            },
            "image_id": {
              "type": "string",
              "title": "image_id"
            },
            "personal": {
              "type": "boolean",
              "title": "personal"
            },
            "internal": {
              "type": "boolean",
              "title": "internal"
            },
            "created_at": {
              "title": "created_at",
              "$ref": "#/components/schemas/google.protobuf.Timestamp",
              "$ref-value": {
                "type": "string",
                "examples": [
                  "2023-01-15T01:30:15.01Z",
                  "2024-12-25T12:00:00Z"
                ],
                "format": "date-time",
                "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
              }
            },
            "state": {
              "title": "state",
              "$ref": "#/components/schemas/auth.v1.OrganizationState",
              "$ref-value": {
                "type": "string",
                "title": "OrganizationState",
                "enum": [
                  "ORGANIZATION_STATE_UNSPECIFIED",
                  "ORGANIZATION_STATE_ACTIVE",
                  "ORGANIZATION_STATE_DELETED",
                  "ORGANIZATION_STATE_PURGING"
                ]
              }
            },
            "delete_time": {
              "title": "delete_time",
              "$ref": "#/components/schemas/google.protobuf.Timestamp",
              "$ref-value": {
                "type": "string",
                "examples": [
                  "2023-01-15T01:30:15.01Z",
                  "2024-12-25T12:00:00Z"
                ],
                "format": "date-time",
                "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
              }
            },
            "purge_time": {
              "title": "purge_time",
              "$ref": "#/components/schemas/google.protobuf.Timestamp",
              "$ref-value": {
                "type": "string",
                "examples": [
                  "2023-01-15T01:30:15.01Z",
                  "2024-12-25T12:00:00Z"
                ],
                "format": "date-time",
                "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
              }
            }
          },
          "title": "Organization",
          "additionalProperties": false
        }
      },
      "personal_organization": {
        "title": "personal_organization",
        "$ref": "#/components/schemas/auth.v1.Organization",
        "$ref-value": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "title": "id"
            },
            "name": {
              "type": "string",
              "title": "name"
            },
            "slug": {
              "type": "string",
              "title": "slug"
            },
            "image_id": {
              "type": "string",
              "title": "image_id"
            },
            "personal": {
              "type": "boolean",
              "title": "personal"
            },
            "internal": {
              "type": "boolean",
              "title": "internal"
            },
            "created_at": {
              "title": "created_at",
              "$ref": "#/components/schemas/google.protobuf.Timestamp",
              "$ref-value": {
                "type": "string",
                "examples": [
                  "2023-01-15T01:30:15.01Z",
                  "2024-12-25T12:00:00Z"
                ],
                "format": "date-time",
                "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
              }
            },
            "state": {
              "title": "state",
              "$ref": "#/components/schemas/auth.v1.OrganizationState",
              "$ref-value": {
                "type": "string",
                "title": "OrganizationState",
                "enum": [
                  "ORGANIZATION_STATE_UNSPECIFIED",
                  "ORGANIZATION_STATE_ACTIVE",
                  "ORGANIZATION_STATE_DELETED",
                  "ORGANIZATION_STATE_PURGING"
                ]
              }
            },
            "delete_time": {
              "title": "delete_time",
              "$ref": "#/components/schemas/google.protobuf.Timestamp",
              "$ref-value": {
                "type": "string",
                "examples": [
                  "2023-01-15T01:30:15.01Z",
                  "2024-12-25T12:00:00Z"
                ],
                "format": "date-time",
                "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
              }
            },
            "purge_time": {
              "title": "purge_time",
              "$ref": "#/components/schemas/google.protobuf.Timestamp",
              "$ref-value": {
                "type": "string",
                "examples": [
                  "2023-01-15T01:30:15.01Z",
                  "2024-12-25T12:00:00Z"
                ],
                "format": "date-time",
                "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
              }
            }
          },
          "title": "Organization",
          "additionalProperties": false
        }
      }
    },
    "title": "ConvertToTeamOrganizationResponse",
    "additionalProperties": false
  }
}