NotifyV1Credential
post/v1/Credentials/{Sid}

Request

  • Base URL
    https://notify.twilio.com
  • URL
    https://notify.twilio.com/v1/Credentials/{Sid}
  • Auth
    HTTP basic

Path parameters

Sidstring required

The Twilio-provided string that uniquely identifies the Credential resource to update.

Request body application/x-www-form-urlencoded

FriendlyNamestring

A descriptive string that you create to describe the resource. It can be up to 64 characters long.

Certificatestring

[APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g. -----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----

PrivateKeystring

[APN only] The URL-encoded representation of the private key. Strip everything outside of the headers, e.g. -----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\n.-----END RSA PRIVATE KEY-----

Sandboxboolean

[APN only] Whether to send the credential to sandbox APNs. Can be true to send to sandbox APNs or false to send to production.

ApiKeystring

[GCM only] The Server key of your project from Firebase console under Settings / Cloud messaging.

Secretstring

[FCM only] The Server key of your project from Firebase console under Settings / Cloud messaging.

Response

OK

sidstring nullable

The unique string that we created to identify the Credential resource.

account_sidstring nullable

The SID of the Account that created the Credential resource.

friendly_namestring nullable

The string that you assigned to describe the resource.

type'gcm' | 'apn' | 'fcm'

The Credential type. Can be: gcm, fcm, or apn.

sandboxstring nullable

[APN only] Whether to send the credential to sandbox APNs. Can be true to send to sandbox APNs or false to send to production.

date_createdstring date-time nullable

The date and time in GMT when the resource was created specified in RFC 2822 format.

date_updatedstring date-time nullable

The date and time in GMT when the resource was last updated specified in RFC 2822 format.

urlstring uri nullable

The absolute URL of the Credential resource.

Changes