Account
Earned badges
Achievement: Latest Unlocked
Code Share Comments
Replies
Topics Started
TID Sandbox
Preferences
Topic Started
Topics |
---|
API Rest allows me to create a sender in an account. I could verify this process by viewing the sender from Admin> User, but I could not assign it roles through API. |
Replies Created
Reply to: How to relationship or link a sender with roles by API Rest
Tuesday, August 24, 2021 at 10:36amHI Duo.
The "id" that is passed in the payload to which it corresponds?
I understand that it must be the user ID to achieve the user / role relationship.
Regards
Gabriel
Reply to: How to relationship or link a sender with roles by API Rest
Tuesday, August 24, 2021 at 10:53amDuo, thanks for your answer.
How do I reference in the payload the user ID that I want to refer to and that I want to assign a role to?
Attached images.(NegativeResultByAPI.png and ExpectedResultByAPI.png)
Regards
Gabriel
Reply to: How to relationship or link a sender with roles by API Rest
Tuesday, August 24, 2021 at 11:07amDuo, I have the user ID. This is returned to me in the response payload when creating the user. Now, I need to bind that user with a role by API. What endpoint should I use to make this binding and how the request payload should be made up?
Regards
Gabriel
Reply to: How to relationship or link a sender with roles by API Rest
Tuesday, August 24, 2021 at 11:27amI understand Duo.
Could you tell me how to get the parameter {account_or_subaccount_id}?
Regards
Gabriel
Reply to: How to relationship or link a sender with roles by API Rest
Tuesday, September 14, 2021 at 02:57pmHi Duo
Returning to the topic, I have executed in Postman the follow:
In URL endpoint I replace sender Id with {senderId}
POST
https://sandbox.esignlive.com/api/account/senders/{senderId}/account/6YOBAtp3Y8oB/roles
payload
{
"id": "member"
}
I get as result "400Bad Request":
{
"technical": "Failed to deserialize json string to target type java.util.List<com.silanis.esl.permission.api.model.AccountRole>",
"messageKey": "error.validation.invalidJson",
"message": "Invalid JSON.",
"code": 400,
"name": "Validation Error"
}
Am I building the payload wrong?
Regards
Gabriel
Subscriptions
Topics | Replies | Freshness | Views | Users |
---|---|---|---|---|
5 | 2 months 4 weeks ago | 86 | ||
API Rest allows me to create a sender in an account. I could verify this process by viewing the sender from Admin> User, but I could not assign it roles through API. |
13 | 2 years 7 months ago | 144 |