Update an existing push notification credential on your account
A Credential resource represents a push notification credential.
Update an existing push notification credential on your account
Path parameters
-
A 34 character string that uniquely identifies this resource.
Minimum length is
34, maximum length is34. Format should match the following pattern:^CR[0-9a-fA-F]{32}$.
Body
-
The type of push-notification service the credential is for. Can be:
fcm,gcm, orapn.Values are
apn,gcm, orfcm. -
A descriptive string that you create to describe the new resource. It can be up to 64 characters long.
-
[APN only] The URL encoded representation of the certificate. For example,
-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----. -
[APN only] The URL encoded representation of the private key. For example,
-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----. -
[APN only] Whether to send the credential to sandbox APNs. Can be
trueto send to sandbox APNs orfalseto send to production. -
[GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential.
-
[FCM only] The Server key of your project from the Firebase console, found under Settings / Cloud messaging.
curl \
--request POST 'https://conversations.twilio.com/v1/Credentials/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'FriendlyName=Test+slow+create'
{"FriendlyName" => "Test slow create"}
{
"sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://conversations.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"type": "apn",
"sandbox": "False",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-10-07T17:50:01Z",
"date_updated": "2015-10-07T17:50:01Z",
"friendly_name": "Test slow create"
}