dots.v2.reserved_ips.byReserved_ip().actions.post()
Generated on 13 Nov 2026
from DoTs version
v1.24.0
Usage
client.v2.reserved_ips.byReserved_ip(reserved_ip).actions.post(body: Reserved_ip_action_assign | Reserved_ip_action_unassign, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ActionsPostResponse>Description
To initiate an action on a reserved IP send a POST request to
/v2/reserved_ips/{reserved_ip}/actions. In the JSON body to the request,
set the type attribute to on of the supported action types:
| Action | Details |
|---|---|
assign |
Assigns a reserved IP to a Droplet |
unassign |
Unassign a reserved IP from a Droplet |
Parameters
Path Parameters
reserved_ipstring requiredExample:
45.55.96.47A reserved IP address.
Request Body
reserved_ip_action_unassign
typestring requiredThe type of action to initiate for the reserved IP.
reserved_ip_action_assign
typestring requiredThe type of action to initiate for the reserved IP.
dropletIdinteger requiredExample:
758604968The ID of the Droplet that the reserved IP will be assigned to.
Request Sample
Response Example
More Information
See /v2/reserved_ips/{reserved_ip}/actions in the API reference for additional detail on responses, headers, parameters, and more.