UNSUPPORTED_MEDIA_TYPE Error when trying to use /agreements API
Hi All,
I am facing 415 error code, when trying to create an agreement. Can anyone asisst me on what am i doing wrong. i ma using accesstoken, api access point is pointing to shard "in1". PFB the json request i am using.

{
"fileInfos": [
{
"document": {
"createdDate": "2021-10-01",
"id": "",
"label": "Testing from API",
"numPages": 31,
"mimeType": "",
"name": ""
},
"label": "Testing from API 1",
"libraryDocumentId": "CBJCHBCAABAAXTzblJ-nauekJvs7OKwIc4hITZxX4IkL",
"notarize": false,
"transientDocumentId": "",
"urlFileInfo": {
"mimeType": "",
"name": "",
"url": ""
}
}
],
"name": "",
"participantSetsInfo": [
{
"memberInfos": [
{
"email": "varunchandana450@gmail.com",
"id": "",
"securityOption": {
"authenticationMethod": "NONE",
"nameInfo": {
"firstName": "Varun",
"lastName": "Ch"
},
"notaryAuthentication": "",
"password": "",
"phoneInfo": {
"countryCode": "",
"countryIsoCode": "",
"phone": ""
}
}
}
],
"order": 1,
"role": "SIGNER",
"id": "",
"label": "",
"name": "",
"privateMessage": "",
"visiblePages": [
""
]
}
],
"signatureType": "ESIGN",
"state": "IN_PROCESS",
"ccs": [
{
"email": "",
"label": "",
"visiblePages": [
""
]
}
],
"createdDate": "2021-10-01T01:46:19Z",
"deviceInfo": {
"applicationDescription": "",
"deviceDescription": "",
"deviceTime": ""
},
"documentVisibilityEnabled": false,
"emailOption": {
"sendOptions": {
"completionEmails": "ALL",
"inFlightEmails": "ALL",
"initEmails": "ALL"
}
},
"expirationTime": "2021-10-04T01:46:19Z",
"externalId": {
"id": "NB-10101"
},
"firstReminderDelay": 1,
"formFieldLayerTemplates": [
{
"document": {
"createdDate": "2021-10-01",
"id": "",
"label": "",
"numPages": 1,
"mimeType": "",
"name": ""
},
"label": "",
"libraryDocumentId": "CBJCHBCAABAAXTzblJ-nauekJvs7OKwIc4hITZxX4IkL",
"notarize": false,
"transientDocumentId": "",
"urlFileInfo": {
"mimeType": "",
"name": "",
"url": ""
}
}
],
"groupId": "",
"hasFormFieldData": false,
"hasSignerIdentityReport": false,
"id": "",
"isDocumentRetentionApplied": false,
"lastEventDate": "",
"locale": "",
"mergeFieldInfo": [
{
"defaultValue": "",
"fieldName": ""
}
],
"message": "",
"notaryInfo": {
"appointment": "",
"notaryEmail": "",
"notaryType": "",
"note": "",
"payment": ""
},
"parentId": "",
"postSignOption": {
"redirectDelay": 1,
"redirectUrl": ""
},
"reminderFrequency": "ONCE",
"securityOption": {
"openPassword": ""
},
"senderEmail": "",
"status": "",
"type": "",
"vaultingInfo": {
"enabled": false
},
"workflowId": "CBJCHBCAABAAEeb7TJbGCnJAQABh9J8alm8EcJt3NmXP"
}
