WorkOS PHP SDK

AgentRegistrationOrganizationSwitchedData
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

The event payload.

Table of Contents

Interfaces

JsonSerializable

Properties

$agentRegistrationId  : string
The agent registration that was moved.
$fromOrganizationId  : string
The agent-created organization the registration is moving off of. Migrate its resources to `to_organization_id`, then delete it.
$toOrganizationId  : string
The organization the registration now belongs to.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

$fromOrganizationId

The agent-created organization the registration is moving off of. Migrate its resources to `to_organization_id`, then delete it.

public string $fromOrganizationId

Methods

__construct()

public __construct(string $agentRegistrationId, string $fromOrganizationId, string $toOrganizationId) : mixed
Parameters
$agentRegistrationId : string
$fromOrganizationId : string
$toOrganizationId : string

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results