Skip to main content
Participant
January 24, 2020
Question

API - Create User Post

  • January 24, 2020
  • 1 reply
  • 569 views

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

urlhttps://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"
}
}
}

 

This topic has been closed for replies.

1 reply

Adobe Employee
January 25, 2020

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.

Participant
January 25, 2020

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

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).