Publish Project to Exchange
POST {{url}}/projects/{{project_id}}/branches/{{branch}}/publish/exchange
Publish project to Exchange. As a result, an Exchange asset is created.
Request Body
{"main"=>"api.raml", "apiVersion"=>"1.0.0", "version"=>"1.0.0", "assetId"=>"publish-project-doc", "groupId"=>"gid1234", "classifier"=>"oas"}
HEADERS
| Key | Datatype | Required | Description | 
|---|---|---|---|
| x-owner-id | string | (Required) User's ownerId, which identifies the user performing the operation. | |
| This is NOT the username, but an UUID that can be found in the users page by the organization administrator. | |||
| X-ANYPNT-ORG-ID | string | (Required) OrganizationId, which identifies the organization to which perform the operation. | |
| This can be found in the organizations page by the organization administrator. | |||
| Content-Type | string | ||
| Authorization | string | 
RESPONSES
status: OK
{"assetId":"test-publish-doc","groupId":"6a2f41a3-c54c-fce8-32d2-0324e1c32e22","organizationId":"6a2f41a3-c54c-fce8-32d2-0324e1c32e22","version":"1.0.0"}