WARNING

WARNING: These APIs are currently in an 'alpha' state and are likely to change over time. We recommend you not use them in a production setting at this time!


Update an Environment

Attributes

archive
boolean - optional
archive_passphrase
string - optional
include_debug_library
boolean - optional
name
string - optional
path
string - optional

Definition

PATCH  /environments/:id

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/environments/:id \
  -H "Accept: application/vnd.api+json;revision=1" \
  -H "Content-Type: application/vnd.api+json" \
  -H "Authorization: Bearer [TOKEN]" \
  -H "X-Api-Key: [KEY]" \
  -X PATCH \
  -d \
'
{
  "data": {
    "attributes": {
      "name": "New environment name"
    },
    "id": "ENb31e611919f348f58262c632c016c722",
    "type": "environments"
  }
}'

Example Response

200 OK
{
  "data": {
    "id": "ENb31e611919f348f58262c632c016c722",
    "type": "environments",
    "attributes": {
      "archive": false,
      "created_at": "2018-07-26T15:02:50.776Z",
      "library_path": "",
      "library_name": "launch-ENb31e611919f348f58262c632c016c722-development.min.js",
      "library_entry_points": [
        {
          "library_name": "launch-ENb31e611919f348f58262c632c016c722-development.min.js",
          "minified": true,
          "references": [
            "launch-ENb31e611919f348f58262c632c016c722-development.min.js"
          ]
        },
        {
          "library_name": "launch-ENb31e611919f348f58262c632c016c722-development.js",
          "minified": false,
          "references": [
            "launch-ENb31e611919f348f58262c632c016c722-development.js"
          ]
        }
      ],
      "name": "New environment name",
      "path": "//assets.adobedtm.com/staging",
      "stage": "development",
      "updated_at": "2018-07-26T15:02:51.055Z",
      "status": "succeeded"
    },
    "relationships": {
      "library": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/environments/ENb31e611919f348f58262c632c016c722/library"
        },
        "data": null
      },
      "builds": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/environments/ENb31e611919f348f58262c632c016c722/builds"
        }
      },
      "adapter": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/environments/ENb31e611919f348f58262c632c016c722/adapter",
          "self": "https://mc-api-activation-reactor-qe.adobe.io/environments/ENb31e611919f348f58262c632c016c722/relationships/adapter"
        },
        "data": {
          "type": "adapters",
          "id": "AD18f83e3294234f7c898778f297296a09"
        }
      },
      "property": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/environments/ENb31e611919f348f58262c632c016c722/property"
        },
        "data": {
          "type": "properties",
          "id": "PRb71fe1593c4a434da53c5ee4c1d1fd35"
        }
      }
    },
    "links": {
      "property": "https://mc-api-activation-reactor-qe.adobe.io/properties/PRb71fe1593c4a434da53c5ee4c1d1fd35",
      "self": "https://mc-api-activation-reactor-qe.adobe.io/environments/ENb31e611919f348f58262c632c016c722"
    },
    "meta": {
      "archive_encrypted": false
    }
  }
}