admin管理员组文章数量:1296288
The API is documented as accepting a string for custom_args
, but when provided with a string, it responds with an error suggesting it expects an object.
For example:
curl -X POST -H 'Authorization: Bearer [redacted]' \
-H 'content-type: application/json' \
-d '{
"personalizations": [ { "to": [ { "email": "[email protected]" } ] } ],
"from": { "email": "[email protected]" },
"content": [{ "type": "text/plain", "value": "sample payload" }],
"subject": "test subj",
"custom_args": "this is a string"
}'
Returns:
{"errors":[{"message":"Invalid type. Expected: object, given: string.","field":"custom_args","help":".html#message.custom_args"}]}%
Obviously it seems the documentation is broken. My question is: are there any constraints on the object that can be passed for this field?
版权声明:本文标题:What values are supported by the `custom_args` field in SendGrid's apiv3mailsend API request? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741632074a2389423.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论