Method: projects.sipDomains.users.create¶
Creates a user.
The caller must have voice.users.create
permission on the project.
HTTP request¶
POST https://voice.api.enfonica.com/v1beta1/{parent}/users
Path parameters¶
Parameters | |
---|---|
parent | string The SIP domain under which to create the user in the form projects/*/sipDomains/* . |
Query parameters¶
Parameters | |
---|---|
userId | string The username of the user, and also the {user_id} component of the created resource's name, which will be of the form projects/{project_id}/sipDomains/{sip_domain_id}/users/{user_id} .This must be lowercase alpha-numeric or hyphens and must start and end with an alpha-numeric character, and must be a minimum of 2 and maximum of 30 characters. This is captured in the following regular expression: ^[a-z0-9][a-z0-9-]{0,28}[a-z0-9]$ |
Request body¶
The request body must contain an instance of User.
Response body¶
If successful, the response body contains an instance of User.