Modifies the ER build configuration.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RootDirectory |
string |
No |
The root directory. |
/root/admin |
| BuildBranches |
string |
No |
The branches that trigger a build. Set this to * for all branches. To specify multiple branches, separate branch names with commas. |
int,abc |
| AssetsDirectory |
string |
No |
The static resource directory. |
/root/user |
| NodeVersion |
string |
No |
The Node.js version. Valid values: |
22.x |
| RoutineName |
string |
Yes |
The ER name. |
test-routine |
| GitPlatform |
string |
No |
The Git platform. Valid values: github, gitee, and upload. |
github |
| Repository |
string |
No |
The repository name. |
example-test |
| EnvironmentVariables |
object |
No |
The environment variables. |
100 |
|
string |
No |
The environment variables. |
{"NODE_ENV": "development"} |
|
| RoutineEntry |
string |
No |
The ER entry file path. |
/home |
| IsPrivate |
boolean |
No |
Specifies whether the repository is private. Valid values:
|
false |
| BuildCommand |
string |
No |
The build command. |
npm run build |
| ProductionBranch |
string |
No |
The production branch name. |
main |
| GitAccountId |
integer |
No |
The Git account ID. |
4580717755793600 |
| InstallCommand |
string |
No |
The install command. |
npm install |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
3558df77-8a7a-4060-a900-2d7949403836 |
Examples
Success response
JSON format
{
"RequestId": "3558df77-8a7a-4060-a900-2d7949403836"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | ServiceInvokeFailed | The call to the internal service failed. The engineer is resolving the problem. Please wait a moment before trying, or contact customer service for details. | Failed to call the service. Please try again later or contact customer service for details. |
| 400 | GitAccountAuthExpired | Git account authorization expired. | Git account authorization expired. |
| 400 | GitAccountNotActive | Git account is not active. | Git account is not active. |
| 400 | GitAccountNotExist | Git account does not exist. | Git account does not exist. |
| 400 | RoutineBuildConfigurationNotExist | Routine build configuration does not exist. | Routine build configuration does not exist. |
| 400 | RoutineInstanceNotExist | The Routine instance does not exist. | The Routine instance does not exist. |
| 400 | RoutineNotExist | Routine does not exist. | Routine does not exist. |
| 400 | EnvironmentExceedLimit | The environment variable parameter exceeds the limit, and the number of keys and values exceeds the limit. | The environment variable parameter exceeds the limit, and the number of keys and values exceeds the limit. |
| 400 | EnvironmentVariableKeyValueTooLong | The key/value length in the EnvironmentVariable parameter exceeds the limit. The length of a single key is not greater than 100, and the length of a single value is not greater than 200. | The key/value length in the EnvironmentVariable parameter exceeds the limit. The length of a single key is not greater than 100, and the length of a single value is not greater than 200. |
| 400 | RepositoryExceedLimit | One code repository can only be associated with up to 10 Routine build configurations. | One code repository can only be associated with up to 10 Routine build configurations. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.