Create a credential
credentials_post(
type,
username,
password,
name = NULL,
description = NULL,
remote_host_id = NULL,
user_id = NULL,
state = NULL,
system_credential = NULL,
default = NULL
)
A list containing the following elements:
integer, The ID of the credential.
string, The name identifying the credential
string, The credential's type.
string, The username for the credential.
string, A long description of the credential.
string, The username of the user who this credential belongs to. Using user.username is preferred.
list, A list containing the following elements:
id integer, The ID of this user.
name string, This user's name.
username string, This user's username.
initials string, This user's initials.
online boolean, Whether this user is online.
integer, The ID of the remote host associated with this credential.
string, The name of the remote host associated with this credential.
string, The U.S. state for the credential. Only for VAN credentials.
string, The creation time for this credential.
string, The last modification time for this credential.
boolean, Whether or not the credential is a default. Only for Database credentials.
string required. The type of credential. Note: only these credentials can be created or edited via this API ["Amazon Web Services S3", "CASS/NCOA PAF", "Certificate", "Civis Platform", "Custom", "Database", "Google", "Salesforce User", "Salesforce Client", "TableauUser"]
string required. The username for the credential.
string required. The password for the credential.
string optional. The name identifying the credential.
string optional. A long description of the credential.
integer optional. The ID of the remote host associated with the credential.
integer optional. The ID of the user the credential is created for. Note: This attribute is only accepted if you are a Civis Admin User.
string optional. The U.S. state for the credential. Only for VAN credentials.
boolean optional. Boolean flag that sets a credential to be a system credential. System credentials can only be created by Civis Admins and will create a credential owned by the Civis Robot user.
boolean optional. Whether or not the credential is a default. Only for Database credentials.