openapi: 3.1.0 info: title: Arthur Scope Agents V1 Organizations V1 API version: 0.1.0 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: 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 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 InternalServerError: properties: detail: type: string title: Detail default: Internal server error type: object title: InternalServerError BadRequestError: properties: detail: type: string title: Detail default: Bad Request type: object title: BadRequestError HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError securitySchemes: OAuth2AuthorizationCode: type: oauth2 flows: authorizationCode: refreshUrl: https://platform-auth.arthur.ai/realms/arthur/protocol/openid-connect/token scopes: {} authorizationUrl: https://platform-auth.arthur.ai/realms/arthur/protocol/openid-connect/auth tokenUrl: https://platform-auth.arthur.ai/realms/arthur/protocol/openid-connect/token