Create projects

post

https://{your_site_interface}/opa-hub/api/12.2.35/projects

This operation will create projects.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : projectPost
Type: object
Show Source
Nested Schema : projectVersionsPost
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : projectVersionPost
Type: object
Show Source
Nested Schema : definition
Type: object
The definition of the decision service, which must conform to the Decision Service project format.
Security
  • Type: apiKey
    Description: Obtain a bearer token from https://{your_site_interface}/opa-hub/api/12.2.17/auth and use it in the Authorization header as: Bearer {token}.
  • Type: oauth2
    Description: POST the OAuth2 Client Credentials parameters to https://{your_site_interface}/opa-hub/api/12.2.17/auth and use the access token from the response in the Authorization header.
Back to Top

Response

Supported Media Types

201 Response

The request has been fulfilled and resulted in a new resource being created.
Body ()
Root Schema : projects
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : project
Type: object
Show Source
Nested Schema : projectInclusionsReport
Type: object
Show Source
Nested Schema : transaction
Type: object
Additional Properties Allowed: true
Transaction to apply to the project draft.
Nested Schema : projectVersions
Type: object
Show Source
Nested Schema : inclusions
Type: array
Read Only: true
Contains a flat array of all the project names and versions included by this project.
Show Source
Nested Schema : projectInclusionsReportInclusion
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : projectVersion
Type: object
Show Source
Nested Schema : definition
Type: object
The definition of the decision service, which must conform to the Decision Service project format.
Nested Schema : projectVersionInclusionsReport
Type: object
Show Source
Nested Schema : inclusions
Type: array
Read Only: true
Contains a flat array of all the project names and versions included by this project version.
Show Source
Nested Schema : projectVersionInclusionsReportInclusion
Type: object
Show Source

400 Response

The request could not be processed because it contains missing or invalid information.
Back to Top