Send Requests
Use these guidelines when sending requests using the Oracle Visual Builder Studio REST API.
URL Structure
Here's the URL structure for Builds API requests:
https://server/org-id/rest/org-id_project-id/cibuild/v1/resource-path
And here's the structure for Issues API requests:
https://server/org-id/rest/org-id_project-id/issues/v3/resource-path
- 
                           
                           server is the host URL where Oracle Visual Builder Studio is running. 
- 
                           
                           org-id is the unique identifier for your VB Studio organization. 
- 
                           
                           org-id_project-id is a unique identifier for your project in VB Studio. 
- 
                           
                           resource-path is the relative path that defines the resource. 
From the Project Home page, you can fetch the server, org-id, and org-id_project-id information needed to construct the URL.
Note:
If you're the project owner, it may be easier to just select Project Administration in the navigator, click the Properties tile, then look in the Identifier field to find the org-id_project-id part of the URL.Supported Methods
You can perform these basic CRUD operations (create, read, update, and delete) on a resource by using standard HTTP method requests:
| HTTP Method | Description | 
| GET | Retrieves information about the builds, pipelines, or issues in Visual Builder Studio. | 
| PUT | Updates the issue, build, or pipeline. | 
| POST | Starts the build, starts the pipeline, or validates YAML in the Builds API. Creates an issue, adds a duplicate issue, or adds a subissue in the Issues API. | 
| DELETE | Deletes the issue, build, or pipeline. | 
Note:
The HTTP PUT method is used to "upload" items to a particular URI, or overwrite what is already there, in that URI. The HTTP POST method, on the other hand, provides a way to submit data that is related to a given URI.Media Types
The following media types are supported by the Oracle Visual Builder Studio REST API:
- 
                           
                           application/json
- 
                           
                           application/text
Supported Headers
The Oracle Visual Builder Studio REST API supports the following headers that may be passed in the header section of the HTTP request or response:
| Header | Description | Example | 
| Accept-Encoding | List of acceptable encodings to support compression. | Accept-Encoding: gzip | 
| Content-Encoding | List of acceptable encodings to support compression. | Content-Encoding: deflate | 
| Content-Type | Media type of the body of the request. Required for POST and PUT requests. | Content-Type: application/vnd.oracle.resource+json | 
More Information about Issues v3 API Headers
The Accept header must be specified in every request made using the Issues v3 API. The Content-type header must be specified for all POST and PUT requests, as well. Media types can be either application/json or application/vnd.oracle.resource+json.
curl ... -H "Accept: application/vnd.oracle.resource+json" ...
curl ... -H "Accept: application/vnd.oracle.resource+json" -H "Content-type: application/vnd.oracle.resource+json" ...
{"issue":{"id":1,"summary":"My first Issue" ... }}With the
                application/vnd.oracle.resource+json format, it would look like this:
                
{"id":1,"summary":"My first Issue" ... }When a resource's JSON data is submitted in the body of a request, the root element can't be wrapped. If it is, the server will reject the request.