300 Validation Failed on Create User


#1

Hello,

I’m trying to create user using the below JSON Body:

{
“action”: “string”,
“user_info”: {
“email”: “my.name@xxxxx.com”,
“type”: “1”,
“first_name”: “myfname”,
“last_name”: “mylname”,
“password”: “mypassword”
}
}

but getting the below response:

{
“code”: 300,
“message”: “Validation Failed.”,
“errors”: [
{
“field”: “action”,
“message”: “Invalid field.”
}
]
}

Please advise?


#2

Hi Usama, 

The action value needs to be replaced from " string" to either " create", " autoCreate", " custCreate", or " ssoCreate". See the API doc here - https://zoom.github.io/api/#create-a-user

Let me know if it works. 

Thanks

Michael 


#3

Hi Michael,

Thank you for your reply and support.

It works for me so my request is as below:

{
“action”: “create”,
“user_info”: {
“email”: “usama.zaky@tawasoltech.com”,
“type”: “1”,
“first_name”: “usama1”,
“last_name”: “zak2y”,
“password”: “123456”
}
}

but now I’m getting another issue:
{
“code”: 200,
“message”: "No privilege."

Could you please assist on that.

Thanks a lot.


#4

Hi Usama, 

Can you post the details of your request? I ran the same information within post man and I received a 201 created response. Here are the details below. 

POST /v2/users HTTP/1.1
Host: api.zoom.us
Accept: application/json, application/xml
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJxeFdCd1haS1J0ZU9IblMybnd6RTdBIiwiaWF0IjoxNTI4MjE2ODUzLCJleHAiOjE1MjgyMzQ4NTN9.bfEGj2slIHy_9rMZBXKaE3ZHPrmYW0KcQcpTPuIPEZY
Cache-Control: no-cache
Postman-Token: 7738b9d7-e628-4a03-9702-2b2912550b48

{
“action”: “create”,
“user_info”: {
“email”: “usama.zaky@tawasoltech.com”,
“type”: “1”,
“first_name”: “usama1”,
“last_name”: “zak2y”,
“password”: “123456”
}
}

 

Response:

{
“id”: “bn-DnXyYRDupU1x_d4vxxx”,
“first_name”: “usama1”,
“last_name”: “zak2y”,
“email”: “usama.zaky@tawasoltech.com”,
“type”: 1
}


#5

Hi Usama,

Can you email us at developersupport@zoom.us? From there we can troubleshoot without sharing API key & Secret and other sensitive data. 

Thanks

Michael

 


#6

Hi Michael,

Thank you for your support.

I’ve raised my concern over the support email you’ve shared. 

 

Thanks,

Usama Zaky