post
https://api.phantombuster.com/api/v2/agents/save
Updates or creates a new agent. If an id is provided, the corresponding agent will be updated. Otherwise, a new agent will be created.
400No such org, script, branch or environment or invalid parameters provided.
401Script is not from your org and isn't public or is in staging.
402Maximum amount of agents reached. Please upgrade your plan to unlock more slots for your agents.
412Script does not exist in the specified branch.