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 Adapter

note

Only Adapters with type_of: sftp may be updated.

Attributes

encrypted_private_key
string - optional
host
string - optional
name
string - optional
path
string - optional
port
integer - optional
user
string - optional

Definition

PATCH  /adapters/:id

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/adapters/: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": "My SFTP adapter"
    },
    "id": "ADa3497f8068c64adfb11135b49756c631",
    "type": "adapters"
  }
}'

Example Response

200 OK
{
  "data": {
    "id": "ADa3497f8068c64adfb11135b49756c631",
    "type": "adapters",
    "attributes": {
      "created_at": "2018-06-15T19:09:09.592Z",
      "host": null,
      "name": "My SFTP adapter",
      "path": null,
      "port": null,
      "status": "succeeded",
      "type_of": "akamai",
      "updated_at": "2018-06-15T19:09:09.793Z",
      "user": null
    },
    "relationships": {
      "property": {
        "links": {
          "related": "http://localhost:9010/adapters/ADa3497f8068c64adfb11135b49756c631/property"
        },
        "data": {
          "type": "properties",
          "id": "PR53c4828dd9344eba829b4d62ae2a7755"
        }
      }
    },
    "links": {
      "property": "http://localhost:9010/properties/PR53c4828dd9344eba829b4d62ae2a7755",
      "self": "http://localhost:9010/adapters/ADa3497f8068c64adfb11135b49756c631"
    }
  }
}