Adopt
POST
/api/unmanaged/{kind}/{name}/adopt
const url = 'https://kelpie.example.com/api/unmanaged/swarm/example/adopt';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"repository_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","compose":"example","deploy":"auto","message":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”kind
required
Kind
string
name
required
Name
string
Query Parameters
Section titled “Query Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
SaveResult
object
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>
ValidationErrorobject
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": {} } ]}