Summary
Create repository configuration
Description
Create a new repository configuration
Route
POST /prebuilts-repository/configs
Roles
admin
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
name |
string |
yes |
The name of the repository configuration |
config |
object |
yes |
The properties of the repository configuration |
Copied to Clipboard
{
"name": "Lorem",
"config": {
"enabled": true,
"type": "gitlab",
"hostname": "gitlab.com",
"path": "itentialopensource/pre-built-automations",
"credentials": {
"token": "uTc_P4pnMAEsLbQHmyOt"
},
"versionStatus": "latest"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"name": {
"title": "name",
"type": "string"
},
"config": {
"title": "config",
"$ref": "repository-schema"
}
},
"required": [
"name",
"config"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
results |
object |
The result of the creation process |
Copied to Clipboard
{
"status": "OK",
"message": "A sample success message",
"data": {
"enabled": false,
"type": "gitlab",
"hostname": "gitlab.com",
"path": "itentialopensource/pre-built-automations",
"credentials": {
"token": "uTc_P4pnMAEsLbQHmyOt"
},
"versionStatus": "latest"
}
}