Skip to content

Commit 272ac1c

Browse files
Merge pull request #238 from BitGo/update-bitgo-api-docs
Update API reference on BitGo Developer Portal
2 parents 4652d34 + aaf23a4 commit 272ac1c

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed

api.yaml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28304,6 +28304,72 @@ paths:
2830428304
application/json:
2830528305
schema:
2830628306
$ref: '#/components/schemas/PlatformError'
28307+
/api/v2/organization/{organizationId}/enterprise/{enterpriseId}/contract:
28308+
post:
28309+
summary: Sign a contract for an enterprise within an organization
28310+
description: Sign a contract (MPA, CSA, etc.) for an enterprise under the specified organization.
28311+
operationId: v2.organization.enterprise.contract.sign
28312+
tags:
28313+
- Enterprise Management
28314+
parameters:
28315+
- name: organizationId
28316+
in: path
28317+
required: true
28318+
schema:
28319+
$ref: '#/components/schemas/OrganizationIdString'
28320+
- name: enterpriseId
28321+
in: path
28322+
required: true
28323+
schema:
28324+
$ref: '#/components/schemas/EnterpriseIdString'
28325+
requestBody:
28326+
content:
28327+
application/json:
28328+
schema:
28329+
type: object
28330+
properties:
28331+
contractType:
28332+
type: string
28333+
enum:
28334+
- trade-mpa
28335+
- custody-sa
28336+
- staking-sa
28337+
- master-agreement
28338+
signedDate:
28339+
type: string
28340+
required:
28341+
- contractType
28342+
responses:
28343+
'200':
28344+
description: OK
28345+
content:
28346+
application/json:
28347+
schema:
28348+
$ref: '#/components/schemas/SignOrganizationEnterpriseContractResponseC'
28349+
'400':
28350+
description: Bad Request
28351+
content:
28352+
application/json:
28353+
schema:
28354+
$ref: '#/components/schemas/PlatformError'
28355+
'403':
28356+
description: Forbidden
28357+
content:
28358+
application/json:
28359+
schema:
28360+
$ref: '#/components/schemas/PlatformError'
28361+
'404':
28362+
description: Not Found
28363+
content:
28364+
application/json:
28365+
schema:
28366+
$ref: '#/components/schemas/PlatformError'
28367+
'500':
28368+
description: Internal Server Error
28369+
content:
28370+
application/json:
28371+
schema:
28372+
$ref: '#/components/schemas/PlatformError'
2830728373
/api/v2/organization/{organizationId}/enterprise/{enterpriseId}/user:
2830828374
post:
2830928375
summary: Add a user to an enterprise within an organization
@@ -55570,6 +55636,36 @@ components:
5557055636
- messageEncoded
5557155637
- messageStandardType
5557255638
- $ref: '#/components/schemas/BaseIntent'
55639+
SignOrganizationEnterpriseContractResponseC:
55640+
title: SignOrganizationEnterpriseContractResponseC
55641+
type: object
55642+
properties:
55643+
success:
55644+
type: boolean
55645+
contractsSigned:
55646+
type: array
55647+
items:
55648+
type: object
55649+
properties:
55650+
contractType:
55651+
type: string
55652+
signedBy:
55653+
type: string
55654+
signedDate:
55655+
type: string
55656+
ip:
55657+
type: string
55658+
required:
55659+
- contractType
55660+
- signedBy
55661+
- signedDate
55662+
- ip
55663+
message:
55664+
type: string
55665+
required:
55666+
- success
55667+
- contractsSigned
55668+
- message
5557355669
SignatureShare:
5557455670
type: object
5557555671
properties:

0 commit comments

Comments
 (0)