jimmy | Posts: 32

Creating a role for a package

0 votes
I'm trying to add a role to an existing package in draft status. I'm getting
{
    "technical": "",
    "packageId": null,
    "messageLanguage": null,
    "messageKey": "http.status.415",
    "entity": null,
    "code": 415,
    "message": "Unsupported Media Type",
    "name": "Unsupported Media Type"
}
when posting the payload
{
	"signers":[
	{"email": "[email protected]",  
	"firstName":"firstName",
	"lastName":"lastName",
	"company":"default company",
	"title":"default title" 
	}
	],
	"name": "[email protected]'s role"
}
to https://sandbox.esignlive.com/api/packages/zYcg6ZoSuCzxYfunTy1hB03FXU0=/roles. I was trying to follow http://docs.esignlive.com/content/c_integrator_s_guide/rest_api/roles.htm#Create. Thanks, Jimmy

Approved Answer
harishaidary | Posts: 1812

Reply to: Creating a role for a package

0 votes
Make sure you have the settings as in my attachments. I would also suggest just clearing out everything from Postman as it retains old values sometimes.

Attachments
harishaidary | Posts: 1812

Reply to: Creating a role for a package

0 votes
Hi Jimmy, Is your Accept and Content-Type header set to application/json?

jimmy | Posts: 32

Reply to: Creating a role for a package

0 votes
Yes.

Attachments
harishaidary | Posts: 1812

Reply to: Creating a role for a package

0 votes
Can you try putting "Content-Type" instead of "Content"? Or even simply remove it that header.

jimmy | Posts: 32

Reply to: Creating a role for a package

0 votes
Yes, sorry about that. Same error.

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off