Skip to content

Adopt

POST
/api/unmanaged/{kind}/{name}/adopt
curl --request POST \
--url https://kelpie.example.com/api/unmanaged/swarm/example/adopt \
--header 'Content-Type: application/json' \
--data '{ "repository_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "compose": "example", "deploy": "auto", "message": "example" }'

Commit a compose file for a stack deployed outside Kelpie to a repository.

kind
required
Kind
string
Allowed values: swarm compose
name
required
Name
string
endpoint
Endpoint
Any of:
string
Media typeapplication/json
AdoptIn
object
repository_id
required
Repository Id
string format: uuid
compose
required
Compose
string
>= 1 characters <= 524288 characters
deploy
DeployMode
string
default: manual
Allowed values: auto approve manual
message
Message
Any of:
string
<= 5000 characters

Successful Response

Media typeapplication/json
SaveResult
object
commit
required
Commit
string
branch
required
Branch
string
pull_request_url
required
Pull Request Url
Any of:
string
new_revisions
required
New Revisions
integer
queued_deployments
required
Queued Deployments
integer
deployment_id
Deployment Id
Any of:
string format: uuid

Example generated

{
"commit": "example",
"branch": "example",
"pull_request_url": "example",
"new_revisions": 1,
"queued_deployments": 1,
"deployment_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}