Skip to main content
Participant
Jan 24, 2020 10:37 PM UTC
Question

API - Create User Post

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"
}
}
}

 

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Adobe Employee
Jan 25, 2020 12:26 AM UTC

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.

Translate
Participant
Jan 25, 2020 3:38 PM UTC

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