Updates or creates a new agent. If an id is provided, the corresponding agent will be updated. Otherwise, a new agent will be created.
Headers
ID of the org that is perfoming the operation (not necessary when using a third party key)
Request body
If set, the agent with the corresponding id will be updated.
If set, the upserted agent will be linked to the specified organization.
If set, the upserted agent will be assigned to the specified script.
If set, the upserted agent will be assigned to the specified branch.
If set, the upserted agent will be assigned to the specified environment.
Name of the agent.
When set, the execution time of the agent will be limited by the provided value. If this limit is exceeded, the agent will be stopped.
Agent file management type. The type 'folders' means create new files. The type 'mix' means combine new and previous files. The type 'delete' means delete previous files.
Max amount of folders for file management.
Sets the maximum amount of concurrent executions of the agent.
Sets the maximum amount of retries the agent will do before aborting.
Sets how the agent will be launched. Either "manually", "repeatedly", "once" or "after agent".
Must be set when launchType is set to "once". Sets the launch time of the agent.
Must be set when launchType is set to "after agent". Sets the id of the agent which will trigger the launch of this agent.
If set to "none", no proxy will be used. If set to "http" a single http proxy will be used. If set to "pool" the proxies from the pool will be used.
When "proxyType" is set to "http", this should be the http address of the proxy. When set to "pool" this should be the name of the proxy pool you wish to use.
Sets the username used to authenticate the proxy. Should be used when "proxyType" is set to "http".
Sets the password used to authenticate the proxy. Should be used when "proxyType" is set to "http".
Sets the agent's object. Should be a JSON string.
Automatically sets the agent's launch schedule according to a preset.
If true, the manifest's default settings will be applied to the agent.
Defines when the agent will launch once a slave agent finishes. When not set, the platform chooses a value between 10 and 15 minutes randomly.
Key identifying the persisted volume to attach to the agent's containers.
If true, the agent's setup is considered complete.
If true, the updated settings will be propagated to the workers regardless of the session type.
The date when the agent will be deleted.
Optional key for idempotent operations - only for creating an agent.
Key-value pairs reserved for PhantomBuster internal use.
User-defined key-value pairs for tagging and filtering agents.
Response
Agent updated or inserted successfully.