AnsweredAssumed Answered

Why should I use the as_user_id?

Question asked by huangjun604 on Oct 23, 2017
Latest reply on Feb 14, 2018 by Stefanie Sanders

Hi support,

 

I am using the Author - Library Items API to add items to Library. But when I call the api it response 400 Bad Request error:

 

{
    "errors": [
        {
            "code": "basic_auth_not_supported",
            "title": "No basic auth; requires a user (use Bearer auth or include as_user_ID)"
        }
    ]
}

 

I knew that I can provide a param "?as_user_id=1" to make the call success, but what does it use for? Why I need it? I didn't find any description in the documentation.

 

Cheers

Outcomes