You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attaching a .json file (named "data.json") with type application/json via File.Create<Attachment>(byte[], string) and getting this response when sending the transmission:
Response: 422 Unprocessable Entity. Content: { "errors": [ { "message": "invalid data format\/type", "description": "field 'content.attachments[0].type' is of type 'json_array', but needs to be of type 'string'", "code": "1300" } ] }.
JSON part:
{
"errors": [{
"message": "invalid data format/type",
"description": "field 'content.attachments[0].type' is of type 'json_array', but needs to be of type 'string'",
"code": "1300"
}
]
}
Note: I'm explicitly setting the type to application/json because MimeMapping.GetMimeMapping doesn't recognize the .json file extension.
The text was updated successfully, but these errors were encountered:
I'm attaching a
.json
file (named "data.json") with typeapplication/json
viaFile.Create<Attachment>(byte[], string)
and getting this response when sending the transmission:JSON part:
Note: I'm explicitly setting the type to
application/json
becauseMimeMapping.GetMimeMapping
doesn't recognize the.json
file extension.The text was updated successfully, but these errors were encountered: