Infrastructure/Lifecycle
PUTLifecycleSince 1.0SynchronousAuth Required
SetDepotConfig
Update the depot configuration with new mode, URL, or credentials
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
configObjectRequiredConfiguration data as key-value pairs
modeStringDepot access mode: "online" for upstream, "dir" for local directory
Example: online
tokenStringBearer token for authenticating with the upstream depot (masked in responses)
Example: ****
baseUrlStringBase URL of the upstream depot service
Example: https://depot.example.com
channelStringOptional channel filter for package listing
Example: stable
localDirStringLocal directory path when mode is "dir"
Example: /opt/depot/packages
httpProxyStringOptional HTTP proxy URL for depot access
Example: http://proxy.example.com:3128
Responses
Endpoint
PUT/api/v1/lifecycle/depot/config
/api/v1/lifecycle/depot/config
Request Example
curl -X PUT '{host}/api/v1/lifecycle/depot/config' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"config":{"mode":"online","token":"****","baseUrl":"https://depot.example.com","channel":"stable","localDir":"/opt/depot/packages","httpProxy":"http://proxy.example.com:3128"}}'
Response Example
200{}Change History
This API has no change history records yet.
