Skip to content

Commit e537c8a

Browse files
Merge pull request #231 from BitGo/update-bitgo-api-docs
Update API reference on BitGo Developer Portal
2 parents 8436092 + bcd98f6 commit e537c8a

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

api.yaml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28285,6 +28285,80 @@ paths:
2828528285
application/json:
2828628286
schema:
2828728287
$ref: '#/components/schemas/PlatformError'
28288+
/api/v2/organization/{organizationId}/enterprise/{enterpriseId}/user:
28289+
post:
28290+
summary: Add a user to an enterprise within an organization
28291+
description: Add an existing user to an enterprise under the specified organization.
28292+
operationId: v2.organization.enterprise.user.add
28293+
tags:
28294+
- Enterprise Management
28295+
parameters:
28296+
- name: organizationId
28297+
in: path
28298+
required: true
28299+
schema:
28300+
$ref: '#/components/schemas/OrganizationIdString'
28301+
- name: enterpriseId
28302+
in: path
28303+
required: true
28304+
schema:
28305+
$ref: '#/components/schemas/EnterpriseIdString'
28306+
requestBody:
28307+
content:
28308+
application/json:
28309+
schema:
28310+
type: object
28311+
properties:
28312+
email:
28313+
type: string
28314+
minLength: 1
28315+
permissions:
28316+
type: array
28317+
items:
28318+
type: string
28319+
enum:
28320+
- admin
28321+
- auditor
28322+
description: 'This type represents the permissions that can be assigned to a user when adding them to an enterprise 1. ''admin'': Add/remove users, Create wallets, Manage enterprise policies, Add Bank Accounts, Receive invitations to wallets 2. ''auditor'': View audit logs across the enterprise, Receive invitations to wallets'
28323+
required:
28324+
- email
28325+
responses:
28326+
'200':
28327+
description: OK
28328+
content:
28329+
application/json:
28330+
schema:
28331+
$ref: '#/components/schemas/AddUserToOrganizationEnterpriseResponseC'
28332+
'400':
28333+
description: Bad Request
28334+
content:
28335+
application/json:
28336+
schema:
28337+
$ref: '#/components/schemas/PlatformError'
28338+
'403':
28339+
description: Forbidden
28340+
content:
28341+
application/json:
28342+
schema:
28343+
$ref: '#/components/schemas/PlatformError'
28344+
'404':
28345+
description: Not Found
28346+
content:
28347+
application/json:
28348+
schema:
28349+
$ref: '#/components/schemas/PlatformError'
28350+
'409':
28351+
description: Conflict
28352+
content:
28353+
application/json:
28354+
schema:
28355+
$ref: '#/components/schemas/PlatformError'
28356+
'500':
28357+
description: Internal Server Error
28358+
content:
28359+
application/json:
28360+
schema:
28361+
$ref: '#/components/schemas/PlatformError'
2828828362
/api/v2/organization/{organizationId}/reports:
2828928363
get:
2829028364
summary: List org-level reports
@@ -36980,6 +37054,15 @@ components:
3698037054
- addressCount
3698137055
- pendingChainInitialization
3698237056
- rewardAddress
37057+
AddUserToOrganizationEnterpriseResponseC:
37058+
title: AddUserToOrganizationEnterpriseResponseC
37059+
type: object
37060+
properties:
37061+
userId:
37062+
type: string
37063+
minLength: 1
37064+
required:
37065+
- userId
3698337066
AdditionalEnterpriseInfo:
3698437067
title: AdditionalEnterpriseInfo
3698537068
type: object
@@ -43686,6 +43769,7 @@ components:
4368643769
- COMPLETE
4368743770
- CANCELLED
4368843771
- FAILED
43772+
- AUTO_CANCELLED
4368943773
ExchangeEddsaCommitmentsResponse:
4369043774
title: ExchangeEddsaCommitmentsResponse
4369143775
type: object

0 commit comments

Comments
 (0)