Newpresharedkey

Generates a new pre-shared key for a user.

Tokens

This action requires the following tokens:

  • user-write

Arguments

Required arguments are marked in bold, and optional arguments are marked in italics.

Argument Type Default Description
user Hash   The ID of the user to generate a new pre-shared key for

Output

This action produces the following output on success:

An object containing the following fields:

Name Type Description
id Hash User ID
username String Username
presharedkey String User pre-shared key

Errors

This action can return one of the default status codes, or one of the following status codes on error:

STATUS_USER_NOT_FOUND (310)
If the user specified by “user” can not be found