Copy link to clipboard
Copied
I cannot find documentation on what the "body" of a create user (POST) api call should look like. When i run the call below i get a "400 – Bad Request - The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing)."
Does anyone know what is missing from this request?
currently
url: https://captivateprimeeu.adobe.com/primeapi/v2/users
header:
content-type : application/vnd.api+json;charset=UTF-8
Authorization : adkjf;lskajfljk
body:
{
"data":{
"type":"user",
"attributes":{
"email":"john.deo@xyz.com",
"name":"John Doe",
"userType":"INTERNAL"
}
}
}
Copy link to clipboard
Copied
Hi Michael,
Thank you for sharing the details.
Please paste the below lines from your body in the PST API.
{
"data":{
"type":"user",
"attributes":{
"email":"john.deo@xyz.com",
"name":"John Doe",
"userType":"INTERNAL"
}
}
}
This should create the user correctly for you.
Kindly let me know if any further help is required.
Hope to hear from you soon.
Regards,
Debiprasad Maharana
Adobe Inc.
Copy link to clipboard
Copied
Hi Debiprasad,
i used your json and i still get the same error - 400 Bad Request. the account does have "admin:write", so that shouldn't be an issue. note: i can query (get) no problem.
i just want to make sure when you say PST api, that it would be this url - https://captivateprimeeu.adobe.com/primeapi/v2/users
is that the correct url?
Error