Get Plan Java Parameters
Endpoint Information
- URL: {gateway-url}/plan-java-parameters/plan/{planId}
- Method: GET
- Authentication: Required (Bearer Token)
- Company Header: Required (X-Company-Id)
Headers
Header | Type | Required | Description |
|---|---|---|---|
Authorization | String | Yes | Bearer token used for authentication. Example: Bearer <your_access_token>. |
X-Company-Id | Long | Yes | The company ID used to scope the request. |
Accept | String | No | Recommended value: application/json. |
Path Parameters
Parameter | Type | Required | Description |
|---|---|---|---|
planId | Long | Yes | The unique ID of the test plan. Must be a positive number. |
Request Body
This endpoint does not require a request body.
Response Body
{
"data": [
{
"name": "env",
"value": "prod",
"description": "Environment selection parameter",
"type": "ENVIRONMENT_PARAMETER"
}
]
}If the plan does not have Java parameters, the endpoint returns an empty list:
{
"data": []
}Response Fields
Parameter | Type | Description |
|---|---|---|
data | Array of objects | List of Java parameters defined for the test plan. |
data[].name | String | Name of the Java parameter. |
data[].value | String | Value of the Java parameter. |
data[].description | String | Description of the Java parameter. |
data[].type | String | Type of Java parameter. Possible values: ENVIRONMENT_PARAMETER, COMMAND_PARAMETER. |
Behavior Notes
- This endpoint retrieves Java parameters of the given test plan.
- The test plan lookup is scoped by X-Company-Id.
- If the plan exists but has no Java parameters, the response returns data as an empty array.
- The response does not include result.code or result.message.
Error Response Format
Error responses use the common problem detail format.
{
"instance": "/plan-java-parameters/plan/999999",
"status": 404,
"title": "Not Found",
"type": "https://errors.testinium.com/exception",
"timestamp": "2026-08-18T12:08:41.165927056Z",
"errorType": "EXCEPTION",
"errors": {
"code": 10003,
"message": "Plan with id 999999 not found!"
}
}Error Codes
HTTP Code | Error Message | Description |
|---|---|---|
400 | BAD_REQUEST | The request is malformed, contains invalid path parameters, or a required header is missing. |
401 | UNAUTHORIZED | Authentication failed, authentication is required, or the token is invalid. |
403 | FORBIDDEN | The user does not have permission to access the requested company or resource. |
404 | NOT_FOUND | The requested test plan could not be found. |
405 | METHOD_NOT_ALLOWED | The HTTP method is not supported. This endpoint only supports GET. |
503 | SERVICE_UNAVAILABLE | The routed project service is unavailable. |
500 | INTERNAL_SERVER_ERROR | An unexpected error occurred on the server side. |
Application Error Codes
Code | Error Type | HTTP Code | Description |
|---|---|---|---|
10000 | EXCEPTION | 401 | Authentication failed. |
10001 | EXCEPTION | 401 | Authentication is required to access this resource. |
10002 | EXCEPTION | 401 | The provided token is invalid. |
10003 | EXCEPTION | 403 / 404 | The user is not authorized for the requested resource, or the requested test plan could not be found. |
10004 | EXCEPTION | 400 | A required header is missing. For example, X-Company-Id is not provided. |
10005 | EXCEPTION | 401 | A required token claim is missing. |
10007 | EXCEPTION | 403 | The user does not have access to the requested resource. |
10008 | EXCEPTION | 503 | The routed project service is unavailable. |
20005 | VALIDATION | 400 | The planId path parameter is invalid. For example, it is not a positive number. |
20008 | EXCEPTION | 400 | The planId path parameter has an invalid type. |
20009 | EXCEPTION | 405 | The HTTP method is not supported. |
Example Request
curl --location '{gateway-url}/plan-java-parameters/plan/{planId}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <your_access_token>' \
--header 'X-Company-Id: <company_id>'