Account


Earned badges

Achievement: Latest Unlocked

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

0 votes

Duo, 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

0 votes

Hi 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
Profile picture for user Duo_Liang

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
Profile picture for user Duo_Liang

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.