ArthurAI Organizations V1 API
The Organizations V1 API from ArthurAI — 1 operation(s) for organizations v1.
The Organizations V1 API from ArthurAI — 1 operation(s) for organizations v1.
openapi: 3.1.0
info:
title: Arthur GenAI Engine Agent Discovery Organizations V1 API
version: 2.1.688
tags:
- name: Organizations V1
paths:
/api/v1/organization:
get:
tags:
- Organizations V1
summary: Get Users Organization.
description: Requires organization_read permission.
operationId: get_users_organization
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Organization'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerError'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundError'
security:
- OAuth2AuthorizationCode:
- organization_read
delete:
tags:
- Organizations V1
summary: Delete Organization.
description: Deletes user's organization. Requires organization_delete permission.
operationId: delete_organization
responses:
'204':
description: Successful Response
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerError'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestError'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundError'
security:
- OAuth2AuthorizationCode:
- organization_delete
patch:
tags:
- Organizations V1
summary: Patch Organization.
description: Requires organization_update permission.
operationId: patch_organization
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchOrganization'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Organization'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerError'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundError'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- OAuth2AuthorizationCode:
- organization_update
components:
schemas:
BadRequestError:
properties:
detail:
type: string
title: Detail
default: Bad Request
type: object
title: BadRequestError
InternalServerError:
properties:
detail:
type: string
title: Detail
default: Internal server error
type: object
title: InternalServerError
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
NotFoundError:
properties:
detail:
type: string
title: Detail
default: Resource not found
type: object
title: NotFoundError
PatchOrganization:
properties:
name:
anyOf:
- type: string
- type: 'null'
title: Name
description: Name of the organization. Must be globally unique across all Arthur organizations.
type: object
title: PatchOrganization
Organization:
properties:
created_at:
type: string
format: date-time
title: Created At
description: Time of record creation.
updated_at:
type: string
format: date-time
title: Updated At
description: Time of last record update.
id:
type: string
format: uuid
title: Id
description: ID of the organization.
name:
type: string
title: Name
description: Name of the organization. Must be globally unique across all Arthur organizations.
type: object
required:
- created_at
- updated_at
- id
- name
title: Organization
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
securitySchemes:
API Key:
type: http
description: Bearer token authentication with an API key
scheme: bearer