REST v.2 request properties
Requests are the primary process model of BMC Release Process Management (RPM). They can belong to plans and projects and typically have one or more steps that do manual or automated work to complete the release.
GET /v2/request_properties
Returns a list of all request properties which a user can access.
Filters
request_id—Integer ID of a request for which you want to retrieve request properties
request_template_id—Integer ID of a request template for which you want to retrieve request properties. Request template ID can be obtained using the GET method for request templates.
stage_id—Integer value for the stage included in the plan
Errors caused
- ERROR 403 Forbidden—Occurs when the token is invalid.
- ERROR 404 Not found—Occurs when record to show is not found.
Examples
To test this method, insert the URL or your valid API key and application host into a browser or HTTP client like Wget or cURL.
To get a list of all request properties:
GET /v2/request_properties/[id]
Returns a request property by ID.
Common attributes
- id—Numerical unique ID for the record
- format—Ensure to include an accept header or add JSON to the last path element
- token—Your API Token for authentication
Errors caused
- ERROR 403 Forbidden—Occurs when the token is invalid.
- ERROR 404 Not found—Occurs when record to show is not found.
Examples
To test this method, insert the URL or your valid API key and application host into a browser or HTTP client like Wget or cURL.
To get the details of a release by ID, run the following REST call:
POST /v2/request_properties
Creates a new request property in a request or request template from the posted data. You can create request properties only for the requests with the Created, Planned, or Hold statuses.
Required attributes
- name—String for the request property name
Depending on the object for which you create a request property, one of the following is required:
- request_id—Integer ID of a request for which you want to create request properties
- request_template_id—Integer ID of a request template for which you want to create request properties. Request template ID can be obtained using the GET method for request templates.
Optional attributes
- value—String value of a request property
- private—Boolean value
- required—Boolean value
Common attributes
- format—An accept header or JSON added to the last path element
- token—Your API Token for authentication
Errors caused
- ERROR 403 Forbidden—Occurs when the token is invalid
- ERROR 422 Unprocessable entity—Occurs when validation fails and objects and errors are returned
Examples
To test this method, insert the URL or your valid API key and application host into a browser or HTTP client like Wget or cURL.
To create a request property in a request template:
To create a private request property in a request template:
To create a required request property in a request template:
To create a request property in a request:
To create a required request property in a request:
PUT /v2/request_properties/[id]
Updates an existing request property with values from a posted document. You can edit request properties only for the requests with the Created, Planned, or Hold statuses.
Editable attributes
- name—String for the request property name
private—Boolean value
- required—Boolean value
- value—String value of a request property
Common attributes
- format—An accept header or .xml or .json added to the last path element
- token—API Token for authentication
Errors caused
- ERROR 403 Forbidden—Occurs when the token is invalid
- ERROR 404 Not found—Occurs when the record to update is not found
- ERROR 422 Unprocessable entity—Occurs when validation fails and objects and errors are returned
Examples
To test this method, insert the URL or your valid API key and application host into a browser or HTTP client like Wget or cURL.
DELETE /v2/request_properties/[id]
Deletes a request property from a request or request template.
Common attributes
- id—Numerical unique ID for the record
- format—An accept header or .xml or .json added to the last path element
- token—API Token for authentication
Errors caused
- ERROR 403 Forbidden—Occurs when the token is invalid
- ERROR 404 Not found—Occurs when no records are found
Examples
To test this method, insert the URL or your valid API key and application host into a browser or HTTP client like Wget or cURL.
Related topics