Only Hosts with type_of: sftp
may be updated.
encrypted_private_key
name
path
port
server
skip_symlinks
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": "HTfafbfb876a0b444e9fe3fed86cefe5e3",
"type": "hosts"
}
}'
{
"data": {
"id": "HTfafbfb876a0b444e9fe3fed86cefe5e3",
"type": "hosts",
"attributes": {
"created_at": "2023-04-21T22:59:37.418Z",
"server": null,
"name": "My SFTP host",
"path": null,
"port": null,
"status": "succeeded",
"skip_symlinks": false,
"type_of": "akamai",
"updated_at": "2023-04-21T22:59:37.467Z",
"username": null,
"created_by_email": "ciltaru@adobe.com",
"created_by_display_name": "George Ciltaru",
"updated_by_email": "ciltaru@adobe.com",
"updated_by_display_name": "George Ciltaru"
},
"relationships": {
"property": {
"links": {
"related": "https://reactor.adobe.io/hosts/HTfafbfb876a0b444e9fe3fed86cefe5e3/property"
},
"data": {
"id": "PRe6b24968ff2c4c959065c117fd41534c",
"type": "properties"
}
}
},
"links": {
"property": "https://reactor.adobe.io/properties/PRe6b24968ff2c4c959065c117fd41534c",
"self": "https://reactor.adobe.io/hosts/HTfafbfb876a0b444e9fe3fed86cefe5e3"
}
}
}