Skip to main content

tickets

Creates, updates, deletes, gets or lists a tickets resource.

Overview

Nametickets
TypeResource
Idnetlify.oauth.tickets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring
client_idstring
authorizedboolean
created_atstring (dateTime)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectticket_id
createinsertclient_id
exchangeexecticket_id

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
client_idstring
ticket_idstring

SELECT examples

ok

SELECT
id,
client_id,
authorized,
created_at
FROM netlify.oauth.tickets
WHERE ticket_id = '{{ ticket_id }}' -- required
;

INSERT examples

No description available.

INSERT INTO netlify.oauth.tickets (
message,
client_id
)
SELECT
'{{ message }}',
'{{ client_id }}'
RETURNING
id,
client_id,
authorized,
created_at
;

Lifecycle Methods

ok

EXEC netlify.oauth.tickets.exchange
@ticket_id='{{ ticket_id }}' --required
;