## Create `gpu_droplets.floating_ips.actions.create(strfloating_ip, ActionCreateParams**kwargs) -> ActionCreateResponse` **post** `/v2/floating_ips/{floating_ip}/actions` To initiate an action on a floating IP send a POST request to `/v2/floating_ips/$FLOATING_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 floating IP to a Droplet | | `unassign` | Unassign a floating IP from a Droplet | ### Parameters - `floating_ip: str` - `type: Literal["assign", "unassign"]` The type of action to initiate for the floating IP. - `"assign"` - `"unassign"` ### Returns - `class ActionCreateResponse: …` - `action: Optional[Action]` - `project_id: Optional[str]` The UUID of the project to which the reserved IP currently belongs. ### Example ```python from gradient import Gradient client = Gradient() action = client.gpu_droplets.floating_ips.actions.create( floating_ip="45.55.96.47", type="assign", ) print(action.action) ```