Create Agent
POST/api/agents/createagent
Tier: Public — stable, supported for third-party integration.
Registers a new agent. Transactional: creates the agent against its agent sys-template, resolves or creates the per-type device role, and allocates an available licence seat.
Request
Responses
- 200
- 400
- 401
- 403
Returns the created Agents.AgentDetailDto.
Validation failure (missing Name/HardwareKey/AgentType/template id, HardwareKey not a Guid or not globally unique, no available licence seat, no matching agent sys-template) or insert failure — error array.
Caller is not authenticated.
Caller lacks LocafiModule.Agent Create.