Creating a credential

POST https://{{base_url}}/v6/credentials/new.json

Creating a credential

Creates a new credential in ThousandEyes, based on properties provided in the POST data. In order to create a new credential, the user attempting the creation must have permission to create tests.

Optional (Querystring) Parameters

  • aid={aid} optional and requires the user to be assigned to the target account group, specifies the account group context of the request, obtained from the /account-groups endpoint. Specifying this parameter without the user being assigned to the target account will result in an error response. See Account group context for more information.

Request

Request body should contain both a name and value to be set during creation. * name string The name of the credential * value string The value of the credential that will be encrypted (if the user has permission to read sensitive data)

Request Body

{"name"=>"new_api_credential_postman", "value"=>"secret p@ssword devnet"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring