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": "HTac96c73a16de4a3a9055ee413fdd39c1",
"type": "hosts"
}
}'
{
"data": {
"id": "HTac96c73a16de4a3a9055ee413fdd39c1",
"type": "hosts",
"attributes": {
"created_at": "2023-01-30T20:53:57.681Z",
"server": null,
"name": "My SFTP host",
"path": null,
"port": null,
"status": "succeeded",
"skip_symlinks": false,
"type_of": "akamai",
"updated_at": "2023-01-30T20:53:57.720Z",
"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/HTac96c73a16de4a3a9055ee413fdd39c1/property"
},
"data": {
"id": "PR2a4eec6b381a47e6bebea30fe1953e83",
"type": "properties"
}
}
},
"links": {
"property": "https://reactor.adobe.io/properties/PR2a4eec6b381a47e6bebea30fe1953e83",
"self": "https://reactor.adobe.io/hosts/HTac96c73a16de4a3a9055ee413fdd39c1"
}
}
}