Hi all,
Would you be able to advise how to create a put/post request to Contentful in order to create a new item. I manage to connect and all get requests work fine. However, I am not sure what to do to send my request as Json Array through HTTP Request activity.
Below you can find the sample provided on their website.
=================
curl --include
–request PUT
–header ‘Authorization: Bearer <cma_token>’
–header ‘Content-Type: application/vnd.contentful.management.v1+json’
–data-binary ‘{
“name”: “Blog Post”,
“fields”: [
{
“id”: “title”,
“name”: “Title”,
“required”: true,
“localized”: true,
“type”: “Text”
},
{
“id”: “body”,
“name”: “Body”,
“required”: true,
“localized”: true,
“type”: “Text”
}
]
}’
https://api.contentful.com/spaces/{space_id}/environments/{environment_id}/content_types/{content_type_id}
I checked couple of UiPath API tutorials and they all suggest to set the Id, name etc.. as parameters, but this does not work for more complex cases like this one with nested arrays.
{
“id”: “body”,
“name”: “Body”,
“required”: true,
“localized”: true,
“type”: “Text”
}
If you can provide me with a sample or screenshot on how to set up this it would be greatly appreciated. Thanks


