No user license type id specified - API

Hi!
I encountered an error when I created an ArcGIS Api and got a following message “No user license type id specified”. I have tried different solutions but without any results, see picture below.

Any help would be greatly appreciated.

Hi @quangu1993

Looking at the API docs, (and with a very limited understanding of this API) …
I think you need to submit those values as ‘Params’ instead of ‘Body > Form Data’.

Like this;

Thank you for your answer! I have tried the params and got a same error message.
I followed the link below to create an user,

The doc suggests its content type is x-www-form-urlencoded…
image

So have you tried putting the values into the x-www-form-urlencoded tab?
image

And also checked that the content-type header is set?
Content-Type: application/x-www-form-urlencoded

I forgot to change content-type to application/x-www-form-urlencoded. However, when I tried to run it i got a following message:

Strange, I have already created a working token, see picture below :confused:

Is there anything in the second screenshot that saves the created token into the {{token}} variable?

Yes, I saved the created token as variable

Do you have the documentation link for this call?

I’ve been reading the docs but i cant find where “token” is referenced.
(using, not creating)

The document link is Create User—ArcGIS REST APIs | ArcGIS Developers and my post link look like this >

image

The create user parameters listed don’t show “token” as a requirement. Only username and password. Try taking out the token parameter.