Can't create new group via api (/admin/groups.json - post method)

Can’t create new group via api (https://mywebsite/admin/groups.json - post method)
When I send via get method (https://mywebsite/groups.json) I successfully get all groups list.

Response message is “The requested URL or resource was not found”

Hi,

Can you share details on how you create a group?

Did you provide valid Api-Key and Api-Username headers?

curl “https://community.orleu-edu.kz/admin/group.json
-X POST
-d “{\r\n "group": {\r\n "name": "dfgdfg"\r\n }\r\n}”
-H “Content-Type: multipart/form-data”
-H “authorization: Bearer my token”

curl “https://community.orleu-edu.kz/admin/group.json
-X POST
-d “{\r\n "group": {\r\n "name": ""\r\n }\r\n}”
-H “Api-Key: key”
-H “Content-Type: multipart/form-data”
-H “Api-Username: nakimbekov”

This requests return same error

Not found suggests that your key isn’t working. You can look at the logs and maybe get more info.

You can try a known bad key and see that you get the same error.

I would generate a new global key and try it.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.