Only Hosts with type_of: sftp
may be updated.
encrypted_private_key
name
path
port
server
type_of
username
PATCH /hosts/:id
curl https://reactor.adobe.io/hosts/: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]" \
-H "X-Gw-Ims-Org-Id: [ORG_ID]" \
-X PATCH \
-d \
'
{
"data": {
"attributes": {
"name": "My SFTP host"
},
"id": "HT858f4c0a71cc4e8d87399b3499556dc8",
"type": "hosts"
}
}'
{
"data": {
"id": "HT858f4c0a71cc4e8d87399b3499556dc8",
"type": "hosts",
"attributes": {
"created_at": "2022-02-04T21:13:48.858Z",
"server": null,
"name": "My SFTP host",
"path": null,
"port": null,
"status": "succeeded",
"type_of": "akamai",
"updated_at": "2022-02-04T21:13:49.021Z",
"username": null
},
"relationships": {
"property": {
"links": {
"related": "https://reactor.adobe.io/hosts/HT858f4c0a71cc4e8d87399b3499556dc8/property"
},
"data": {
"id": "PR11d7de4857ab48f2bcf25749d2b9fb95",
"type": "properties"
}
}
},
"links": {
"property": "https://reactor.adobe.io/properties/PR11d7de4857ab48f2bcf25749d2b9fb95",
"self": "https://reactor.adobe.io/hosts/HT858f4c0a71cc4e8d87399b3499556dc8"
}
}
}