computers.approveComputerPairing
POST
/v1/computer-pairings/{code}/approve
Approves a machine. OpenBot creates a connector Computer for it, and the machine gets its token on its next poll. The Computer belongs to the caller, or to the organization when shared is true. When the same machine pairs again, OpenBot keeps its Computer and only changes the token. Only a person can approve.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”code
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
string
shared
boolean
Example generated
{ "name": "example", "shared": true}Responses
Section titled “Responses”Success
Media typeapplication/json
object
id
required
string
name
required
string
owner
required
source
required
state
required
string
features
required
object
pause
required
boolean
desktop
required
boolean
ports
required
boolean
createdBy
required
string
version
required
integer
createdAt
required
number
updatedAt
required
number
Example
{ "owner": { "_tag": "Member" }, "source": { "_tag": "Provider" }, "state": "starting"}ComputerInvalid | OrganizationRequired
AuthenticationRequired
Media typeapplication/json
object
_tag
required
string
Example
{ "_tag": "AuthenticationRequired"}PermissionDenied | MembershipRequired | ForbiddenOrigin
ComputerNotFound | ComputerProviderNotFound | PairingInvalid
ComputerConflict | ComputerUnsupported | ComputerNotReady
RateLimited
Media typeapplication/json
object
_tag
required
string
retryAfterSeconds
required
integer
Example
{ "_tag": "RateLimited"}ComputerProviderFailed
Media typeapplication/json
object
_tag
required
string
message
required
string
Example
{ "_tag": "ComputerProviderFailed"}AuthorizationUnavailable | ComputersUnavailable | AuthenticationUnavailable