ZWeb.API.AccountsController (Portico/Z v0.1.0)
Functions on Z.Accounts
that are performed via API call.
Link to this section Summary
Functions
Create an account for an existing contact, using their portico_contact_id
.
Link to this section Functions
Link to this function
create(conn, attrs)
Create an account for an existing contact, using their portico_contact_id
.
Returns a 404 (not found) if there's no existing contact with that ID.
Side Effects
- Notifies EXPLO Sysadmins via email that an account has been created.
- Creates a task list in Teamwork for Sysadmin follow-up.
Required Params
portico_contact_id
- The ID of the contact - this will be used for looking up the remainder of the contact information.
Optional Params
Any other params that are sent to the POST will be considered attributes to apply to the ZSchemas.Account
. Accordingly, you can pass things like:
org_unit
- The one "organization unit" of the accountmanager_email
- The email of the account's manager
See ZSchemas.Account
for more information about available fields.