Migrate machine types

PATCH /user/{user-slug}/apps/machine_types

Migrates all apps' machine types of a user from one machine type to another

Path parameters

Body Required

Machine type to migrate from and to

Responses

  • OK

    Hide response attributes Show response attributes object
    • errors array[object]
      Hide errors attributes Show errors attributes object
      • app string

        The apps which had an error's identifiers in the following format "#{app.title} (#{app.slug})"

      • error string
    • message string

      The result of the migration

    • migrated_apps array[string]

      The migrated apps' identifiers in the following format "#{app.title} (#{app.slug})"

  • Bad Request

    Hide response attribute Show response attribute object
  • Unauthorized

    Hide response attribute Show response attribute object
  • Not Found

    Hide response attribute Show response attribute object
  • Internal Server Error

    Hide response attribute Show response attribute object
PATCH /user/{user-slug}/apps/machine_types
curl \
 --request PATCH 'https://api.bitrise.io/v0.1/user/{user-slug}/apps/machine_types' \
 --header "Authorization: $API_KEY" \
 --data '{"from_machine":"string","to_machine":"string"}'
Request examples
{
  "from_machine": "string",
  "to_machine": "string"
}
Response examples (200)
{
  "errors": [
    {
      "app": "string",
      "error": "string"
    }
  ],
  "message": "string",
  "migrated_apps": [
    "string"
  ]
}
Response examples (400)
{
  "message": "string"
}
Response examples (401)
{
  "message": "string"
}
Response examples (404)
{
  "message": "string"
}
Response examples (500)
{
  "message": "string"
}