Variables

Convert all non-sensitive project variables to be stored in Git rather than the database.

post/spaces/{spaceIdentifier}/projects/{projectId}/git/migrate-variables

Request

  • Base URL
    https://demo.octopus.app/api
  • URL
    https://demo.octopus.app/api/spaces/{spaceIdentifier}/projects/{projectId}/git/migrate-variables
  • Auth
    • API key in header X-Octopus-ApiKey
    • or API key in query parameter ApiKey
    • or API key in header X-NuGet-ApiKey

Path parameters

spaceIdentifierstring required

Identifier (ID or slug) of the space

projectIdstring required

Request body

Branchstring required
CommitMessagestring required
CreateBranchboolean
ProjectIdstring required
SpaceIdstring required

The ID of the space containing the resource(s).

Example request

{
  "ProjectId": "Projects-1",
  "SpaceId": "Spaces-1"
}

Response

Empty response indicating the Project Variables were converted

ConvertProjectVariablesToGitResponse required

Changes

No recorded changes to this operation across all 13 revisions of this API.