api.jobs.change_agent
POST /job/{jobDisplayId}/changeAgent— ACPortal
Python
api.jobs.change_agent(job_display_id: int, *, data: ChangeJobAgentRequest | dict) -> ServiceBaseResponse
CLI
ab jobs change_agent <job_display_id> [--data ...]
POST /job/{jobDisplayId}/changeAgent.
Args:
job_display_id: Job display ID.
data: Agent change payload with service type, agent ID, and
optional price/rebate flags. Accepts a
:class:ChangeJobAgentRequest instance or a dict.
Returns:
:class:~ab.api.models.shared.ServiceBaseResponse
Request model: :class:ChangeJobAgentRequest
Request body — ChangeJobAgentRequest
Field |
Type |
Required |
Description |
|---|---|---|---|
|
|
no |
Agent service type (0-4) |
|
|
no |
Agent company UUID |
|
|
no |
Recalculate job price after change |
|
|
no |
Apply rebate after change |
Response
Returns ServiceBaseResponse.
Field |
Type |
Required |
Description |
|---|---|---|---|
|
|
no |
Whether the operation succeeded |
|
|
no |
Error detail when success is False |
|
|
no |
Current job sub-management status |
|
|
no |
Document URLs/references generated by operation |
|
|
no |
Detailed error object when success is False |
|
|
no |
Whether user confirmation is needed |
|
|
no |
Notification messages for user |
|
|
no |
Shipment UUID created or modified |
|
|
no |
Carrier acceptance reference |
|
|
no |
Shipment weight details |
|
|
no |
Total net charge amount |
|
|
no |
Currency code (e.g., USD) |
|
|
no |
Whether international info is needed |
|
|
no |
Whether ship-out date confirmation is needed |
|
|
no |
Whether FedEx Express freight details are required |
|
|
no |
Carrier API type code |