Skip to main content

accounts

Creates, updates, deletes, gets or lists an accounts resource.

Overview

Nameaccounts
TypeResource
Idnetlify.account_membership.accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring
namestring
payment_method_idstring
type_idstring
billing_namestring
type_namestring
billing_detailsstring
billing_emailstring
billing_periodstring
capabilitiesobject
created_atstring (dateTime)
owner_idsarray
roles_allowedarray
slugstring
typestring
updated_atstring (dateTime)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getAccountselectaccount_id
listAccountsForUserselect
createAccountinsertdata__name, data__type_id
cancelAccountexecaccount_id
updateAccountexecaccount_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
account_idstring

SELECT examples

OK

SELECT
id,
name,
payment_method_id,
type_id,
billing_name,
type_name,
billing_details,
billing_email,
billing_period,
capabilities,
created_at,
owner_ids,
roles_allowed,
slug,
type,
updated_at
FROM netlify.account_membership.accounts
WHERE account_id = '{{ account_id }}' -- required
;

INSERT examples

No description available.

INSERT INTO netlify.account_membership.accounts (
data__extra_seats_block,
data__name,
data__payment_method_id,
data__period,
data__type_id
)
SELECT
{{ extra_seats_block }},
'{{ name }}' /* required */,
'{{ payment_method_id }}',
'{{ period }}',
'{{ type_id }}' /* required */
RETURNING
id,
name,
payment_method_id,
type_id,
billing_name,
type_name,
billing_details,
billing_email,
billing_period,
capabilities,
created_at,
owner_ids,
roles_allowed,
slug,
type,
updated_at
;

Lifecycle Methods

Not Content

EXEC netlify.account_membership.accounts.cancelAccount 
@account_id='{{ account_id }}' --required
;