Method: Twilio::REST::Verify::V2::ServiceContext::EntityList#create

Defined in:
lib/twilio-ruby/rest/verify/v2/service/entity.rb

#create(identity: nil) ⇒ EntityInstance

Create the EntityInstance

Parameters:

  • identity (String) (defaults to: nil)

    The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user’s UUID, GUID, or SID. It can only contain dash (-) separated alphanumeric characters.

Returns:



35
36
37
38
39
40
41
# File 'lib/twilio-ruby/rest/verify/v2/service/entity.rb', line 35

def create(identity: nil)
  data = Twilio::Values.of({'Identity' => identity, })

  payload = @version.create('POST', @uri, data: data)

  EntityInstance.new(@version, payload, service_sid: @solution[:service_sid], )
end